From 6fa3349b42a666b47108148b59f7a03404fb7eff Mon Sep 17 00:00:00 2001 From: Grzegorz Biernacki Date: Mon, 26 Oct 2026 15:33:26 +0100 Subject: [PATCH] Release 2.11.0 --- README.md | 8 +- VERSION | 2 +- build.gradle | 26 +-- build.sbt | 12 +- composer.lock | 69 +++--- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- openapi-config.yaml | 2 +- pom.xml | 16 +- run-build | 4 +- src/main/java/com/dropbox/sign/ApiClient.java | 172 +++++++++++--- .../java/com/dropbox/sign/ApiException.java | 18 +- .../java/com/dropbox/sign/Configuration.java | 68 ++++-- .../com/dropbox/sign/EventCallbackHelper.java | 2 +- src/main/java/com/dropbox/sign/JSON.java | 3 +- .../com/dropbox/sign/JavaTimeFormatter.java | 76 ++++--- src/main/java/com/dropbox/sign/Pair.java | 52 ++--- .../com/dropbox/sign/RFC3339DateFormat.java | 5 +- .../sign/RFC3339InstantDeserializer.java | 100 +++++++++ .../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 | 18 +- .../java/com/dropbox/sign/api/ApiAppApi.java | 22 +- .../com/dropbox/sign/api/BulkSendJobApi.java | 10 +- .../com/dropbox/sign/api/DocumentApi.java | 6 +- .../com/dropbox/sign/api/EmbeddedApi.java | 10 +- .../java/com/dropbox/sign/api/FaxApi.java | 22 +- .../java/com/dropbox/sign/api/FaxLineApi.java | 30 +-- .../java/com/dropbox/sign/api/OAuthApi.java | 10 +- .../java/com/dropbox/sign/api/ReportApi.java | 6 +- .../dropbox/sign/api/SignatureRequestApi.java | 82 +++---- .../java/com/dropbox/sign/api/TeamApi.java | 34 +-- .../com/dropbox/sign/api/TemplateApi.java | 46 ++-- .../dropbox/sign/api/UnclaimedDraftApi.java | 18 +- .../com/dropbox/sign/auth/ApiKeyAuth.java | 2 +- .../com/dropbox/sign/auth/Authentication.java | 1 + .../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 +- templates/ApiClient.mustache | 34 +-- templates/Configuration.mustache | 73 ++++-- templates/JavaTimeFormatter.mustache | 75 ++++--- templates/Pair.mustache | 51 ++--- templates/RFC3339DateFormat.mustache | 4 +- templates/ServerConfiguration.mustache | 1 + templates/ServerVariable.mustache | 1 + templates/StringUtil.mustache | 1 + templates/api.mustache | 5 +- templates/apiException.mustache | 1 + templates/auth/ApiKeyAuth.mustache | 1 + templates/auth/Authentication.mustache | 18 +- templates/auth/HttpBasicAuth.mustache | 1 + templates/auth/HttpBearerAuth.mustache | 11 +- templates/auth/OAuth.mustache | 1 + templates/auth/OAuthFlow.mustache | 1 + templates/beanValidation.mustache | 7 - templates/beanValidationCore.mustache | 3 +- templates/build.gradle.mustache | 49 ++-- .../dropbox-EventCallbackHelper.mustache | 1 + templates/gradle-wrapper.properties.mustache | 2 +- templates/jackson_annotations.mustache | 2 +- templates/javaBuilder.mustache | 4 +- .../jersey3/AbstractOpenApiSchema.mustache | 7 +- .../libraries/jersey3/ApiClient.mustache | 209 ++++++++++++++---- templates/libraries/jersey3/JSON.mustache | 48 +++- .../libraries/jersey3/anyof_model.mustache | 78 +++++-- templates/libraries/jersey3/api.mustache | 34 ++- .../libraries/jersey3/apiException.mustache | 17 ++ templates/libraries/jersey3/api_test.mustache | 4 +- .../jersey3/auth/ApiKeyAuth.mustache | 1 + .../jersey3/auth/Authentication.mustache | 2 + .../jersey3/auth/HttpBasicAuth.mustache | 1 + .../jersey3/auth/HttpBearerAuth.mustache | 1 + .../libraries/jersey3/auth/OAuth.mustache | 1 + .../libraries/jersey3/build.gradle.mustache | 94 +++++--- .../libraries/jersey3/build.sbt.mustache | 14 +- templates/libraries/jersey3/model.mustache | 6 +- .../libraries/jersey3/model_doc.mustache | 4 + .../libraries/jersey3/oneof_model.mustache | 101 +++++++-- templates/libraries/jersey3/pojo.mustache | 34 +-- templates/libraries/jersey3/pom.mustache | 96 +++++++- templates/model.mustache | 11 + templates/modelEnum.mustache | 11 +- templates/modelInnerEnum.mustache | 6 +- templates/nullable_var_annotations.mustache | 2 +- templates/oneof_interface.mustache | 7 +- templates/pojo.mustache | 85 +++---- templates/pom.mustache | 7 +- templates/typeInfoAnnotation.mustache | 7 +- 279 files changed, 3912 insertions(+), 3703 deletions(-) create mode 100644 src/main/java/com/dropbox/sign/RFC3339InstantDeserializer.java create mode 100644 src/main/java/com/dropbox/sign/RFC3339JavaTimeModule.java diff --git a/README.md b/README.md index 354aa744..7bbf958b 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Add this dependency to your project's POM: com.dropbox.sign dropbox-sign - 2.10.0 + 2.11.0 compile ``` @@ -72,7 +72,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.dropbox.sign:dropbox-sign:2.10.0" + implementation "com.dropbox.sign:dropbox-sign:2.11.0" } ``` @@ -86,7 +86,7 @@ mvn clean package Then manually install the following JARs: -- `target/dropbox-sign-2.10.0.jar` +- `target/dropbox-sign-2.11.0.jar` - `target/lib/*.jar` ## Getting Started @@ -457,7 +457,7 @@ apisupport@hellosign.com This Java package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: `3.0.0` - - Package version: `2.10.0` + - Package version: `2.11.0` - Build package: `org.openapitools.codegen.languages.JavaClientCodegen` diff --git a/VERSION b/VERSION index 10c2c0c3..46b81d81 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.10.0 +2.11.0 diff --git a/build.gradle b/build.gradle index 46cf25b8..d4d88a89 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { } group = 'com.dropbox.sign' -version = '2.10.0' +version = '2.11.0' base { archivesName.set('dropbox-sign') @@ -22,6 +22,17 @@ repositories { mavenCentral() } +ext { + swagger_annotations_version = "1.6.5" + jackson_version = "2.21.6" + jackson_annotations_version = "2.21" + jackson_databind_version = "2.21.6" + jakarta_annotation_version = "2.1.0" + jersey_version = "3.0.4" + junit_version = "5.8.2" + mockito_version = "3.12.4" +} + tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } @@ -57,16 +68,6 @@ 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 = "2.1.0" - jersey_version = "3.0.4" - junit_version = "5.8.2" - mockito_version = "3.12.4" -} - dependencies { implementation "io.swagger:swagger-annotations:$swagger_annotations_version" implementation "com.google.code.findbugs:jsr305:3.0.2" @@ -76,11 +77,10 @@ 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" - testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" testImplementation "org.mockito:mockito-core:$mockito_version" diff --git a/build.sbt b/build.sbt index f46a7ac8..4d798d88 100644 --- a/build.sbt +++ b/build.sbt @@ -2,8 +2,8 @@ lazy val root = (project in file(".")). settings( organization := "com.dropbox.sign", name := "dropbox-sign", - version := "2.10.0", - scalaVersion := "2.11.4", + version := "2.11.0", + 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" % "3.0.4", "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "3.0.4", "org.glassfish.jersey.connectors" % "jersey-apache-connector" % "3.0.4", - "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.1" % "compile", "jakarta.annotation" % "jakarta.annotation-api" % "2.1.0" % "compile", "org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test" ) diff --git a/composer.lock b/composer.lock index 144b5373..424e1d2e 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "symfony/deprecation-contracts", - "version": "v2.5.0", + "version": "v2.5.4", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8" + "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8", - "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/605389f2a7e5625f273b53960dc46aeaf9c62918", + "reference": "605389f2a7e5625f273b53960dc46aeaf9c62918", "shasum": "" }, "require": { @@ -25,12 +25,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -55,7 +55,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.4" }, "funding": [ { @@ -71,24 +71,24 @@ "type": "tidelift" } ], - "time": "2021-07-12T14:48:14+00:00" + "time": "2024-09-25T14:11:13+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.24.0", + "version": "v1.37.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "30885182c981ab175d4d034db0f6f469898070ab" + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab", - "reference": "30885182c981ab175d4d034db0f6f469898070ab", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-ctype": "*" @@ -98,21 +98,18 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - }, "files": [ "bootstrap.php" - ] + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -137,7 +134,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.24.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.37.0" }, "funding": [ { @@ -148,25 +145,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2021-10-20T20:35:02+00:00" + "time": "2026-04-10T16:19:22+00:00" }, { "name": "symfony/yaml", - "version": "v5.4.3", + "version": "v5.4.54", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e80f87d2c9495966768310fc531b487ce64237a2" + "reference": "f27a7131106e8cb792d434e8faea7f3ffb615263" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e80f87d2c9495966768310fc531b487ce64237a2", - "reference": "e80f87d2c9495966768310fc531b487ce64237a2", + "url": "https://api.github.com/repos/symfony/yaml/zipball/f27a7131106e8cb792d434e8faea7f3ffb615263", + "reference": "f27a7131106e8cb792d434e8faea7f3ffb615263", "shasum": "" }, "require": { @@ -212,7 +213,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.4.3" + "source": "https://github.com/symfony/yaml/tree/v5.4.54" }, "funding": [ { @@ -223,12 +224,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2022-01-26T16:32:32+00:00" + "time": "2026-08-30T06:09:20+00:00" } ], "packages-dev": [], diff --git a/gradle.properties b/gradle.properties index 85f8352e..8afaf901 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ #target = android GROUP=com.dropbox.sign POM_ARTIFACT_ID=dropbox-sign -VERSION_NAME=2.10.0 +VERSION_NAME=2.11.0 POM_NAME=Dropbox Sign Java SDK POM_DESCRIPTION=Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index b82aa23a..4f5eb9dc 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/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/openapi-config.yaml b/openapi-config.yaml index 2898b103..7590fa8f 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -18,7 +18,7 @@ additionalProperties: groupId: com.dropbox.sign artifactId: dropbox-sign artifactName: Dropbox Sign Java SDK - artifactVersion: "2.10.0" + artifactVersion: "2.11.0" artifactUrl: https://github.com/hellosign/dropbox-sign-java artifactDescription: Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! scmConnection: scm:git:git://github.com/hellosign/dropbox-sign-java.git diff --git a/pom.xml b/pom.xml index b597ab4c..7c3dba99 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ dropbox-sign jar dropbox-sign - 2.10.0 + 2.11.0 https://github.com/hellosign/dropbox-sign-java Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! @@ -311,7 +311,7 @@ com.fasterxml.jackson.core jackson-annotations - ${jackson-version} + ${jackson-annotations-version} com.fasterxml.jackson.core @@ -323,6 +323,7 @@ jackson-datatype-jsr310 ${jackson-version} + jakarta.annotation jakarta.annotation-api @@ -351,12 +352,13 @@ UTF-8 - 3.1.1 - 2.17.1 - 2.17.1 - 0.2.6 + 3.1.11 + 2.21.6 + 2.21 + 2.21.6 + 0.2.12 2.1.1 - 3.0.2 + 3.1.1 5.10.0 2.21.0 3.12.4 diff --git a/run-build b/run-build index aae70c35..e122a3f1 100755 --- a/run-build +++ b/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/src/main/java/com/dropbox/sign/ApiClient.java b/src/main/java/com/dropbox/sign/ApiClient.java index bbba972d..7b807b8f 100644 --- a/src/main/java/com/dropbox/sign/ApiClient.java +++ b/src/main/java/com/dropbox/sign/ApiClient.java @@ -62,6 +62,7 @@ import java.util.Arrays; import java.util.ArrayList; import java.util.Date; +import java.util.Locale; import java.util.stream.Collectors; import java.util.stream.Stream; import java.time.OffsetDateTime; @@ -84,15 +85,15 @@ /** *

ApiClient class.

*/ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class ApiClient extends JavaTimeFormatter { - 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 = "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<>(Arrays.asList( new ServerConfiguration( @@ -129,7 +130,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; @@ -159,7 +160,7 @@ public ApiClient(Map authMap) { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.10.0/java"); + setUserAgent("OpenAPI-Generator/2.11.0/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap<>(); @@ -299,7 +300,7 @@ public ApiClient setServerVariables(Map serverVariables) { return this; } - private void updateBasePath() { + protected void updateBasePath() { if (serverIndex != null) { setBasePath(servers.get(serverIndex).URL(serverVariables)); } @@ -513,6 +514,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; @@ -792,6 +794,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). @@ -843,11 +880,11 @@ public Entity serialize(Object obj, Map formParams, String co * Adds the object with the provided key to the MultiPart. * Based on the object type sets Content-Disposition and Content-Type. * - * @param obj Object + * @param value Object * @param key Key of the object * @param multiPart MultiPart to add the form param to */ - private void addParamToMultipart(Object value, String key, MultiPart multiPart) { + protected void addParamToMultipart(Object value, String key, MultiPart multiPart) { if (value instanceof File) { File file = (File) value; FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key) @@ -1013,6 +1050,7 @@ public File prepareDownloadFile(Response response) throws IOException { * @param authNames The authentications to apply * @param returnType The return type into which to deserialize the response * @param isBodyNullable True if the body is nullable + * @param errorTypes Mapping of error codes to types into which to deserialize the response * @return The response body in type of string * @throws ApiException API exception */ @@ -1029,7 +1067,9 @@ public ApiResponse invokeAPI( String contentType, String[] authNames, GenericType returnType, - boolean isBodyNullable) + boolean isBodyNullable, + Map errorTypes + ) throws ApiException { String targetURL; @@ -1040,6 +1080,7 @@ public ApiResponse invokeAPI( if (index < 0 || index >= serverConfigurations.size()) { throw new ArrayIndexOutOfBoundsException( String.format( + Locale.ROOT, "Invalid index %d when selecting the host settings. Must be less than %d", index, serverConfigurations.size())); } @@ -1051,6 +1092,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) { @@ -1081,22 +1138,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) { @@ -1151,8 +1192,32 @@ public ApiResponse invokeAPI( } } } + + /** + * Deserialize the response body into an error entity based on HTTP status code. + * Looks up the error type from the errorTypes map using the response status code, + * or falls back to the "default" error type if no match is found. + * + * @param errorTypes Map of status code strings to GenericType for deserialization + * @param response The HTTP response + * @return The deserialized error entity, or null if not found or deserialization fails + */ + private Object deserializeErrorEntity(Map errorTypes, Response response) { + if (errorTypes == null) { + return null; + } + GenericType errorType = errorTypes.get(String.valueOf(response.getStatus())); + if (errorType == null) { + errorType = errorTypes.get("0"); // "0" is the "default" response + } + try { + return deserialize(response, errorType); + } catch (Exception e) { + return null; + } + } - 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); @@ -1177,7 +1242,45 @@ private Response sendRequest(String method, Invocation.Builder invocationBuilder */ @Deprecated public ApiResponse invokeAPI(String path, String method, List queryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String accept, String contentType, String[] authNames, GenericType returnType, boolean isBodyNullable) throws ApiException { - return invokeAPI(null, path, method, queryParams, body, headerParams, cookieParams, formParams, accept, contentType, authNames, returnType, isBodyNullable); + return invokeAPI(null, path, method, queryParams, body, headerParams, cookieParams, formParams, accept, contentType, authNames, returnType, isBodyNullable, null/*TODO SME manage*/); + } + + /** + * Invoke API by sending HTTP request with the given options, without error types. + * + * @param Type + * @param operation The qualified name of the operation + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "POST", "PUT", "HEAD" and "DELETE" + * @param queryParams The query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param cookieParams The cookie parameters + * @param formParams The form parameters + * @param accept The request's Accept header + * @param contentType The request's Content-Type header + * @param authNames The authentications to apply + * @param returnType The return type into which to deserialize the response + * @param isBodyNullable True if the body is nullable + * @return The response body in type of string + * @throws ApiException API exception + */ + public ApiResponse invokeAPI( + String operation, + String path, + String method, + List queryParams, + Object body, + Map headerParams, + Map cookieParams, + Map formParams, + String accept, + String contentType, + String[] authNames, + GenericType returnType, + boolean isBodyNullable) + throws ApiException { + return invokeAPI(operation, path, method, queryParams, body, headerParams, cookieParams, formParams, accept, contentType, authNames, returnType, isBodyNullable, null); } /** @@ -1186,8 +1289,10 @@ public ApiResponse invokeAPI(String path, String method, List query * @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); @@ -1208,6 +1313,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(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); @@ -1217,8 +1327,6 @@ public ClientConfig getDefaultClientConfig() { // suppress warnings for payloads with DELETE calls: java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE); } - - return clientConfig; } /** @@ -1310,4 +1418,4 @@ protected void updateParamsForAuth(String[] authNames, List queryParams, M auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); } } -} +} \ No newline at end of file diff --git a/src/main/java/com/dropbox/sign/ApiException.java b/src/main/java/com/dropbox/sign/ApiException.java index bb510405..de0c04bb 100644 --- a/src/main/java/com/dropbox/sign/ApiException.java +++ b/src/main/java/com/dropbox/sign/ApiException.java @@ -20,13 +20,14 @@ /** * API Exception */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; private int code = 0; private Map> responseHeaders = null; private String responseBody = null; + private transient Object errorEntity = null; private ErrorResponse errorResponse; public ApiException() {} @@ -69,9 +70,15 @@ public ApiException(int code, String message, Map> response this.responseBody = responseBody; } + public ApiException(int code, String message, Map> responseHeaders, String responseBody, Object errorEntity) { + this(code, message, responseHeaders, responseBody); + this.errorEntity = errorEntity; + } + public ApiException(int code, String message, Map> responseHeaders, String responseBody, ErrorResponse errorResponse) { this(code, message, responseHeaders, responseBody); this.errorResponse = errorResponse; + this.errorEntity = errorResponse; } /** @@ -101,6 +108,15 @@ public String getResponseBody() { return responseBody; } + /** + * Get the deserialized error entity (or null if this error doesn't have a model associated). + * + * @return Deserialized error entity + */ + public Object getErrorEntity() { + return errorEntity; + } + public ErrorResponse getErrorResponse() { return errorResponse; } diff --git a/src/main/java/com/dropbox/sign/Configuration.java b/src/main/java/com/dropbox/sign/Configuration.java index 8525fd4b..c02ae0d0 100644 --- a/src/main/java/com/dropbox/sign/Configuration.java +++ b/src/main/java/com/dropbox/sign/Configuration.java @@ -13,29 +13,51 @@ package com.dropbox.sign; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Supplier; + +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class Configuration { - public static final String VERSION = "2.10.0"; - - 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 = "2.11.0"; + + 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); + } + + public Configuration() { + } +} \ No newline at end of file diff --git a/src/main/java/com/dropbox/sign/EventCallbackHelper.java b/src/main/java/com/dropbox/sign/EventCallbackHelper.java index 837f2118..3c36001f 100644 --- a/src/main/java/com/dropbox/sign/EventCallbackHelper.java +++ b/src/main/java/com/dropbox/sign/EventCallbackHelper.java @@ -18,7 +18,7 @@ import org.apache.commons.codec.digest.HmacAlgorithms; import org.apache.commons.codec.digest.HmacUtils; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class EventCallbackHelper { public static final String EVENT_TYPE_ACCOUNT_CALLBACK = "account_callback"; diff --git a/src/main/java/com/dropbox/sign/JSON.java b/src/main/java/com/dropbox/sign/JSON.java index feb72da5..e3c526ea 100644 --- a/src/main/java/com/dropbox/sign/JSON.java +++ b/src/main/java/com/dropbox/sign/JSON.java @@ -26,7 +26,7 @@ import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class JSON implements ContextResolver { private ObjectMapper mapper; @@ -41,6 +41,7 @@ public JSON() { .enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING) .defaultDateFormat(new RFC3339DateFormat()) .addModule(new JavaTimeModule()) + .addModule(new RFC3339JavaTimeModule()) .build(); } diff --git a/src/main/java/com/dropbox/sign/JavaTimeFormatter.java b/src/main/java/com/dropbox/sign/JavaTimeFormatter.java index b9cf82bd..46c939a7 100644 --- a/src/main/java/com/dropbox/sign/JavaTimeFormatter.java +++ b/src/main/java/com/dropbox/sign/JavaTimeFormatter.java @@ -20,45 +20,49 @@ * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") 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/src/main/java/com/dropbox/sign/Pair.java b/src/main/java/com/dropbox/sign/Pair.java index 8172fd6a..c7357346 100644 --- a/src/main/java/com/dropbox/sign/Pair.java +++ b/src/main/java/com/dropbox/sign/Pair.java @@ -13,45 +13,25 @@ package com.dropbox.sign; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", 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); - } + public Pair(String name, String value) { + this.name = isValidString(name) ? name : ""; + this.value = isValidString(value) ? value : ""; + } - private void setName(String name) { - if (!isValidString(name)) { - return; - } + public String getName() { + return this.name; + } - this.name = name; - } + public String getValue() { + return this.value; + } - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; - } - - public String getName() { - return this.name; - } - - 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/src/main/java/com/dropbox/sign/RFC3339DateFormat.java b/src/main/java/com/dropbox/sign/RFC3339DateFormat.java index 2f903364..bbd98b88 100644 --- a/src/main/java/com/dropbox/sign/RFC3339DateFormat.java +++ b/src/main/java/com/dropbox/sign/RFC3339DateFormat.java @@ -12,8 +12,6 @@ package com.dropbox.sign; -import com.fasterxml.jackson.databind.util.StdDateFormat; - import java.text.DateFormat; import java.text.FieldPosition; import java.text.ParsePosition; @@ -21,8 +19,9 @@ import java.text.DecimalFormat; import java.util.GregorianCalendar; import java.util.TimeZone; +import com.fasterxml.jackson.databind.util.StdDateFormat; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", 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/src/main/java/com/dropbox/sign/RFC3339InstantDeserializer.java b/src/main/java/com/dropbox/sign/RFC3339InstantDeserializer.java new file mode 100644 index 00000000..ddb80b5a --- /dev/null +++ b/src/main/java/com/dropbox/sign/RFC3339InstantDeserializer.java @@ -0,0 +1,100 @@ +/* + * 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 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; + +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; + +@jakarta.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 final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault(); + private final static 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' )); + } +} \ No newline at end of file diff --git a/src/main/java/com/dropbox/sign/RFC3339JavaTimeModule.java b/src/main/java/com/dropbox/sign/RFC3339JavaTimeModule.java new file mode 100644 index 00000000..762cc62c --- /dev/null +++ b/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 java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZonedDateTime; + +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.fasterxml.jackson.databind.Module.SetupContext; + +@jakarta.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/src/main/java/com/dropbox/sign/ServerConfiguration.java b/src/main/java/com/dropbox/sign/ServerConfiguration.java index e9479327..ca70aeee 100644 --- a/src/main/java/com/dropbox/sign/ServerConfiguration.java +++ b/src/main/java/com/dropbox/sign/ServerConfiguration.java @@ -18,7 +18,7 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/com/dropbox/sign/ServerVariable.java b/src/main/java/com/dropbox/sign/ServerVariable.java index f45333ca..c160410a 100644 --- a/src/main/java/com/dropbox/sign/ServerVariable.java +++ b/src/main/java/com/dropbox/sign/ServerVariable.java @@ -18,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/com/dropbox/sign/StringUtil.java b/src/main/java/com/dropbox/sign/StringUtil.java index 246fae55..efadddda 100644 --- a/src/main/java/com/dropbox/sign/StringUtil.java +++ b/src/main/java/com/dropbox/sign/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", 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/src/main/java/com/dropbox/sign/api/AccountApi.java b/src/main/java/com/dropbox/sign/api/AccountApi.java index 95a90569..5f25fd3b 100644 --- a/src/main/java/com/dropbox/sign/api/AccountApi.java +++ b/src/main/java/com/dropbox/sign/api/AccountApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class AccountApi { private ApiClient apiClient; @@ -67,7 +67,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateRequest) throws ApiException { + public AccountCreateResponse accountCreate(@jakarta.annotation.Nonnull AccountCreateRequest accountCreateRequest) throws ApiException { return accountCreateWithHttpInfo(accountCreateRequest).getData(); } @@ -87,7 +87,7 @@ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateReq 4XX failed_operation - */ - public ApiResponse accountCreateWithHttpInfo(AccountCreateRequest accountCreateRequest) throws ApiException { + public ApiResponse accountCreateWithHttpInfo(@jakarta.annotation.Nonnull AccountCreateRequest accountCreateRequest) throws ApiException { // Check required parameters if (accountCreateRequest == null) { @@ -133,7 +133,7 @@ public ApiResponse accountCreateWithHttpInfo(AccountCreat 4XX failed_operation - */ - public AccountGetResponse accountGet(String accountId, String emailAddress) throws ApiException { + public AccountGetResponse accountGet(@jakarta.annotation.Nullable String accountId, @jakarta.annotation.Nullable String emailAddress) throws ApiException { return accountGetWithHttpInfo(accountId, emailAddress).getData(); } @@ -193,7 +193,7 @@ public ApiResponse accountGetWithHttpInfo(String accountId) 4XX failed_operation - */ - public ApiResponse accountGetWithHttpInfo(String accountId, String emailAddress) throws ApiException { + public ApiResponse accountGetWithHttpInfo(@jakarta.annotation.Nullable String accountId, @jakarta.annotation.Nullable String emailAddress) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( @@ -239,7 +239,7 @@ public ApiResponse accountGetWithHttpInfo(String accountId, 4XX failed_operation - */ - public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateRequest) throws ApiException { + public AccountGetResponse accountUpdate(@jakarta.annotation.Nonnull AccountUpdateRequest accountUpdateRequest) throws ApiException { return accountUpdateWithHttpInfo(accountUpdateRequest).getData(); } @@ -259,7 +259,7 @@ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateReques 4XX failed_operation - */ - public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRequest accountUpdateRequest) throws ApiException { + public ApiResponse accountUpdateWithHttpInfo(@jakarta.annotation.Nonnull AccountUpdateRequest accountUpdateRequest) throws ApiException { // Check required parameters if (accountUpdateRequest == null) { @@ -304,7 +304,7 @@ public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRe 4XX failed_operation - */ - public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyRequest) throws ApiException { + public AccountVerifyResponse accountVerify(@jakarta.annotation.Nonnull AccountVerifyRequest accountVerifyRequest) throws ApiException { return accountVerifyWithHttpInfo(accountVerifyRequest).getData(); } @@ -324,7 +324,7 @@ public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyReq 4XX failed_operation - */ - public ApiResponse accountVerifyWithHttpInfo(AccountVerifyRequest accountVerifyRequest) throws ApiException { + public ApiResponse accountVerifyWithHttpInfo(@jakarta.annotation.Nonnull AccountVerifyRequest accountVerifyRequest) throws ApiException { // Check required parameters if (accountVerifyRequest == null) { diff --git a/src/main/java/com/dropbox/sign/api/ApiAppApi.java b/src/main/java/com/dropbox/sign/api/ApiAppApi.java index b30d6505..fca767d9 100644 --- a/src/main/java/com/dropbox/sign/api/ApiAppApi.java +++ b/src/main/java/com/dropbox/sign/api/ApiAppApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class ApiAppApi { private ApiClient apiClient; @@ -65,7 +65,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { + public ApiAppGetResponse apiAppCreate(@jakarta.annotation.Nonnull ApiAppCreateRequest apiAppCreateRequest) throws ApiException { return apiAppCreateWithHttpInfo(apiAppCreateRequest).getData(); } @@ -85,7 +85,7 @@ public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) t 4XX failed_operation - */ - public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateRequest apiAppCreateRequest) throws ApiException { + public ApiResponse apiAppCreateWithHttpInfo(@jakarta.annotation.Nonnull ApiAppCreateRequest apiAppCreateRequest) throws ApiException { // Check required parameters if (apiAppCreateRequest == null) { @@ -129,7 +129,7 @@ public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateReque 4XX failed_operation - */ - public void apiAppDelete(String clientId) throws ApiException { + public void apiAppDelete(@jakarta.annotation.Nonnull String clientId) throws ApiException { apiAppDeleteWithHttpInfo(clientId); } @@ -149,7 +149,7 @@ public void apiAppDelete(String clientId) throws ApiException { 4XX failed_operation - */ - public ApiResponse apiAppDeleteWithHttpInfo(String clientId) throws ApiException { + public ApiResponse apiAppDeleteWithHttpInfo(@jakarta.annotation.Nonnull String clientId) throws ApiException { // Check required parameters if (clientId == null) { @@ -197,7 +197,7 @@ public ApiResponse apiAppDeleteWithHttpInfo(String clientId) throws ApiExc 4XX failed_operation - */ - public ApiAppGetResponse apiAppGet(String clientId) throws ApiException { + public ApiAppGetResponse apiAppGet(@jakarta.annotation.Nonnull String clientId) throws ApiException { return apiAppGetWithHttpInfo(clientId).getData(); } @@ -217,7 +217,7 @@ public ApiAppGetResponse apiAppGet(String clientId) throws ApiException { 4XX failed_operation - */ - public ApiResponse apiAppGetWithHttpInfo(String clientId) throws ApiException { + public ApiResponse apiAppGetWithHttpInfo(@jakarta.annotation.Nonnull String clientId) throws ApiException { // Check required parameters if (clientId == null) { @@ -267,7 +267,7 @@ public ApiResponse apiAppGetWithHttpInfo(String clientId) thr 4XX failed_operation - */ - public ApiAppListResponse apiAppList(Integer page, Integer pageSize) throws ApiException { + public ApiAppListResponse apiAppList(@jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { return apiAppListWithHttpInfo(page, pageSize).getData(); } @@ -327,7 +327,7 @@ public ApiResponse apiAppListWithHttpInfo(Integer page) thro 4XX failed_operation - */ - public ApiResponse apiAppListWithHttpInfo(Integer page, Integer pageSize) throws ApiException { + public ApiResponse apiAppListWithHttpInfo(@jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { if (page == null) { page = 1; @@ -380,7 +380,7 @@ public ApiResponse apiAppListWithHttpInfo(Integer page, Inte 4XX failed_operation - */ - public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { + public ApiAppGetResponse apiAppUpdate(@jakarta.annotation.Nonnull String clientId, @jakarta.annotation.Nonnull ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest).getData(); } @@ -401,7 +401,7 @@ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAp 4XX failed_operation - */ - public ApiResponse apiAppUpdateWithHttpInfo(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { + public ApiResponse apiAppUpdateWithHttpInfo(@jakarta.annotation.Nonnull String clientId, @jakarta.annotation.Nonnull ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { // Check required parameters if (clientId == null) { diff --git a/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java b/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java index bde06732..52ed5c84 100644 --- a/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java +++ b/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class BulkSendJobApi { private ApiClient apiClient; @@ -65,7 +65,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public BulkSendJobGetResponse bulkSendJobGet(String bulkSendJobId, Integer page, Integer pageSize) throws ApiException { + public BulkSendJobGetResponse bulkSendJobGet(@jakarta.annotation.Nonnull String bulkSendJobId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { return bulkSendJobGetWithHttpInfo(bulkSendJobId, page, pageSize).getData(); } @@ -126,7 +126,7 @@ public ApiResponse bulkSendJobGetWithHttpInfo(String bul 4XX failed_operation - */ - public ApiResponse bulkSendJobGetWithHttpInfo(String bulkSendJobId, Integer page, Integer pageSize) throws ApiException { + public ApiResponse bulkSendJobGetWithHttpInfo(@jakarta.annotation.Nonnull String bulkSendJobId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { if (page == null) { page = 1; @@ -188,7 +188,7 @@ public ApiResponse bulkSendJobGetWithHttpInfo(String bul 4XX failed_operation - */ - public BulkSendJobListResponse bulkSendJobList(Integer page, Integer pageSize) throws ApiException { + public BulkSendJobListResponse bulkSendJobList(@jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { return bulkSendJobListWithHttpInfo(page, pageSize).getData(); } @@ -248,7 +248,7 @@ public ApiResponse bulkSendJobListWithHttpInfo(Integer 4XX failed_operation - */ - public ApiResponse bulkSendJobListWithHttpInfo(Integer page, Integer pageSize) throws ApiException { + public ApiResponse bulkSendJobListWithHttpInfo(@jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { if (page == null) { page = 1; diff --git a/src/main/java/com/dropbox/sign/api/DocumentApi.java b/src/main/java/com/dropbox/sign/api/DocumentApi.java index 1bf68ca4..209382a4 100644 --- a/src/main/java/com/dropbox/sign/api/DocumentApi.java +++ b/src/main/java/com/dropbox/sign/api/DocumentApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class DocumentApi { private ApiClient apiClient; @@ -63,7 +63,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public DocumentFieldDetectionResponse documentDetectFields(DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { + public DocumentFieldDetectionResponse documentDetectFields(@jakarta.annotation.Nonnull DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest).getData(); } @@ -83,7 +83,7 @@ public DocumentFieldDetectionResponse documentDetectFields(DocumentFieldDetectio 4XX failed_operation - */ - public ApiResponse documentDetectFieldsWithHttpInfo(DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { + public ApiResponse documentDetectFieldsWithHttpInfo(@jakarta.annotation.Nonnull DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { // Check required parameters if (documentFieldDetectionRequest == null) { diff --git a/src/main/java/com/dropbox/sign/api/EmbeddedApi.java b/src/main/java/com/dropbox/sign/api/EmbeddedApi.java index 3cc198b8..651919e9 100644 --- a/src/main/java/com/dropbox/sign/api/EmbeddedApi.java +++ b/src/main/java/com/dropbox/sign/api/EmbeddedApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class EmbeddedApi { private ApiClient apiClient; @@ -65,7 +65,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public EmbeddedEditUrlResponse embeddedEditUrl(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { + public EmbeddedEditUrlResponse embeddedEditUrl(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nonnull EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest).getData(); } @@ -86,7 +86,7 @@ public EmbeddedEditUrlResponse embeddedEditUrl(String templateId, EmbeddedEditUr 4XX failed_operation - */ - public ApiResponse embeddedEditUrlWithHttpInfo(String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { + public ApiResponse embeddedEditUrlWithHttpInfo(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nonnull EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -138,7 +138,7 @@ public ApiResponse embeddedEditUrlWithHttpInfo(String t 4XX failed_operation - */ - public EmbeddedSignUrlResponse embeddedSignUrl(String signatureId) throws ApiException { + public EmbeddedSignUrlResponse embeddedSignUrl(@jakarta.annotation.Nonnull String signatureId) throws ApiException { return embeddedSignUrlWithHttpInfo(signatureId).getData(); } @@ -158,7 +158,7 @@ public EmbeddedSignUrlResponse embeddedSignUrl(String signatureId) throws ApiExc 4XX failed_operation - */ - public ApiResponse embeddedSignUrlWithHttpInfo(String signatureId) throws ApiException { + public ApiResponse embeddedSignUrlWithHttpInfo(@jakarta.annotation.Nonnull String signatureId) throws ApiException { // Check required parameters if (signatureId == null) { diff --git a/src/main/java/com/dropbox/sign/api/FaxApi.java b/src/main/java/com/dropbox/sign/api/FaxApi.java index 07aa92b0..65f6f778 100644 --- a/src/main/java/com/dropbox/sign/api/FaxApi.java +++ b/src/main/java/com/dropbox/sign/api/FaxApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class FaxApi { private ApiClient apiClient; @@ -64,7 +64,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public void faxDelete(String faxId) throws ApiException { + public void faxDelete(@jakarta.annotation.Nonnull String faxId) throws ApiException { faxDeleteWithHttpInfo(faxId); } @@ -84,7 +84,7 @@ public void faxDelete(String faxId) throws ApiException { 4XX failed_operation - */ - public ApiResponse faxDeleteWithHttpInfo(String faxId) throws ApiException { + public ApiResponse faxDeleteWithHttpInfo(@jakarta.annotation.Nonnull String faxId) throws ApiException { // Check required parameters if (faxId == null) { @@ -132,7 +132,7 @@ public ApiResponse faxDeleteWithHttpInfo(String faxId) throws ApiException 4XX failed_operation - */ - public File faxFiles(String faxId) throws ApiException { + public File faxFiles(@jakarta.annotation.Nonnull String faxId) throws ApiException { return faxFilesWithHttpInfo(faxId).getData(); } @@ -152,7 +152,7 @@ public File faxFiles(String faxId) throws ApiException { 4XX failed_operation - */ - public ApiResponse faxFilesWithHttpInfo(String faxId) throws ApiException { + public ApiResponse faxFilesWithHttpInfo(@jakarta.annotation.Nonnull String faxId) throws ApiException { // Check required parameters if (faxId == null) { @@ -201,7 +201,7 @@ public ApiResponse faxFilesWithHttpInfo(String faxId) throws ApiException 4XX failed_operation - */ - public FaxGetResponse faxGet(String faxId) throws ApiException { + public FaxGetResponse faxGet(@jakarta.annotation.Nonnull String faxId) throws ApiException { return faxGetWithHttpInfo(faxId).getData(); } @@ -221,7 +221,7 @@ public FaxGetResponse faxGet(String faxId) throws ApiException { 4XX failed_operation - */ - public ApiResponse faxGetWithHttpInfo(String faxId) throws ApiException { + public ApiResponse faxGetWithHttpInfo(@jakarta.annotation.Nonnull String faxId) throws ApiException { // Check required parameters if (faxId == null) { @@ -271,7 +271,7 @@ public ApiResponse faxGetWithHttpInfo(String faxId) throws ApiEx 4XX failed_operation - */ - public FaxListResponse faxList(Integer page, Integer pageSize) throws ApiException { + public FaxListResponse faxList(@jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { return faxListWithHttpInfo(page, pageSize).getData(); } @@ -331,7 +331,7 @@ public ApiResponse faxListWithHttpInfo(Integer page) throws Api 4XX failed_operation - */ - public ApiResponse faxListWithHttpInfo(Integer page, Integer pageSize) throws ApiException { + public ApiResponse faxListWithHttpInfo(@jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { if (page == null) { page = 1; @@ -383,7 +383,7 @@ public ApiResponse faxListWithHttpInfo(Integer page, Integer pa 4XX failed_operation - */ - public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException { + public FaxGetResponse faxSend(@jakarta.annotation.Nonnull FaxSendRequest faxSendRequest) throws ApiException { return faxSendWithHttpInfo(faxSendRequest).getData(); } @@ -403,7 +403,7 @@ public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException 4XX failed_operation - */ - public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) throws ApiException { + public ApiResponse faxSendWithHttpInfo(@jakarta.annotation.Nonnull FaxSendRequest faxSendRequest) throws ApiException { // Check required parameters if (faxSendRequest == null) { diff --git a/src/main/java/com/dropbox/sign/api/FaxLineApi.java b/src/main/java/com/dropbox/sign/api/FaxLineApi.java index 4980f9f7..1bfc1171 100644 --- a/src/main/java/com/dropbox/sign/api/FaxLineApi.java +++ b/src/main/java/com/dropbox/sign/api/FaxLineApi.java @@ -23,7 +23,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class FaxLineApi { private ApiClient apiClient; @@ -68,7 +68,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { + public FaxLineResponse faxLineAddUser(@jakarta.annotation.Nonnull FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { return faxLineAddUserWithHttpInfo(faxLineAddUserRequest).getData(); } @@ -88,7 +88,7 @@ public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserReques 4XX failed_operation - */ - public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { + public ApiResponse faxLineAddUserWithHttpInfo(@jakarta.annotation.Nonnull FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { // Check required parameters if (faxLineAddUserRequest == null) { @@ -136,7 +136,7 @@ public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserReq 4XX failed_operation - */ - public FaxLineAreaCodeGetResponse faxLineAreaCodeGet(String country, String state, String province, String city) throws ApiException { + public FaxLineAreaCodeGetResponse faxLineAreaCodeGet(@jakarta.annotation.Nonnull String country, @jakarta.annotation.Nullable String state, @jakarta.annotation.Nullable String province, @jakarta.annotation.Nullable String city) throws ApiException { return faxLineAreaCodeGetWithHttpInfo(country, state, province, city).getData(); } @@ -220,7 +220,7 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo(St 4XX failed_operation - */ - public ApiResponse faxLineAreaCodeGetWithHttpInfo(String country, String state, String province, String city) throws ApiException { + public ApiResponse faxLineAreaCodeGetWithHttpInfo(@jakarta.annotation.Nonnull String country, @jakarta.annotation.Nullable String state, @jakarta.annotation.Nullable String province, @jakarta.annotation.Nullable String city) throws ApiException { // Check required parameters if (country == null) { @@ -273,7 +273,7 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo(St 4XX failed_operation - */ - public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { + public FaxLineResponse faxLineCreate(@jakarta.annotation.Nonnull FaxLineCreateRequest faxLineCreateRequest) throws ApiException { return faxLineCreateWithHttpInfo(faxLineCreateRequest).getData(); } @@ -293,7 +293,7 @@ public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) 4XX failed_operation - */ - public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateRequest faxLineCreateRequest) throws ApiException { + public ApiResponse faxLineCreateWithHttpInfo(@jakarta.annotation.Nonnull FaxLineCreateRequest faxLineCreateRequest) throws ApiException { // Check required parameters if (faxLineCreateRequest == null) { @@ -337,7 +337,7 @@ public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateReque 4XX failed_operation - */ - public void faxLineDelete(FaxLineDeleteRequest faxLineDeleteRequest) throws ApiException { + public void faxLineDelete(@jakarta.annotation.Nonnull FaxLineDeleteRequest faxLineDeleteRequest) throws ApiException { faxLineDeleteWithHttpInfo(faxLineDeleteRequest); } @@ -357,7 +357,7 @@ public void faxLineDelete(FaxLineDeleteRequest faxLineDeleteRequest) throws ApiE 4XX failed_operation - */ - public ApiResponse faxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineDeleteRequest) throws ApiException { + public ApiResponse faxLineDeleteWithHttpInfo(@jakarta.annotation.Nonnull FaxLineDeleteRequest faxLineDeleteRequest) throws ApiException { // Check required parameters if (faxLineDeleteRequest == null) { @@ -401,7 +401,7 @@ public ApiResponse faxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineD 4XX failed_operation - */ - public FaxLineResponse faxLineGet(String number) throws ApiException { + public FaxLineResponse faxLineGet(@jakarta.annotation.Nonnull String number) throws ApiException { return faxLineGetWithHttpInfo(number).getData(); } @@ -421,7 +421,7 @@ public FaxLineResponse faxLineGet(String number) throws ApiException { 4XX failed_operation - */ - public ApiResponse faxLineGetWithHttpInfo(String number) throws ApiException { + public ApiResponse faxLineGetWithHttpInfo(@jakarta.annotation.Nonnull String number) throws ApiException { // Check required parameters if (number == null) { @@ -474,7 +474,7 @@ public ApiResponse faxLineGetWithHttpInfo(String number) throws 4XX failed_operation - */ - public FaxLineListResponse faxLineList(String accountId, Integer page, Integer pageSize, Boolean showTeamLines) throws ApiException { + public FaxLineListResponse faxLineList(@jakarta.annotation.Nullable String accountId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize, @jakarta.annotation.Nullable Boolean showTeamLines) throws ApiException { return faxLineListWithHttpInfo(accountId, page, pageSize, showTeamLines).getData(); } @@ -582,7 +582,7 @@ public ApiResponse faxLineListWithHttpInfo(String accountId 4XX failed_operation - */ - public ApiResponse faxLineListWithHttpInfo(String accountId, Integer page, Integer pageSize, Boolean showTeamLines) throws ApiException { + public ApiResponse faxLineListWithHttpInfo(@jakarta.annotation.Nullable String accountId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize, @jakarta.annotation.Nullable Boolean showTeamLines) throws ApiException { if (page == null) { page = 1; @@ -636,7 +636,7 @@ public ApiResponse faxLineListWithHttpInfo(String accountId 4XX failed_operation - */ - public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { + public FaxLineResponse faxLineRemoveUser(@jakarta.annotation.Nonnull FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest).getData(); } @@ -656,7 +656,7 @@ public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveU 4XX failed_operation - */ - public ApiResponse faxLineRemoveUserWithHttpInfo(FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { + public ApiResponse faxLineRemoveUserWithHttpInfo(@jakarta.annotation.Nonnull FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { // Check required parameters if (faxLineRemoveUserRequest == null) { diff --git a/src/main/java/com/dropbox/sign/api/OAuthApi.java b/src/main/java/com/dropbox/sign/api/OAuthApi.java index d14b6cdb..9be3c5c4 100644 --- a/src/main/java/com/dropbox/sign/api/OAuthApi.java +++ b/src/main/java/com/dropbox/sign/api/OAuthApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class OAuthApi { private ApiClient apiClient; @@ -64,7 +64,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public OAuthTokenResponse oauthTokenGenerate(OAuthTokenGenerateRequest oauthTokenGenerateRequest) throws ApiException { + public OAuthTokenResponse oauthTokenGenerate(@jakarta.annotation.Nonnull OAuthTokenGenerateRequest oauthTokenGenerateRequest) throws ApiException { return oauthTokenGenerateWithHttpInfo(oauthTokenGenerateRequest).getData(); } @@ -84,7 +84,7 @@ public OAuthTokenResponse oauthTokenGenerate(OAuthTokenGenerateRequest oauthToke 4XX failed_operation - */ - public ApiResponse oauthTokenGenerateWithHttpInfo(OAuthTokenGenerateRequest oauthTokenGenerateRequest) throws ApiException { + public ApiResponse oauthTokenGenerateWithHttpInfo(@jakarta.annotation.Nonnull OAuthTokenGenerateRequest oauthTokenGenerateRequest) throws ApiException { // Check required parameters if (oauthTokenGenerateRequest == null) { @@ -128,7 +128,7 @@ public ApiResponse oauthTokenGenerateWithHttpInfo(OAuthToken 4XX failed_operation - */ - public OAuthTokenResponse oauthTokenRefresh(OAuthTokenRefreshRequest oauthTokenRefreshRequest) throws ApiException { + public OAuthTokenResponse oauthTokenRefresh(@jakarta.annotation.Nonnull OAuthTokenRefreshRequest oauthTokenRefreshRequest) throws ApiException { return oauthTokenRefreshWithHttpInfo(oauthTokenRefreshRequest).getData(); } @@ -148,7 +148,7 @@ public OAuthTokenResponse oauthTokenRefresh(OAuthTokenRefreshRequest oauthTokenR 4XX failed_operation - */ - public ApiResponse oauthTokenRefreshWithHttpInfo(OAuthTokenRefreshRequest oauthTokenRefreshRequest) throws ApiException { + public ApiResponse oauthTokenRefreshWithHttpInfo(@jakarta.annotation.Nonnull OAuthTokenRefreshRequest oauthTokenRefreshRequest) throws ApiException { // Check required parameters if (oauthTokenRefreshRequest == null) { diff --git a/src/main/java/com/dropbox/sign/api/ReportApi.java b/src/main/java/com/dropbox/sign/api/ReportApi.java index 472111d6..fda5579b 100644 --- a/src/main/java/com/dropbox/sign/api/ReportApi.java +++ b/src/main/java/com/dropbox/sign/api/ReportApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class ReportApi { private ApiClient apiClient; @@ -63,7 +63,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest) throws ApiException { + public ReportCreateResponse reportCreate(@jakarta.annotation.Nonnull ReportCreateRequest reportCreateRequest) throws ApiException { return reportCreateWithHttpInfo(reportCreateRequest).getData(); } @@ -83,7 +83,7 @@ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest 4XX failed_operation - */ - public ApiResponse reportCreateWithHttpInfo(ReportCreateRequest reportCreateRequest) throws ApiException { + public ApiResponse reportCreateWithHttpInfo(@jakarta.annotation.Nonnull ReportCreateRequest reportCreateRequest) throws ApiException { // Check required parameters if (reportCreateRequest == null) { diff --git a/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java b/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java index 539a8720..5cc1d24f 100644 --- a/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java +++ b/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java @@ -34,7 +34,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class SignatureRequestApi { private ApiClient apiClient; @@ -79,7 +79,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { + public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(@jakarta.annotation.Nonnull SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestBulkCreateEmbeddedWithTemplateRequest).getData(); } @@ -99,7 +99,7 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(Si 4XX failed_operation - */ - public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo(@jakarta.annotation.Nonnull SignatureRequestBulkCreateEmbeddedWithTemplateRequest signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestBulkCreateEmbeddedWithTemplateRequest == null) { @@ -144,7 +144,7 @@ public ApiResponse signatureRequestBulkCreateEmbeddedWi 4XX failed_operation - */ - public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { + public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(@jakarta.annotation.Nonnull SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { return signatureRequestBulkSendWithTemplateWithHttpInfo(signatureRequestBulkSendWithTemplateRequest).getData(); } @@ -164,7 +164,7 @@ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(SignatureReq 4XX failed_operation - */ - public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo(SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo(@jakarta.annotation.Nonnull SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestBulkSendWithTemplateRequest == null) { @@ -208,7 +208,7 @@ public ApiResponse signatureRequestBulkSendWithTemplate 4XX failed_operation - */ - public void signatureRequestCancel(String signatureRequestId) throws ApiException { + public void signatureRequestCancel(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { signatureRequestCancelWithHttpInfo(signatureRequestId); } @@ -228,7 +228,7 @@ public void signatureRequestCancel(String signatureRequestId) throws ApiExceptio 4XX failed_operation - */ - public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) throws ApiException { + public ApiResponse signatureRequestCancelWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -276,7 +276,7 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestCreateEmbedded(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestCreateEmbedded(@jakarta.annotation.Nonnull SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest).getData(); } @@ -296,7 +296,7 @@ public SignatureRequestGetResponse signatureRequestCreateEmbedded(SignatureReque 4XX failed_operation - */ - public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo(SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { + public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo(@jakarta.annotation.Nonnull SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { // Check required parameters if (signatureRequestCreateEmbeddedRequest == null) { @@ -341,7 +341,7 @@ public ApiResponse signatureRequestCreateEmbeddedWi 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(@jakarta.annotation.Nonnull SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(signatureRequestCreateEmbeddedWithTemplateRequest).getData(); } @@ -361,7 +361,7 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(Si 4XX failed_operation - */ - public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo(@jakarta.annotation.Nonnull SignatureRequestCreateEmbeddedWithTemplateRequest signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestCreateEmbeddedWithTemplateRequest == null) { @@ -407,7 +407,7 @@ public ApiResponse signatureRequestCreateEmbeddedWi 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestEdit(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestEdit(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest).getData(); } @@ -428,7 +428,7 @@ public SignatureRequestGetResponse signatureRequestEdit(String signatureRequestI 4XX failed_operation - */ - public ApiResponse signatureRequestEditWithHttpInfo(String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { + public ApiResponse signatureRequestEditWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -481,7 +481,7 @@ public ApiResponse signatureRequestEditWithHttpInfo 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestEditEmbedded(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestEditEmbedded(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { return signatureRequestEditEmbeddedWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedRequest).getData(); } @@ -502,7 +502,7 @@ public SignatureRequestGetResponse signatureRequestEditEmbedded(String signature 4XX failed_operation - */ - public ApiResponse signatureRequestEditEmbeddedWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { + public ApiResponse signatureRequestEditEmbeddedWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -555,7 +555,7 @@ public ApiResponse signatureRequestEditEmbeddedWith 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { return signatureRequestEditEmbeddedWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest).getData(); } @@ -576,7 +576,7 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(Stri 4XX failed_operation - */ - public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestEditEmbeddedWithTemplateRequest signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -629,7 +629,7 @@ public ApiResponse signatureRequestEditEmbeddedWith 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestEditWithTemplate(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestEditWithTemplate(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { return signatureRequestEditWithTemplateWithHttpInfo(signatureRequestId, signatureRequestEditWithTemplateRequest).getData(); } @@ -650,7 +650,7 @@ public SignatureRequestGetResponse signatureRequestEditWithTemplate(String signa 4XX failed_operation - */ - public ApiResponse signatureRequestEditWithTemplateWithHttpInfo(String signatureRequestId, SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestEditWithTemplateWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -703,7 +703,7 @@ public ApiResponse signatureRequestEditWithTemplate 4XX failed_operation - */ - public File signatureRequestFiles(String signatureRequestId, String fileType) throws ApiException { + public File signatureRequestFiles(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nullable String fileType) throws ApiException { return signatureRequestFilesWithHttpInfo(signatureRequestId, fileType).getData(); } @@ -743,7 +743,7 @@ public ApiResponse signatureRequestFilesWithHttpInfo(String signatureReque 4XX failed_operation - */ - public ApiResponse signatureRequestFilesWithHttpInfo(String signatureRequestId, String fileType) throws ApiException { + public ApiResponse signatureRequestFilesWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nullable String fileType) throws ApiException { if (fileType == null) { fileType = "pdf"; @@ -800,7 +800,7 @@ public ApiResponse signatureRequestFilesWithHttpInfo(String signatureReque 4XX failed_operation - */ - public FileResponseDataUri signatureRequestFilesAsDataUri(String signatureRequestId) throws ApiException { + public FileResponseDataUri signatureRequestFilesAsDataUri(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { return signatureRequestFilesAsDataUriWithHttpInfo(signatureRequestId).getData(); } @@ -820,7 +820,7 @@ public FileResponseDataUri signatureRequestFilesAsDataUri(String signatureReques 4XX failed_operation - */ - public ApiResponse signatureRequestFilesAsDataUriWithHttpInfo(String signatureRequestId) throws ApiException { + public ApiResponse signatureRequestFilesAsDataUriWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -870,7 +870,7 @@ public ApiResponse signatureRequestFilesAsDataUriWithHttpIn 4XX failed_operation - */ - public FileResponse signatureRequestFilesAsFileUrl(String signatureRequestId, Integer forceDownload) throws ApiException { + public FileResponse signatureRequestFilesAsFileUrl(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nullable Integer forceDownload) throws ApiException { return signatureRequestFilesAsFileUrlWithHttpInfo(signatureRequestId, forceDownload).getData(); } @@ -910,7 +910,7 @@ public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo(Stri 4XX failed_operation - */ - public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo(String signatureRequestId, Integer forceDownload) throws ApiException { + public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nullable Integer forceDownload) throws ApiException { if (forceDownload == null) { forceDownload = 1; @@ -967,7 +967,7 @@ public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo(Stri 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestGet(String signatureRequestId) throws ApiException { + public SignatureRequestGetResponse signatureRequestGet(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { return signatureRequestGetWithHttpInfo(signatureRequestId).getData(); } @@ -987,7 +987,7 @@ public SignatureRequestGetResponse signatureRequestGet(String signatureRequestId 4XX failed_operation - */ - public ApiResponse signatureRequestGetWithHttpInfo(String signatureRequestId) throws ApiException { + public ApiResponse signatureRequestGetWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1039,7 +1039,7 @@ public ApiResponse signatureRequestGetWithHttpInfo( 4XX failed_operation - */ - public SignatureRequestListResponse signatureRequestList(String accountId, Integer page, Integer pageSize, String query) throws ApiException { + public SignatureRequestListResponse signatureRequestList(@jakarta.annotation.Nullable String accountId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize, @jakarta.annotation.Nullable String query) throws ApiException { return signatureRequestListWithHttpInfo(accountId, page, pageSize, query).getData(); } @@ -1147,7 +1147,7 @@ public ApiResponse signatureRequestListWithHttpInf 4XX failed_operation - */ - public ApiResponse signatureRequestListWithHttpInfo(String accountId, Integer page, Integer pageSize, String query) throws ApiException { + public ApiResponse signatureRequestListWithHttpInfo(@jakarta.annotation.Nullable String accountId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize, @jakarta.annotation.Nullable String query) throws ApiException { if (page == null) { page = 1; @@ -1201,7 +1201,7 @@ public ApiResponse signatureRequestListWithHttpInf 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureRequestId) throws ApiException { + public SignatureRequestGetResponse signatureRequestReleaseHold(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId).getData(); } @@ -1221,7 +1221,7 @@ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureR 4XX failed_operation - */ - public ApiResponse signatureRequestReleaseHoldWithHttpInfo(String signatureRequestId) throws ApiException { + public ApiResponse signatureRequestReleaseHoldWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1271,7 +1271,7 @@ public ApiResponse signatureRequestReleaseHoldWithH 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestRemind(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestRemind(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest).getData(); } @@ -1292,7 +1292,7 @@ public SignatureRequestGetResponse signatureRequestRemind(String signatureReques 4XX failed_operation - */ - public ApiResponse signatureRequestRemindWithHttpInfo(String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { + public ApiResponse signatureRequestRemindWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1343,7 +1343,7 @@ public ApiResponse signatureRequestRemindWithHttpIn 4XX failed_operation - */ - public void signatureRequestRemove(String signatureRequestId) throws ApiException { + public void signatureRequestRemove(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { signatureRequestRemoveWithHttpInfo(signatureRequestId); } @@ -1363,7 +1363,7 @@ public void signatureRequestRemove(String signatureRequestId) throws ApiExceptio 4XX failed_operation - */ - public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) throws ApiException { + public ApiResponse signatureRequestRemoveWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1411,7 +1411,7 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestSend(SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestSend(@jakarta.annotation.Nonnull SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { return signatureRequestSendWithHttpInfo(signatureRequestSendRequest).getData(); } @@ -1431,7 +1431,7 @@ public SignatureRequestGetResponse signatureRequestSend(SignatureRequestSendRequ 4XX failed_operation - */ - public ApiResponse signatureRequestSendWithHttpInfo(SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { + public ApiResponse signatureRequestSendWithHttpInfo(@jakarta.annotation.Nonnull SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { // Check required parameters if (signatureRequestSendRequest == null) { @@ -1476,7 +1476,7 @@ public ApiResponse signatureRequestSendWithHttpInfo 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestSendWithTemplate(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestSendWithTemplate(@jakarta.annotation.Nonnull SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest).getData(); } @@ -1496,7 +1496,7 @@ public SignatureRequestGetResponse signatureRequestSendWithTemplate(SignatureReq 4XX failed_operation - */ - public ApiResponse signatureRequestSendWithTemplateWithHttpInfo(SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { + public ApiResponse signatureRequestSendWithTemplateWithHttpInfo(@jakarta.annotation.Nonnull SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { // Check required parameters if (signatureRequestSendWithTemplateRequest == null) { @@ -1542,7 +1542,7 @@ public ApiResponse signatureRequestSendWithTemplate 4XX failed_operation - */ - public SignatureRequestGetResponse signatureRequestUpdate(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { + public SignatureRequestGetResponse signatureRequestUpdate(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest).getData(); } @@ -1563,7 +1563,7 @@ public SignatureRequestGetResponse signatureRequestUpdate(String signatureReques 4XX failed_operation - */ - public ApiResponse signatureRequestUpdateWithHttpInfo(String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { + public ApiResponse signatureRequestUpdateWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { diff --git a/src/main/java/com/dropbox/sign/api/TeamApi.java b/src/main/java/com/dropbox/sign/api/TeamApi.java index a2d67bc4..44c2147f 100644 --- a/src/main/java/com/dropbox/sign/api/TeamApi.java +++ b/src/main/java/com/dropbox/sign/api/TeamApi.java @@ -25,7 +25,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class TeamApi { private ApiClient apiClient; @@ -71,7 +71,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + public TeamGetResponse teamAddMember(@jakarta.annotation.Nonnull TeamAddMemberRequest teamAddMemberRequest, @jakarta.annotation.Nullable String teamId) throws ApiException { return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); } @@ -111,7 +111,7 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque 4XX failed_operation - */ - public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + public ApiResponse teamAddMemberWithHttpInfo(@jakarta.annotation.Nonnull TeamAddMemberRequest teamAddMemberRequest, @jakarta.annotation.Nullable String teamId) throws ApiException { // Check required parameters if (teamAddMemberRequest == null) { @@ -161,7 +161,7 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque 4XX failed_operation - */ - public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws ApiException { + public TeamGetResponse teamCreate(@jakarta.annotation.Nonnull TeamCreateRequest teamCreateRequest) throws ApiException { return teamCreateWithHttpInfo(teamCreateRequest).getData(); } @@ -181,7 +181,7 @@ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws Ap 4XX failed_operation - */ - public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) throws ApiException { + public ApiResponse teamCreateWithHttpInfo(@jakarta.annotation.Nonnull TeamCreateRequest teamCreateRequest) throws ApiException { // Check required parameters if (teamCreateRequest == null) { @@ -340,7 +340,7 @@ public ApiResponse teamGetWithHttpInfo() throws ApiException { 4XX failed_operation - */ - public TeamGetInfoResponse teamInfo(String teamId) throws ApiException { + public TeamGetInfoResponse teamInfo(@jakarta.annotation.Nullable String teamId) throws ApiException { return teamInfoWithHttpInfo(teamId).getData(); } @@ -379,7 +379,7 @@ public ApiResponse teamInfoWithHttpInfo() throws ApiExcepti 4XX failed_operation - */ - public ApiResponse teamInfoWithHttpInfo(String teamId) throws ApiException { + public ApiResponse teamInfoWithHttpInfo(@jakarta.annotation.Nullable String teamId) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( @@ -424,7 +424,7 @@ public ApiResponse teamInfoWithHttpInfo(String teamId) thro 4XX failed_operation - */ - public TeamInvitesResponse teamInvites(String emailAddress) throws ApiException { + public TeamInvitesResponse teamInvites(@jakarta.annotation.Nullable String emailAddress) throws ApiException { return teamInvitesWithHttpInfo(emailAddress).getData(); } @@ -463,7 +463,7 @@ public ApiResponse teamInvitesWithHttpInfo() throws ApiExce 4XX failed_operation - */ - public ApiResponse teamInvitesWithHttpInfo(String emailAddress) throws ApiException { + public ApiResponse teamInvitesWithHttpInfo(@jakarta.annotation.Nullable String emailAddress) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( @@ -510,7 +510,7 @@ public ApiResponse teamInvitesWithHttpInfo(String emailAddr 4XX failed_operation - */ - public TeamMembersResponse teamMembers(String teamId, Integer page, Integer pageSize) throws ApiException { + public TeamMembersResponse teamMembers(@jakarta.annotation.Nonnull String teamId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { return teamMembersWithHttpInfo(teamId, page, pageSize).getData(); } @@ -571,7 +571,7 @@ public ApiResponse teamMembersWithHttpInfo(String teamId, I 4XX failed_operation - */ - public ApiResponse teamMembersWithHttpInfo(String teamId, Integer page, Integer pageSize) throws ApiException { + public ApiResponse teamMembersWithHttpInfo(@jakarta.annotation.Nonnull String teamId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { if (page == null) { page = 1; @@ -632,7 +632,7 @@ public ApiResponse teamMembersWithHttpInfo(String teamId, I 4XX failed_operation - */ - public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { + public TeamGetResponse teamRemoveMember(@jakarta.annotation.Nonnull TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest).getData(); } @@ -652,7 +652,7 @@ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMember 4XX failed_operation - */ - public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { + public ApiResponse teamRemoveMemberWithHttpInfo(@jakarta.annotation.Nonnull TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { // Check required parameters if (teamRemoveMemberRequest == null) { @@ -699,7 +699,7 @@ public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMembe 4XX failed_operation - */ - public TeamSubTeamsResponse teamSubTeams(String teamId, Integer page, Integer pageSize) throws ApiException { + public TeamSubTeamsResponse teamSubTeams(@jakarta.annotation.Nonnull String teamId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { return teamSubTeamsWithHttpInfo(teamId, page, pageSize).getData(); } @@ -760,7 +760,7 @@ public ApiResponse teamSubTeamsWithHttpInfo(String teamId, 4XX failed_operation - */ - public ApiResponse teamSubTeamsWithHttpInfo(String teamId, Integer page, Integer pageSize) throws ApiException { + public ApiResponse teamSubTeamsWithHttpInfo(@jakarta.annotation.Nonnull String teamId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize) throws ApiException { if (page == null) { page = 1; @@ -821,7 +821,7 @@ public ApiResponse teamSubTeamsWithHttpInfo(String teamId, 4XX failed_operation - */ - public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws ApiException { + public TeamGetResponse teamUpdate(@jakarta.annotation.Nonnull TeamUpdateRequest teamUpdateRequest) throws ApiException { return teamUpdateWithHttpInfo(teamUpdateRequest).getData(); } @@ -841,7 +841,7 @@ public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws Ap 4XX failed_operation - */ - public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) throws ApiException { + public ApiResponse teamUpdateWithHttpInfo(@jakarta.annotation.Nonnull TeamUpdateRequest teamUpdateRequest) throws ApiException { // Check required parameters if (teamUpdateRequest == null) { diff --git a/src/main/java/com/dropbox/sign/api/TemplateApi.java b/src/main/java/com/dropbox/sign/api/TemplateApi.java index b26de1c3..2642b475 100644 --- a/src/main/java/com/dropbox/sign/api/TemplateApi.java +++ b/src/main/java/com/dropbox/sign/api/TemplateApi.java @@ -29,7 +29,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class TemplateApi { private ApiClient apiClient; @@ -75,7 +75,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public TemplateGetResponse templateAddUser(String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { + public TemplateGetResponse templateAddUser(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nonnull TemplateAddUserRequest templateAddUserRequest) throws ApiException { return templateAddUserWithHttpInfo(templateId, templateAddUserRequest).getData(); } @@ -96,7 +96,7 @@ public TemplateGetResponse templateAddUser(String templateId, TemplateAddUserReq 4XX failed_operation - */ - public ApiResponse templateAddUserWithHttpInfo(String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { + public ApiResponse templateAddUserWithHttpInfo(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nonnull TemplateAddUserRequest templateAddUserRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -148,7 +148,7 @@ public ApiResponse templateAddUserWithHttpInfo(String templ 4XX failed_operation - */ - public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreateRequest) throws ApiException { + public TemplateCreateResponse templateCreate(@jakarta.annotation.Nonnull TemplateCreateRequest templateCreateRequest) throws ApiException { return templateCreateWithHttpInfo(templateCreateRequest).getData(); } @@ -168,7 +168,7 @@ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreat 4XX failed_operation - */ - public ApiResponse templateCreateWithHttpInfo(TemplateCreateRequest templateCreateRequest) throws ApiException { + public ApiResponse templateCreateWithHttpInfo(@jakarta.annotation.Nonnull TemplateCreateRequest templateCreateRequest) throws ApiException { // Check required parameters if (templateCreateRequest == null) { @@ -213,7 +213,7 @@ public ApiResponse templateCreateWithHttpInfo(TemplateCr 4XX failed_operation - */ - public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { + public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(@jakarta.annotation.Nonnull TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest).getData(); } @@ -233,7 +233,7 @@ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(TemplateC 4XX failed_operation - */ - public ApiResponse templateCreateEmbeddedDraftWithHttpInfo(TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { + public ApiResponse templateCreateEmbeddedDraftWithHttpInfo(@jakarta.annotation.Nonnull TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { // Check required parameters if (templateCreateEmbeddedDraftRequest == null) { @@ -277,7 +277,7 @@ public ApiResponse templateCreateEmbeddedDr 4XX failed_operation - */ - public void templateDelete(String templateId) throws ApiException { + public void templateDelete(@jakarta.annotation.Nonnull String templateId) throws ApiException { templateDeleteWithHttpInfo(templateId); } @@ -297,7 +297,7 @@ public void templateDelete(String templateId) throws ApiException { 4XX failed_operation - */ - public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { + public ApiResponse templateDeleteWithHttpInfo(@jakarta.annotation.Nonnull String templateId) throws ApiException { // Check required parameters if (templateId == null) { @@ -346,7 +346,7 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId) throws Ap 4XX failed_operation - */ - public File templateFiles(String templateId, String fileType) throws ApiException { + public File templateFiles(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nullable String fileType) throws ApiException { return templateFilesWithHttpInfo(templateId, fileType).getData(); } @@ -386,7 +386,7 @@ public ApiResponse templateFilesWithHttpInfo(String templateId) throws Api 4XX failed_operation - */ - public ApiResponse templateFilesWithHttpInfo(String templateId, String fileType) throws ApiException { + public ApiResponse templateFilesWithHttpInfo(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nullable String fileType) throws ApiException { // Check required parameters if (templateId == null) { @@ -440,7 +440,7 @@ public ApiResponse templateFilesWithHttpInfo(String templateId, String fil 4XX failed_operation - */ - public FileResponseDataUri templateFilesAsDataUri(String templateId) throws ApiException { + public FileResponseDataUri templateFilesAsDataUri(@jakarta.annotation.Nonnull String templateId) throws ApiException { return templateFilesAsDataUriWithHttpInfo(templateId).getData(); } @@ -460,7 +460,7 @@ public FileResponseDataUri templateFilesAsDataUri(String templateId) throws ApiE 4XX failed_operation - */ - public ApiResponse templateFilesAsDataUriWithHttpInfo(String templateId) throws ApiException { + public ApiResponse templateFilesAsDataUriWithHttpInfo(@jakarta.annotation.Nonnull String templateId) throws ApiException { // Check required parameters if (templateId == null) { @@ -510,7 +510,7 @@ public ApiResponse templateFilesAsDataUriWithHttpInfo(Strin 4XX failed_operation - */ - public FileResponse templateFilesAsFileUrl(String templateId, Integer forceDownload) throws ApiException { + public FileResponse templateFilesAsFileUrl(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nullable Integer forceDownload) throws ApiException { return templateFilesAsFileUrlWithHttpInfo(templateId, forceDownload).getData(); } @@ -550,7 +550,7 @@ public ApiResponse templateFilesAsFileUrlWithHttpInfo(String templ 4XX failed_operation - */ - public ApiResponse templateFilesAsFileUrlWithHttpInfo(String templateId, Integer forceDownload) throws ApiException { + public ApiResponse templateFilesAsFileUrlWithHttpInfo(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nullable Integer forceDownload) throws ApiException { if (forceDownload == null) { forceDownload = 1; @@ -607,7 +607,7 @@ public ApiResponse templateFilesAsFileUrlWithHttpInfo(String templ 4XX failed_operation - */ - public TemplateGetResponse templateGet(String templateId) throws ApiException { + public TemplateGetResponse templateGet(@jakarta.annotation.Nonnull String templateId) throws ApiException { return templateGetWithHttpInfo(templateId).getData(); } @@ -627,7 +627,7 @@ public TemplateGetResponse templateGet(String templateId) throws ApiException { 4XX failed_operation - */ - public ApiResponse templateGetWithHttpInfo(String templateId) throws ApiException { + public ApiResponse templateGetWithHttpInfo(@jakarta.annotation.Nonnull String templateId) throws ApiException { // Check required parameters if (templateId == null) { @@ -679,7 +679,7 @@ public ApiResponse templateGetWithHttpInfo(String templateI 4XX failed_operation - */ - public TemplateListResponse templateList(String accountId, Integer page, Integer pageSize, String query) throws ApiException { + public TemplateListResponse templateList(@jakarta.annotation.Nullable String accountId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize, @jakarta.annotation.Nullable String query) throws ApiException { return templateListWithHttpInfo(accountId, page, pageSize, query).getData(); } @@ -787,7 +787,7 @@ public ApiResponse templateListWithHttpInfo(String account 4XX failed_operation - */ - public ApiResponse templateListWithHttpInfo(String accountId, Integer page, Integer pageSize, String query) throws ApiException { + public ApiResponse templateListWithHttpInfo(@jakarta.annotation.Nullable String accountId, @jakarta.annotation.Nullable Integer page, @jakarta.annotation.Nullable Integer pageSize, @jakarta.annotation.Nullable String query) throws ApiException { if (page == null) { page = 1; @@ -842,7 +842,7 @@ public ApiResponse templateListWithHttpInfo(String account 4XX failed_operation - */ - public TemplateGetResponse templateRemoveUser(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { + public TemplateGetResponse templateRemoveUser(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nonnull TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest).getData(); } @@ -863,7 +863,7 @@ public TemplateGetResponse templateRemoveUser(String templateId, TemplateRemoveU 4XX failed_operation - */ - public ApiResponse templateRemoveUserWithHttpInfo(String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { + public ApiResponse templateRemoveUserWithHttpInfo(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nonnull TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { // Check required parameters if (templateId == null) { @@ -916,7 +916,7 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te 4XX failed_operation - */ - public TemplateUpdateFilesResponse templateUpdateFiles(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { + public TemplateUpdateFilesResponse templateUpdateFiles(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nonnull TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest).getData(); } @@ -937,7 +937,7 @@ public TemplateUpdateFilesResponse templateUpdateFiles(String templateId, Templa 4XX failed_operation - */ - public ApiResponse templateUpdateFilesWithHttpInfo(String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { + public ApiResponse templateUpdateFilesWithHttpInfo(@jakarta.annotation.Nonnull String templateId, @jakarta.annotation.Nonnull TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { // Check required parameters if (templateId == null) { diff --git a/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java b/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java index f2ce3370..d154ca5d 100644 --- a/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java +++ b/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class UnclaimedDraftApi { private ApiClient apiClient; @@ -66,7 +66,7 @@ public void setApiClient(ApiClient apiClient) { 4XX failed_operation - */ - public UnclaimedDraftCreateResponse unclaimedDraftCreate(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { + public UnclaimedDraftCreateResponse unclaimedDraftCreate(@jakarta.annotation.Nonnull UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest).getData(); } @@ -86,7 +86,7 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreate(UnclaimedDraftCreateReq 4XX failed_operation - */ - public ApiResponse unclaimedDraftCreateWithHttpInfo(UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { + public ApiResponse unclaimedDraftCreateWithHttpInfo(@jakarta.annotation.Nonnull UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { // Check required parameters if (unclaimedDraftCreateRequest == null) { @@ -131,7 +131,7 @@ public ApiResponse unclaimedDraftCreateWithHttpInf 4XX failed_operation - */ - public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { + public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(@jakarta.annotation.Nonnull UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest).getData(); } @@ -151,7 +151,7 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(UnclaimedDraftC 4XX failed_operation - */ - public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo(UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { + public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo(@jakarta.annotation.Nonnull UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { // Check required parameters if (unclaimedDraftCreateEmbeddedRequest == null) { @@ -196,7 +196,7 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit 4XX failed_operation - */ - public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { + public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(@jakarta.annotation.Nonnull UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(unclaimedDraftCreateEmbeddedWithTemplateRequest).getData(); } @@ -216,7 +216,7 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(Unc 4XX failed_operation - */ - public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { + public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo(@jakarta.annotation.Nonnull UnclaimedDraftCreateEmbeddedWithTemplateRequest unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters if (unclaimedDraftCreateEmbeddedWithTemplateRequest == null) { @@ -262,7 +262,7 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit 4XX failed_operation - */ - public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { + public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { return unclaimedDraftEditAndResendWithHttpInfo(signatureRequestId, unclaimedDraftEditAndResendRequest).getData(); } @@ -283,7 +283,7 @@ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(String signature 4XX failed_operation - */ - public ApiResponse unclaimedDraftEditAndResendWithHttpInfo(String signatureRequestId, UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { + public ApiResponse unclaimedDraftEditAndResendWithHttpInfo(@jakarta.annotation.Nonnull String signatureRequestId, @jakarta.annotation.Nonnull UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { // Check required parameters if (signatureRequestId == null) { diff --git a/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java b/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java index 9b307290..d9145a84 100644 --- a/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java +++ b/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/dropbox/sign/auth/Authentication.java b/src/main/java/com/dropbox/sign/auth/Authentication.java index c5dc49d3..b878c467 100644 --- a/src/main/java/com/dropbox/sign/auth/Authentication.java +++ b/src/main/java/com/dropbox/sign/auth/Authentication.java @@ -20,6 +20,7 @@ import java.util.Map; import java.util.List; +@jakarta.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/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java b/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java index be2530ea..bd8a90a9 100644 --- a/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java +++ b/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java b/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java index 9dee1a64..6580e41e 100644 --- a/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java +++ b/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java b/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java index 987a841c..58d53bc8 100644 --- a/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object @@ -107,10 +107,7 @@ public String toString() { * (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) { diff --git a/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java b/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java index cefd5b79..0b111e09 100644 --- a/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java @@ -38,7 +38,7 @@ AccountCreateRequest.JSON_PROPERTY_CLIENT_SECRET, AccountCreateRequest.JSON_PROPERTY_LOCALE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountCreateRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -85,7 +85,7 @@ public AccountCreateRequest emailAddress(@jakarta.annotation.Nonnull String emai * @return emailAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { @@ -93,7 +93,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -110,7 +110,7 @@ public AccountCreateRequest clientId(@jakarta.annotation.Nullable String clientI * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -118,7 +118,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -135,7 +135,7 @@ public AccountCreateRequest clientSecret(@jakarta.annotation.Nullable String cli * @return clientSecret */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientSecret() { @@ -143,7 +143,7 @@ public String getClientSecret() { } - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientSecret(@jakarta.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; @@ -160,7 +160,7 @@ public AccountCreateRequest locale(@jakarta.annotation.Nullable String locale) { * @return locale */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLocale() { @@ -168,7 +168,7 @@ public String getLocale() { } - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLocale(@jakarta.annotation.Nullable String locale) { this.locale = locale; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java b/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java index 00240b91..017840c0 100644 --- a/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java +++ b/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java @@ -42,7 +42,7 @@ AccountCreateResponse.JSON_PROPERTY_OAUTH_DATA, AccountCreateResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountCreateResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; @@ -85,7 +85,7 @@ public AccountCreateResponse account(@jakarta.annotation.Nonnull AccountResponse * @return account */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public AccountResponse getAccount() { @@ -93,7 +93,7 @@ public AccountResponse getAccount() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAccount(@jakarta.annotation.Nonnull AccountResponse account) { this.account = account; @@ -110,7 +110,7 @@ public AccountCreateResponse oauthData(@jakarta.annotation.Nullable OAuthTokenRe * @return oauthData */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OAUTH_DATA) + @JsonProperty(value = JSON_PROPERTY_OAUTH_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OAuthTokenResponse getOauthData() { @@ -118,7 +118,7 @@ public OAuthTokenResponse getOauthData() { } - @JsonProperty(JSON_PROPERTY_OAUTH_DATA) + @JsonProperty(value = JSON_PROPERTY_OAUTH_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOauthData(@jakarta.annotation.Nullable OAuthTokenResponse oauthData) { this.oauthData = oauthData; @@ -143,7 +143,7 @@ public AccountCreateResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -151,7 +151,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -284,10 +284,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountGetResponse.java b/src/main/java/com/dropbox/sign/model/AccountGetResponse.java index a37a29e3..97a7b6bb 100644 --- a/src/main/java/com/dropbox/sign/model/AccountGetResponse.java +++ b/src/main/java/com/dropbox/sign/model/AccountGetResponse.java @@ -40,7 +40,7 @@ AccountGetResponse.JSON_PROPERTY_ACCOUNT, AccountGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountGetResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; @@ -79,7 +79,7 @@ public AccountGetResponse account(@jakarta.annotation.Nonnull AccountResponse ac * @return account */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public AccountResponse getAccount() { @@ -87,7 +87,7 @@ public AccountResponse getAccount() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAccount(@jakarta.annotation.Nonnull AccountResponse account) { this.account = account; @@ -112,7 +112,7 @@ public AccountGetResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountResponse.java b/src/main/java/com/dropbox/sign/model/AccountResponse.java index d851bed8..51be14b3 100644 --- a/src/main/java/com/dropbox/sign/model/AccountResponse.java +++ b/src/main/java/com/dropbox/sign/model/AccountResponse.java @@ -49,7 +49,7 @@ AccountResponse.JSON_PROPERTY_USAGE, AccountResponse.JSON_PROPERTY_SETTINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountResponse { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -128,7 +128,7 @@ public AccountResponse accountId(@jakarta.annotation.Nullable String accountId) * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -136,7 +136,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -153,7 +153,7 @@ public AccountResponse emailAddress(@jakarta.annotation.Nullable String emailAdd * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -161,7 +161,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -178,7 +178,7 @@ public AccountResponse isLocked(@jakarta.annotation.Nullable Boolean isLocked) { * @return isLocked */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsLocked() { @@ -186,7 +186,7 @@ public Boolean getIsLocked() { } - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; @@ -203,7 +203,7 @@ public AccountResponse isPaidHs(@jakarta.annotation.Nullable Boolean isPaidHs) { * @return isPaidHs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_PAID_HS) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsPaidHs() { @@ -211,7 +211,7 @@ public Boolean getIsPaidHs() { } - @JsonProperty(JSON_PROPERTY_IS_PAID_HS) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsPaidHs(@jakarta.annotation.Nullable Boolean isPaidHs) { this.isPaidHs = isPaidHs; @@ -228,7 +228,7 @@ public AccountResponse isPaidHf(@jakarta.annotation.Nullable Boolean isPaidHf) { * @return isPaidHf */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_PAID_HF) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsPaidHf() { @@ -236,7 +236,7 @@ public Boolean getIsPaidHf() { } - @JsonProperty(JSON_PROPERTY_IS_PAID_HF) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsPaidHf(@jakarta.annotation.Nullable Boolean isPaidHf) { this.isPaidHf = isPaidHf; @@ -253,7 +253,7 @@ public AccountResponse quotas(@jakarta.annotation.Nullable AccountResponseQuotas * @return quotas */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTAS) + @JsonProperty(value = JSON_PROPERTY_QUOTAS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountResponseQuotas getQuotas() { @@ -261,7 +261,7 @@ public AccountResponseQuotas getQuotas() { } - @JsonProperty(JSON_PROPERTY_QUOTAS) + @JsonProperty(value = JSON_PROPERTY_QUOTAS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuotas(@jakarta.annotation.Nullable AccountResponseQuotas quotas) { this.quotas = quotas; @@ -278,7 +278,7 @@ public AccountResponse callbackUrl(@jakarta.annotation.Nullable String callbackU * @return callbackUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { @@ -286,7 +286,7 @@ public String getCallbackUrl() { } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -303,7 +303,7 @@ public AccountResponse roleCode(@jakarta.annotation.Nullable String roleCode) { * @return roleCode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ROLE_CODE) + @JsonProperty(value = JSON_PROPERTY_ROLE_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRoleCode() { @@ -311,7 +311,7 @@ public String getRoleCode() { } - @JsonProperty(JSON_PROPERTY_ROLE_CODE) + @JsonProperty(value = JSON_PROPERTY_ROLE_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRoleCode(@jakarta.annotation.Nullable String roleCode) { this.roleCode = roleCode; @@ -328,7 +328,7 @@ public AccountResponse teamId(@jakarta.annotation.Nullable String teamId) { * @return teamId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { @@ -336,7 +336,7 @@ public String getTeamId() { } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; @@ -353,7 +353,7 @@ public AccountResponse locale(@jakarta.annotation.Nullable String locale) { * @return locale */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLocale() { @@ -361,7 +361,7 @@ public String getLocale() { } - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLocale(@jakarta.annotation.Nullable String locale) { this.locale = locale; @@ -378,7 +378,7 @@ public AccountResponse usage(@jakarta.annotation.Nullable AccountResponseUsage u * @return usage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USAGE) + @JsonProperty(value = JSON_PROPERTY_USAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountResponseUsage getUsage() { @@ -386,7 +386,7 @@ public AccountResponseUsage getUsage() { } - @JsonProperty(JSON_PROPERTY_USAGE) + @JsonProperty(value = JSON_PROPERTY_USAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsage(@jakarta.annotation.Nullable AccountResponseUsage usage) { this.usage = usage; @@ -403,7 +403,7 @@ public AccountResponse settings(@jakarta.annotation.Nullable AccountResponseSett * @return settings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SETTINGS) + @JsonProperty(value = JSON_PROPERTY_SETTINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountResponseSettings getSettings() { @@ -411,7 +411,7 @@ public AccountResponseSettings getSettings() { } - @JsonProperty(JSON_PROPERTY_SETTINGS) + @JsonProperty(value = JSON_PROPERTY_SETTINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSettings(@jakarta.annotation.Nullable AccountResponseSettings settings) { this.settings = settings; @@ -733,10 +733,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java b/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java index e1bf4a87..33101f9b 100644 --- a/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java +++ b/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java @@ -40,7 +40,7 @@ AccountResponseQuotas.JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, AccountResponseQuotas.JSON_PROPERTY_NUM_FAX_PAGES_LEFT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountResponseQuotas { public static final String JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT = "api_signature_requests_left"; @@ -95,7 +95,7 @@ public AccountResponseQuotas apiSignatureRequestsLeft(@jakarta.annotation.Nullab * @return apiSignatureRequestsLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getApiSignatureRequestsLeft() { @@ -103,7 +103,7 @@ public Integer getApiSignatureRequestsLeft() { } - @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(@jakarta.annotation.Nullable Integer apiSignatureRequestsLeft) { this.apiSignatureRequestsLeft = apiSignatureRequestsLeft; @@ -120,7 +120,7 @@ public AccountResponseQuotas documentsLeft(@jakarta.annotation.Nullable Integer * @return documentsLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getDocumentsLeft() { @@ -128,7 +128,7 @@ public Integer getDocumentsLeft() { } - @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDocumentsLeft(@jakarta.annotation.Nullable Integer documentsLeft) { this.documentsLeft = documentsLeft; @@ -145,7 +145,7 @@ public AccountResponseQuotas templatesTotal(@jakarta.annotation.Nullable Integer * @return templatesTotal */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATES_TOTAL) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_TOTAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTemplatesTotal() { @@ -153,7 +153,7 @@ public Integer getTemplatesTotal() { } - @JsonProperty(JSON_PROPERTY_TEMPLATES_TOTAL) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_TOTAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplatesTotal(@jakarta.annotation.Nullable Integer templatesTotal) { this.templatesTotal = templatesTotal; @@ -170,7 +170,7 @@ public AccountResponseQuotas templatesLeft(@jakarta.annotation.Nullable Integer * @return templatesLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTemplatesLeft() { @@ -178,7 +178,7 @@ public Integer getTemplatesLeft() { } - @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplatesLeft(@jakarta.annotation.Nullable Integer templatesLeft) { this.templatesLeft = templatesLeft; @@ -195,7 +195,7 @@ public AccountResponseQuotas smsVerificationsLeft(@jakarta.annotation.Nullable I * @return smsVerificationsLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) + @JsonProperty(value = JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSmsVerificationsLeft() { @@ -203,7 +203,7 @@ public Integer getSmsVerificationsLeft() { } - @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) + @JsonProperty(value = JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsVerificationsLeft(@jakarta.annotation.Nullable Integer smsVerificationsLeft) { this.smsVerificationsLeft = smsVerificationsLeft; @@ -220,7 +220,7 @@ public AccountResponseQuotas numFaxPagesLeft(@jakarta.annotation.Nullable Intege * @return numFaxPagesLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUM_FAX_PAGES_LEFT) + @JsonProperty(value = JSON_PROPERTY_NUM_FAX_PAGES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumFaxPagesLeft() { @@ -228,7 +228,7 @@ public Integer getNumFaxPagesLeft() { } - @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(@jakarta.annotation.Nullable Integer numFaxPagesLeft) { this.numFaxPagesLeft = numFaxPagesLeft; @@ -424,10 +424,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountResponseSettings.java b/src/main/java/com/dropbox/sign/model/AccountResponseSettings.java index fa92563d..3d8f6526 100644 --- a/src/main/java/com/dropbox/sign/model/AccountResponseSettings.java +++ b/src/main/java/com/dropbox/sign/model/AccountResponseSettings.java @@ -37,7 +37,7 @@ AccountResponseSettings.JSON_PROPERTY_SMS_DELIVERY, AccountResponseSettings.JSON_PROPERTY_SMS_AUTHENTICATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountResponseSettings { public static final String JSON_PROPERTY_SIGNER_ACCESS_CODES = "signer_access_codes"; @@ -80,7 +80,7 @@ public AccountResponseSettings signerAccessCodes(@jakarta.annotation.Nullable Bo * @return signerAccessCodes */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_ACCESS_CODES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ACCESS_CODES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSignerAccessCodes() { @@ -88,7 +88,7 @@ public Boolean getSignerAccessCodes() { } - @JsonProperty(JSON_PROPERTY_SIGNER_ACCESS_CODES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ACCESS_CODES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerAccessCodes(@jakarta.annotation.Nullable Boolean signerAccessCodes) { this.signerAccessCodes = signerAccessCodes; @@ -105,7 +105,7 @@ public AccountResponseSettings smsDelivery(@jakarta.annotation.Nullable Boolean * @return smsDelivery */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_DELIVERY) + @JsonProperty(value = JSON_PROPERTY_SMS_DELIVERY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSmsDelivery() { @@ -113,7 +113,7 @@ public Boolean getSmsDelivery() { } - @JsonProperty(JSON_PROPERTY_SMS_DELIVERY) + @JsonProperty(value = JSON_PROPERTY_SMS_DELIVERY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsDelivery(@jakarta.annotation.Nullable Boolean smsDelivery) { this.smsDelivery = smsDelivery; @@ -130,7 +130,7 @@ public AccountResponseSettings smsAuthentication(@jakarta.annotation.Nullable Bo * @return smsAuthentication */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_AUTHENTICATION) + @JsonProperty(value = JSON_PROPERTY_SMS_AUTHENTICATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSmsAuthentication() { @@ -138,7 +138,7 @@ public Boolean getSmsAuthentication() { } - @JsonProperty(JSON_PROPERTY_SMS_AUTHENTICATION) + @JsonProperty(value = JSON_PROPERTY_SMS_AUTHENTICATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsAuthentication(@jakarta.annotation.Nullable Boolean smsAuthentication) { this.smsAuthentication = smsAuthentication; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java b/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java index 32ba98cf..b9651bc2 100644 --- a/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java +++ b/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ AccountResponseUsage.JSON_PROPERTY_FAX_PAGES_SENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountResponseUsage { public static final String JSON_PROPERTY_FAX_PAGES_SENT = "fax_pages_sent"; @@ -70,7 +70,7 @@ public AccountResponseUsage faxPagesSent(@jakarta.annotation.Nullable Integer fa * @return faxPagesSent */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FAX_PAGES_SENT) + @JsonProperty(value = JSON_PROPERTY_FAX_PAGES_SENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFaxPagesSent() { @@ -78,7 +78,7 @@ public Integer getFaxPagesSent() { } - @JsonProperty(JSON_PROPERTY_FAX_PAGES_SENT) + @JsonProperty(value = JSON_PROPERTY_FAX_PAGES_SENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFaxPagesSent(@jakarta.annotation.Nullable Integer faxPagesSent) { this.faxPagesSent = faxPagesSent; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java b/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java index cb2d14d7..a7f93180 100644 --- a/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java +++ b/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java @@ -37,7 +37,7 @@ AccountUpdateRequest.JSON_PROPERTY_CALLBACK_URL, AccountUpdateRequest.JSON_PROPERTY_LOCALE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountUpdateRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -80,7 +80,7 @@ public AccountUpdateRequest accountId(@jakarta.annotation.Nullable String accoun * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -88,7 +88,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -105,7 +105,7 @@ public AccountUpdateRequest callbackUrl(@jakarta.annotation.Nullable String call * @return callbackUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { @@ -113,7 +113,7 @@ public String getCallbackUrl() { } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -130,7 +130,7 @@ public AccountUpdateRequest locale(@jakarta.annotation.Nullable String locale) { * @return locale */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLocale() { @@ -138,7 +138,7 @@ public String getLocale() { } - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLocale(@jakarta.annotation.Nullable String locale) { this.locale = locale; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java b/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java index 9b272bcb..5a5a5b59 100644 --- a/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java +++ b/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ AccountVerifyRequest.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountVerifyRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -70,7 +70,7 @@ public AccountVerifyRequest emailAddress(@jakarta.annotation.Nonnull String emai * @return emailAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { @@ -78,7 +78,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java b/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java index 971d4f67..a33cfee4 100644 --- a/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java +++ b/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java @@ -40,7 +40,7 @@ AccountVerifyResponse.JSON_PROPERTY_ACCOUNT, AccountVerifyResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountVerifyResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; @@ -79,7 +79,7 @@ public AccountVerifyResponse account(@jakarta.annotation.Nullable AccountVerifyR * @return account */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountVerifyResponseAccount getAccount() { @@ -87,7 +87,7 @@ public AccountVerifyResponseAccount getAccount() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccount(@jakarta.annotation.Nullable AccountVerifyResponseAccount account) { this.account = account; @@ -112,7 +112,7 @@ public AccountVerifyResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java b/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java index 932c5be5..9fdc3217 100644 --- a/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java +++ b/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ AccountVerifyResponseAccount.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountVerifyResponseAccount { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -70,7 +70,7 @@ public AccountVerifyResponseAccount emailAddress(@jakarta.annotation.Nullable St * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -78,7 +78,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java b/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java index 6edb0498..99d5ce81 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java @@ -47,7 +47,7 @@ ApiAppCreateRequest.JSON_PROPERTY_OPTIONS, ApiAppCreateRequest.JSON_PROPERTY_WHITE_LABELING_OPTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppCreateRequest { public static final String JSON_PROPERTY_DOMAINS = "domains"; @@ -114,7 +114,7 @@ public ApiAppCreateRequest addDomainsItem(String domainsItem) { * @return domains */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getDomains() { @@ -122,7 +122,7 @@ public List getDomains() { } - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDomains(@jakarta.annotation.Nonnull List domains) { this.domains = domains; @@ -139,7 +139,7 @@ public ApiAppCreateRequest name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -147,7 +147,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -164,7 +164,7 @@ public ApiAppCreateRequest callbackUrl(@jakarta.annotation.Nullable String callb * @return callbackUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { @@ -172,7 +172,7 @@ public String getCallbackUrl() { } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -189,7 +189,7 @@ public ApiAppCreateRequest customLogoFile(@jakarta.annotation.Nullable File cust * @return customLogoFile */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_LOGO_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getCustomLogoFile() { @@ -197,7 +197,7 @@ public File getCustomLogoFile() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_LOGO_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomLogoFile(@jakarta.annotation.Nullable File customLogoFile) { this.customLogoFile = customLogoFile; @@ -214,7 +214,7 @@ public ApiAppCreateRequest oauth(@jakarta.annotation.Nullable SubOAuth oauth) { * @return oauth */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubOAuth getOauth() { @@ -222,7 +222,7 @@ public SubOAuth getOauth() { } - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOauth(@jakarta.annotation.Nullable SubOAuth oauth) { this.oauth = oauth; @@ -239,7 +239,7 @@ public ApiAppCreateRequest options(@jakarta.annotation.Nullable SubOptions optio * @return options */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubOptions getOptions() { @@ -247,7 +247,7 @@ public SubOptions getOptions() { } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(@jakarta.annotation.Nullable SubOptions options) { this.options = options; @@ -264,7 +264,7 @@ public ApiAppCreateRequest whiteLabelingOptions(@jakarta.annotation.Nullable Sub * @return whiteLabelingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubWhiteLabelingOptions getWhiteLabelingOptions() { @@ -272,7 +272,7 @@ public SubWhiteLabelingOptions getWhiteLabelingOptions() { } - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWhiteLabelingOptions(@jakarta.annotation.Nullable SubWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; @@ -489,10 +489,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java b/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java index 887067a0..43a73357 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java @@ -40,7 +40,7 @@ ApiAppGetResponse.JSON_PROPERTY_API_APP, ApiAppGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppGetResponse { public static final String JSON_PROPERTY_API_APP = "api_app"; @@ -79,7 +79,7 @@ public ApiAppGetResponse apiApp(@jakarta.annotation.Nonnull ApiAppResponse apiAp * @return apiApp */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_API_APP) + @JsonProperty(value = JSON_PROPERTY_API_APP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ApiAppResponse getApiApp() { @@ -87,7 +87,7 @@ public ApiAppResponse getApiApp() { } - @JsonProperty(JSON_PROPERTY_API_APP) + @JsonProperty(value = JSON_PROPERTY_API_APP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setApiApp(@jakarta.annotation.Nonnull ApiAppResponse apiApp) { this.apiApp = apiApp; @@ -112,7 +112,7 @@ public ApiAppGetResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java b/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java index eca7bbdc..20368c54 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java @@ -42,7 +42,7 @@ ApiAppListResponse.JSON_PROPERTY_LIST_INFO, ApiAppListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppListResponse { public static final String JSON_PROPERTY_API_APPS = "api_apps"; @@ -93,7 +93,7 @@ public ApiAppListResponse addApiAppsItem(ApiAppResponse apiAppsItem) { * @return apiApps */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_API_APPS) + @JsonProperty(value = JSON_PROPERTY_API_APPS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getApiApps() { @@ -101,7 +101,7 @@ public List getApiApps() { } - @JsonProperty(JSON_PROPERTY_API_APPS) + @JsonProperty(value = JSON_PROPERTY_API_APPS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setApiApps(@jakarta.annotation.Nonnull List apiApps) { this.apiApps = apiApps; @@ -118,7 +118,7 @@ public ApiAppListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -126,7 +126,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -151,7 +151,7 @@ public ApiAppListResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -159,7 +159,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -292,10 +292,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppResponse.java b/src/main/java/com/dropbox/sign/model/ApiAppResponse.java index 6bd39a59..659982d4 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppResponse.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppResponse.java @@ -50,7 +50,7 @@ ApiAppResponse.JSON_PROPERTY_OWNER_ACCOUNT, ApiAppResponse.JSON_PROPERTY_WHITE_LABELING_OPTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponse { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; @@ -121,7 +121,7 @@ public ApiAppResponse callbackUrl(@jakarta.annotation.Nullable String callbackUr * @return callbackUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { @@ -129,7 +129,7 @@ public String getCallbackUrl() { } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -146,7 +146,7 @@ public ApiAppResponse clientId(@jakarta.annotation.Nullable String clientId) { * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -154,7 +154,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -171,7 +171,7 @@ public ApiAppResponse createdAt(@jakarta.annotation.Nullable Integer createdAt) * @return createdAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { @@ -179,7 +179,7 @@ public Integer getCreatedAt() { } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -204,7 +204,7 @@ public ApiAppResponse addDomainsItem(String domainsItem) { * @return domains */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDomains() { @@ -212,7 +212,7 @@ public List getDomains() { } - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDomains(@jakarta.annotation.Nullable List domains) { this.domains = domains; @@ -229,7 +229,7 @@ public ApiAppResponse name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -237,7 +237,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -254,7 +254,7 @@ public ApiAppResponse isApproved(@jakarta.annotation.Nullable Boolean isApproved * @return isApproved */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_APPROVED) + @JsonProperty(value = JSON_PROPERTY_IS_APPROVED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsApproved() { @@ -262,7 +262,7 @@ public Boolean getIsApproved() { } - @JsonProperty(JSON_PROPERTY_IS_APPROVED) + @JsonProperty(value = JSON_PROPERTY_IS_APPROVED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsApproved(@jakarta.annotation.Nullable Boolean isApproved) { this.isApproved = isApproved; @@ -279,7 +279,7 @@ public ApiAppResponse oauth(@jakarta.annotation.Nullable ApiAppResponseOAuth oau * @return oauth */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ApiAppResponseOAuth getOauth() { @@ -287,7 +287,7 @@ public ApiAppResponseOAuth getOauth() { } - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOauth(@jakarta.annotation.Nullable ApiAppResponseOAuth oauth) { this.oauth = oauth; @@ -304,7 +304,7 @@ public ApiAppResponse options(@jakarta.annotation.Nullable ApiAppResponseOptions * @return options */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ApiAppResponseOptions getOptions() { @@ -312,7 +312,7 @@ public ApiAppResponseOptions getOptions() { } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(@jakarta.annotation.Nullable ApiAppResponseOptions options) { this.options = options; @@ -329,7 +329,7 @@ public ApiAppResponse ownerAccount(@jakarta.annotation.Nullable ApiAppResponseOw * @return ownerAccount */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_OWNER_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ApiAppResponseOwnerAccount getOwnerAccount() { @@ -337,7 +337,7 @@ public ApiAppResponseOwnerAccount getOwnerAccount() { } - @JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_OWNER_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOwnerAccount(@jakarta.annotation.Nullable ApiAppResponseOwnerAccount ownerAccount) { this.ownerAccount = ownerAccount; @@ -354,7 +354,7 @@ public ApiAppResponse whiteLabelingOptions(@jakarta.annotation.Nullable ApiAppRe * @return whiteLabelingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ApiAppResponseWhiteLabelingOptions getWhiteLabelingOptions() { @@ -362,7 +362,7 @@ public ApiAppResponseWhiteLabelingOptions getWhiteLabelingOptions() { } - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWhiteLabelingOptions(@jakarta.annotation.Nullable ApiAppResponseWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; @@ -642,10 +642,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java b/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java index 6ae38fc5..c7793665 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java @@ -40,7 +40,7 @@ ApiAppResponseOAuth.JSON_PROPERTY_SCOPES, ApiAppResponseOAuth.JSON_PROPERTY_CHARGES_USERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponseOAuth { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; @@ -87,7 +87,7 @@ public ApiAppResponseOAuth callbackUrl(@jakarta.annotation.Nullable String callb * @return callbackUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { @@ -95,7 +95,7 @@ public String getCallbackUrl() { } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -112,7 +112,7 @@ public ApiAppResponseOAuth secret(@jakarta.annotation.Nullable String secret) { * @return secret */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECRET) + @JsonProperty(value = JSON_PROPERTY_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecret() { @@ -120,7 +120,7 @@ public String getSecret() { } - @JsonProperty(JSON_PROPERTY_SECRET) + @JsonProperty(value = JSON_PROPERTY_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecret(@jakarta.annotation.Nullable String secret) { this.secret = secret; @@ -145,7 +145,7 @@ public ApiAppResponseOAuth addScopesItem(String scopesItem) { * @return scopes */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SCOPES) + @JsonProperty(value = JSON_PROPERTY_SCOPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getScopes() { @@ -153,7 +153,7 @@ public List getScopes() { } - @JsonProperty(JSON_PROPERTY_SCOPES) + @JsonProperty(value = JSON_PROPERTY_SCOPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScopes(@jakarta.annotation.Nullable List scopes) { this.scopes = scopes; @@ -170,7 +170,7 @@ public ApiAppResponseOAuth chargesUsers(@jakarta.annotation.Nullable Boolean cha * @return chargesUsers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CHARGES_USERS) + @JsonProperty(value = JSON_PROPERTY_CHARGES_USERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getChargesUsers() { @@ -178,7 +178,7 @@ public Boolean getChargesUsers() { } - @JsonProperty(JSON_PROPERTY_CHARGES_USERS) + @JsonProperty(value = JSON_PROPERTY_CHARGES_USERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChargesUsers(@jakarta.annotation.Nullable Boolean chargesUsers) { this.chargesUsers = chargesUsers; @@ -332,10 +332,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java b/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java index 1a9c91d7..c91e06a1 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ ApiAppResponseOptions.JSON_PROPERTY_CAN_INSERT_EVERYWHERE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponseOptions { public static final String JSON_PROPERTY_CAN_INSERT_EVERYWHERE = "can_insert_everywhere"; @@ -70,7 +70,7 @@ public ApiAppResponseOptions canInsertEverywhere(@jakarta.annotation.Nullable Bo * @return canInsertEverywhere */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) + @JsonProperty(value = JSON_PROPERTY_CAN_INSERT_EVERYWHERE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getCanInsertEverywhere() { @@ -78,7 +78,7 @@ public Boolean getCanInsertEverywhere() { } - @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) + @JsonProperty(value = JSON_PROPERTY_CAN_INSERT_EVERYWHERE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCanInsertEverywhere(@jakarta.annotation.Nullable Boolean canInsertEverywhere) { this.canInsertEverywhere = canInsertEverywhere; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java b/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java index 7149d8ed..46ee1a7a 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java @@ -36,7 +36,7 @@ ApiAppResponseOwnerAccount.JSON_PROPERTY_ACCOUNT_ID, ApiAppResponseOwnerAccount.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponseOwnerAccount { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -75,7 +75,7 @@ public ApiAppResponseOwnerAccount accountId(@jakarta.annotation.Nullable String * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -83,7 +83,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -100,7 +100,7 @@ public ApiAppResponseOwnerAccount emailAddress(@jakarta.annotation.Nullable Stri * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -108,7 +108,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java b/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java index 2dd9a001..0a22b0c8 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java @@ -48,7 +48,7 @@ ApiAppResponseWhiteLabelingOptions.JSON_PROPERTY_TEXT_COLOR1, ApiAppResponseWhiteLabelingOptions.JSON_PROPERTY_TEXT_COLOR2 }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponseWhiteLabelingOptions { public static final String JSON_PROPERTY_HEADER_BACKGROUND_COLOR = "header_background_color"; @@ -135,7 +135,7 @@ public ApiAppResponseWhiteLabelingOptions headerBackgroundColor(@jakarta.annotat * @return headerBackgroundColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_HEADER_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHeaderBackgroundColor() { @@ -143,7 +143,7 @@ public String getHeaderBackgroundColor() { } - @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_HEADER_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeaderBackgroundColor(@jakarta.annotation.Nullable String headerBackgroundColor) { this.headerBackgroundColor = headerBackgroundColor; @@ -160,7 +160,7 @@ public ApiAppResponseWhiteLabelingOptions legalVersion(@jakarta.annotation.Nulla * @return legalVersion */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) + @JsonProperty(value = JSON_PROPERTY_LEGAL_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLegalVersion() { @@ -168,7 +168,7 @@ public String getLegalVersion() { } - @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) + @JsonProperty(value = JSON_PROPERTY_LEGAL_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLegalVersion(@jakarta.annotation.Nullable String legalVersion) { this.legalVersion = legalVersion; @@ -185,7 +185,7 @@ public ApiAppResponseWhiteLabelingOptions linkColor(@jakarta.annotation.Nullable * @return linkColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LINK_COLOR) + @JsonProperty(value = JSON_PROPERTY_LINK_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLinkColor() { @@ -193,7 +193,7 @@ public String getLinkColor() { } - @JsonProperty(JSON_PROPERTY_LINK_COLOR) + @JsonProperty(value = JSON_PROPERTY_LINK_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkColor(@jakarta.annotation.Nullable String linkColor) { this.linkColor = linkColor; @@ -210,7 +210,7 @@ public ApiAppResponseWhiteLabelingOptions pageBackgroundColor(@jakarta.annotatio * @return pageBackgroundColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_PAGE_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPageBackgroundColor() { @@ -218,7 +218,7 @@ public String getPageBackgroundColor() { } - @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_PAGE_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPageBackgroundColor(@jakarta.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; @@ -235,7 +235,7 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonColor(@jakarta.annotation * @return primaryButtonColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonColor() { @@ -243,7 +243,7 @@ public String getPrimaryButtonColor() { } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonColor(@jakarta.annotation.Nullable String primaryButtonColor) { this.primaryButtonColor = primaryButtonColor; @@ -260,7 +260,7 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonColorHover(@jakarta.annot * @return primaryButtonColorHover */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonColorHover() { @@ -268,7 +268,7 @@ public String getPrimaryButtonColorHover() { } - @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(@jakarta.annotation.Nullable String primaryButtonColorHover) { this.primaryButtonColorHover = primaryButtonColorHover; @@ -285,7 +285,7 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonTextColor(@jakarta.annota * @return primaryButtonTextColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonTextColor() { @@ -293,7 +293,7 @@ public String getPrimaryButtonTextColor() { } - @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(@jakarta.annotation.Nullable String primaryButtonTextColor) { this.primaryButtonTextColor = primaryButtonTextColor; @@ -310,7 +310,7 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonTextColorHover(@jakarta.a * @return primaryButtonTextColorHover */ @jakarta.annotation.Nullable - @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 String getPrimaryButtonTextColorHover() { @@ -318,7 +318,7 @@ public String getPrimaryButtonTextColorHover() { } - @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(@jakarta.annotation.Nullable String primaryButtonTextColorHover) { this.primaryButtonTextColorHover = primaryButtonTextColorHover; @@ -335,7 +335,7 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonColor(@jakarta.annotati * @return secondaryButtonColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonColor() { @@ -343,7 +343,7 @@ public String getSecondaryButtonColor() { } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonColor(@jakarta.annotation.Nullable String secondaryButtonColor) { this.secondaryButtonColor = secondaryButtonColor; @@ -360,7 +360,7 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonColorHover(@jakarta.ann * @return secondaryButtonColorHover */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonColorHover() { @@ -368,7 +368,7 @@ public String getSecondaryButtonColorHover() { } - @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(@jakarta.annotation.Nullable String secondaryButtonColorHover) { this.secondaryButtonColorHover = secondaryButtonColorHover; @@ -385,7 +385,7 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColor(@jakarta.anno * @return secondaryButtonTextColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonTextColor() { @@ -393,7 +393,7 @@ public String getSecondaryButtonTextColor() { } - @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(@jakarta.annotation.Nullable String secondaryButtonTextColor) { this.secondaryButtonTextColor = secondaryButtonTextColor; @@ -410,7 +410,7 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColorHover(@jakarta * @return secondaryButtonTextColorHover */ @jakarta.annotation.Nullable - @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 String getSecondaryButtonTextColorHover() { @@ -418,7 +418,7 @@ public String getSecondaryButtonTextColorHover() { } - @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(@jakarta.annotation.Nullable String secondaryButtonTextColorHover) { this.secondaryButtonTextColorHover = secondaryButtonTextColorHover; @@ -435,7 +435,7 @@ public ApiAppResponseWhiteLabelingOptions textColor1(@jakarta.annotation.Nullabl * @return textColor1 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTextColor1() { @@ -443,7 +443,7 @@ public String getTextColor1() { } - @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTextColor1(@jakarta.annotation.Nullable String textColor1) { this.textColor1 = textColor1; @@ -460,7 +460,7 @@ public ApiAppResponseWhiteLabelingOptions textColor2(@jakarta.annotation.Nullabl * @return textColor2 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTextColor2() { @@ -468,7 +468,7 @@ public String getTextColor2() { } - @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTextColor2(@jakarta.annotation.Nullable String textColor2) { this.textColor2 = textColor2; @@ -832,10 +832,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java b/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java index 704ccc26..09451b54 100644 --- a/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java +++ b/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java @@ -47,7 +47,7 @@ ApiAppUpdateRequest.JSON_PROPERTY_OPTIONS, ApiAppUpdateRequest.JSON_PROPERTY_WHITE_LABELING_OPTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppUpdateRequest { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; @@ -106,7 +106,7 @@ public ApiAppUpdateRequest callbackUrl(@jakarta.annotation.Nullable String callb * @return callbackUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { @@ -114,7 +114,7 @@ public String getCallbackUrl() { } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -131,7 +131,7 @@ public ApiAppUpdateRequest customLogoFile(@jakarta.annotation.Nullable File cust * @return customLogoFile */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_LOGO_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getCustomLogoFile() { @@ -139,7 +139,7 @@ public File getCustomLogoFile() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_LOGO_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomLogoFile(@jakarta.annotation.Nullable File customLogoFile) { this.customLogoFile = customLogoFile; @@ -164,7 +164,7 @@ public ApiAppUpdateRequest addDomainsItem(String domainsItem) { * @return domains */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDomains() { @@ -172,7 +172,7 @@ public List getDomains() { } - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDomains(@jakarta.annotation.Nullable List domains) { this.domains = domains; @@ -189,7 +189,7 @@ public ApiAppUpdateRequest name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -197,7 +197,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -214,7 +214,7 @@ public ApiAppUpdateRequest oauth(@jakarta.annotation.Nullable SubOAuth oauth) { * @return oauth */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubOAuth getOauth() { @@ -222,7 +222,7 @@ public SubOAuth getOauth() { } - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOauth(@jakarta.annotation.Nullable SubOAuth oauth) { this.oauth = oauth; @@ -239,7 +239,7 @@ public ApiAppUpdateRequest options(@jakarta.annotation.Nullable SubOptions optio * @return options */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubOptions getOptions() { @@ -247,7 +247,7 @@ public SubOptions getOptions() { } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(@jakarta.annotation.Nullable SubOptions options) { this.options = options; @@ -264,7 +264,7 @@ public ApiAppUpdateRequest whiteLabelingOptions(@jakarta.annotation.Nullable Sub * @return whiteLabelingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubWhiteLabelingOptions getWhiteLabelingOptions() { @@ -272,7 +272,7 @@ public SubWhiteLabelingOptions getWhiteLabelingOptions() { } - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWhiteLabelingOptions(@jakarta.annotation.Nullable SubWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; @@ -489,10 +489,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java b/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java index 944191a5..45e1ac78 100644 --- a/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java +++ b/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java @@ -44,7 +44,7 @@ BulkSendJobGetResponse.JSON_PROPERTY_SIGNATURE_REQUESTS, BulkSendJobGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobGetResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB = "bulk_send_job"; @@ -91,7 +91,7 @@ public BulkSendJobGetResponse bulkSendJob(@jakarta.annotation.Nonnull BulkSendJo * @return bulkSendJob */ @jakarta.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() { @@ -99,7 +99,7 @@ public BulkSendJobResponse getBulkSendJob() { } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBulkSendJob(@jakarta.annotation.Nonnull BulkSendJobResponse bulkSendJob) { this.bulkSendJob = bulkSendJob; @@ -116,7 +116,7 @@ public BulkSendJobGetResponse listInfo(@jakarta.annotation.Nonnull ListInfoRespo * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -124,7 +124,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -149,7 +149,7 @@ public BulkSendJobGetResponse addSignatureRequestsItem(BulkSendJobGetResponseSig * @return signatureRequests */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUESTS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSignatureRequests() { @@ -157,7 +157,7 @@ public List getSignatureRequests() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUESTS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignatureRequests(@jakarta.annotation.Nonnull List signatureRequests) { this.signatureRequests = signatureRequests; @@ -182,7 +182,7 @@ public BulkSendJobGetResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -190,7 +190,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -344,10 +344,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java b/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java index 2e360bc7..87b22c29 100644 --- a/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java +++ b/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java @@ -67,7 +67,7 @@ BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_SIGNATURES, BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_BULK_SEND_JOB_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobGetResponseSignatureRequests { public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; @@ -198,7 +198,7 @@ public BulkSendJobGetResponseSignatureRequests testMode(@jakarta.annotation.Null * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -206,7 +206,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -223,7 +223,7 @@ public BulkSendJobGetResponseSignatureRequests signatureRequestId(@jakarta.annot * @return signatureRequestId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureRequestId() { @@ -231,7 +231,7 @@ public String getSignatureRequestId() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; @@ -248,7 +248,7 @@ public BulkSendJobGetResponseSignatureRequests requesterEmailAddress(@jakarta.an * @return requesterEmailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequesterEmailAddress() { @@ -256,7 +256,7 @@ public String getRequesterEmailAddress() { } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -273,7 +273,7 @@ public BulkSendJobGetResponseSignatureRequests title(@jakarta.annotation.Nullabl * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -281,7 +281,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -298,7 +298,7 @@ public BulkSendJobGetResponseSignatureRequests originalTitle(@jakarta.annotation * @return originalTitle */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOriginalTitle() { @@ -306,7 +306,7 @@ public String getOriginalTitle() { } - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalTitle(@jakarta.annotation.Nullable String originalTitle) { this.originalTitle = originalTitle; @@ -323,7 +323,7 @@ public BulkSendJobGetResponseSignatureRequests subject(@jakarta.annotation.Nulla * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -331,7 +331,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -348,7 +348,7 @@ public BulkSendJobGetResponseSignatureRequests message(@jakarta.annotation.Nulla * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -356,7 +356,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -381,7 +381,7 @@ public BulkSendJobGetResponseSignatureRequests putMetadataItem(String key, Objec * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -389,7 +389,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -406,7 +406,7 @@ public BulkSendJobGetResponseSignatureRequests createdAt(@jakarta.annotation.Nul * @return createdAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { @@ -414,7 +414,7 @@ public Integer getCreatedAt() { } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -431,7 +431,7 @@ public BulkSendJobGetResponseSignatureRequests expiresAt(@jakarta.annotation.Nul * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -439,7 +439,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -456,7 +456,7 @@ public BulkSendJobGetResponseSignatureRequests isComplete(@jakarta.annotation.Nu * @return isComplete */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_IS_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsComplete() { @@ -464,7 +464,7 @@ public Boolean getIsComplete() { } - @JsonProperty(JSON_PROPERTY_IS_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_IS_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsComplete(@jakarta.annotation.Nullable Boolean isComplete) { this.isComplete = isComplete; @@ -481,7 +481,7 @@ public BulkSendJobGetResponseSignatureRequests isDeclined(@jakarta.annotation.Nu * @return isDeclined */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_DECLINED) + @JsonProperty(value = JSON_PROPERTY_IS_DECLINED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsDeclined() { @@ -489,7 +489,7 @@ public Boolean getIsDeclined() { } - @JsonProperty(JSON_PROPERTY_IS_DECLINED) + @JsonProperty(value = JSON_PROPERTY_IS_DECLINED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsDeclined(@jakarta.annotation.Nullable Boolean isDeclined) { this.isDeclined = isDeclined; @@ -506,7 +506,7 @@ public BulkSendJobGetResponseSignatureRequests hasError(@jakarta.annotation.Null * @return hasError */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_ERROR) + @JsonProperty(value = JSON_PROPERTY_HAS_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasError() { @@ -514,7 +514,7 @@ public Boolean getHasError() { } - @JsonProperty(JSON_PROPERTY_HAS_ERROR) + @JsonProperty(value = JSON_PROPERTY_HAS_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasError(@jakarta.annotation.Nullable Boolean hasError) { this.hasError = hasError; @@ -531,7 +531,7 @@ public BulkSendJobGetResponseSignatureRequests filesUrl(@jakarta.annotation.Null * @return filesUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFilesUrl() { @@ -539,7 +539,7 @@ public String getFilesUrl() { } - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFilesUrl(@jakarta.annotation.Nullable String filesUrl) { this.filesUrl = filesUrl; @@ -556,7 +556,7 @@ public BulkSendJobGetResponseSignatureRequests signingUrl(@jakarta.annotation.Nu * @return signingUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningUrl() { @@ -564,7 +564,7 @@ public String getSigningUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningUrl(@jakarta.annotation.Nullable String signingUrl) { this.signingUrl = signingUrl; @@ -581,7 +581,7 @@ public BulkSendJobGetResponseSignatureRequests detailsUrl(@jakarta.annotation.Nu * @return detailsUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAILS_URL) + @JsonProperty(value = JSON_PROPERTY_DETAILS_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDetailsUrl() { @@ -589,7 +589,7 @@ public String getDetailsUrl() { } - @JsonProperty(JSON_PROPERTY_DETAILS_URL) + @JsonProperty(value = JSON_PROPERTY_DETAILS_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDetailsUrl(@jakarta.annotation.Nullable String detailsUrl) { this.detailsUrl = detailsUrl; @@ -614,7 +614,7 @@ public BulkSendJobGetResponseSignatureRequests addCcEmailAddressesItem(String cc * @return ccEmailAddresses */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { @@ -622,7 +622,7 @@ public List getCcEmailAddresses() { } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -639,7 +639,7 @@ public BulkSendJobGetResponseSignatureRequests signingRedirectUrl(@jakarta.annot * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -647,7 +647,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -664,7 +664,7 @@ public BulkSendJobGetResponseSignatureRequests finalCopyUri(@jakarta.annotation. * @return finalCopyUri */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFinalCopyUri() { @@ -672,7 +672,7 @@ public String getFinalCopyUri() { } - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFinalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; @@ -697,7 +697,7 @@ public BulkSendJobGetResponseSignatureRequests addTemplateIdsItem(String templat * @return templateIds */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTemplateIds() { @@ -705,7 +705,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateIds(@jakarta.annotation.Nullable List templateIds) { this.templateIds = templateIds; @@ -730,7 +730,7 @@ public BulkSendJobGetResponseSignatureRequests addCustomFieldsItem(SignatureRequ * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -738,7 +738,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -763,7 +763,7 @@ public BulkSendJobGetResponseSignatureRequests addAttachmentsItem(SignatureReque * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -771,7 +771,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -796,7 +796,7 @@ public BulkSendJobGetResponseSignatureRequests addResponseDataItem(SignatureRequ * @return responseData */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) + @JsonProperty(value = JSON_PROPERTY_RESPONSE_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getResponseData() { @@ -804,7 +804,7 @@ public List getResponseData() { } - @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) + @JsonProperty(value = JSON_PROPERTY_RESPONSE_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setResponseData(@jakarta.annotation.Nullable List responseData) { this.responseData = responseData; @@ -829,7 +829,7 @@ public BulkSendJobGetResponseSignatureRequests addSignaturesItem(SignatureReques * @return signatures */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNATURES) + @JsonProperty(value = JSON_PROPERTY_SIGNATURES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignatures() { @@ -837,7 +837,7 @@ public List getSignatures() { } - @JsonProperty(JSON_PROPERTY_SIGNATURES) + @JsonProperty(value = JSON_PROPERTY_SIGNATURES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatures(@jakarta.annotation.Nullable List signatures) { this.signatures = signatures; @@ -854,7 +854,7 @@ public BulkSendJobGetResponseSignatureRequests bulkSendJobId(@jakarta.annotation * @return bulkSendJobId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBulkSendJobId() { @@ -862,7 +862,7 @@ public String getBulkSendJobId() { } - @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(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; @@ -1457,10 +1457,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java b/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java index 93fd456c..f181a64d 100644 --- a/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java +++ b/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java @@ -42,7 +42,7 @@ BulkSendJobListResponse.JSON_PROPERTY_LIST_INFO, BulkSendJobListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobListResponse { public static final String JSON_PROPERTY_BULK_SEND_JOBS = "bulk_send_jobs"; @@ -93,7 +93,7 @@ public BulkSendJobListResponse addBulkSendJobsItem(BulkSendJobResponse bulkSendJ * @return bulkSendJobs */ @jakarta.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() { @@ -101,7 +101,7 @@ public List getBulkSendJobs() { } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOBS) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOBS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBulkSendJobs(@jakarta.annotation.Nonnull List bulkSendJobs) { this.bulkSendJobs = bulkSendJobs; @@ -118,7 +118,7 @@ public BulkSendJobListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResp * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -126,7 +126,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -151,7 +151,7 @@ public BulkSendJobListResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -159,7 +159,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -292,10 +292,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java b/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java index f025c4f8..1858c35b 100644 --- a/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java +++ b/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java @@ -38,7 +38,7 @@ BulkSendJobResponse.JSON_PROPERTY_IS_CREATOR, BulkSendJobResponse.JSON_PROPERTY_CREATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", 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"; @@ -85,7 +85,7 @@ public BulkSendJobResponse bulkSendJobId(@jakarta.annotation.Nullable String bul * @return bulkSendJobId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBulkSendJobId() { @@ -93,7 +93,7 @@ public String getBulkSendJobId() { } - @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(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; @@ -110,7 +110,7 @@ public BulkSendJobResponse total(@jakarta.annotation.Nullable Integer total) { * @return total */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonProperty(value = JSON_PROPERTY_TOTAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTotal() { @@ -118,7 +118,7 @@ public Integer getTotal() { } - @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonProperty(value = JSON_PROPERTY_TOTAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTotal(@jakarta.annotation.Nullable Integer total) { this.total = total; @@ -135,7 +135,7 @@ public BulkSendJobResponse isCreator(@jakarta.annotation.Nullable Boolean isCrea * @return isCreator */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_CREATOR) + @JsonProperty(value = JSON_PROPERTY_IS_CREATOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsCreator() { @@ -143,7 +143,7 @@ public Boolean getIsCreator() { } - @JsonProperty(JSON_PROPERTY_IS_CREATOR) + @JsonProperty(value = JSON_PROPERTY_IS_CREATOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsCreator(@jakarta.annotation.Nullable Boolean isCreator) { this.isCreator = isCreator; @@ -160,7 +160,7 @@ public BulkSendJobResponse createdAt(@jakarta.annotation.Nullable Integer create * @return createdAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { @@ -168,7 +168,7 @@ public Integer getCreatedAt() { } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java b/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java index 9f7095f3..f0a7ef0f 100644 --- a/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java +++ b/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java @@ -40,7 +40,7 @@ BulkSendJobSendResponse.JSON_PROPERTY_BULK_SEND_JOB, BulkSendJobSendResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobSendResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB = "bulk_send_job"; @@ -79,7 +79,7 @@ public BulkSendJobSendResponse bulkSendJob(@jakarta.annotation.Nonnull BulkSendJ * @return bulkSendJob */ @jakarta.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() { @@ -87,7 +87,7 @@ public BulkSendJobResponse getBulkSendJob() { } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBulkSendJob(@jakarta.annotation.Nonnull BulkSendJobResponse bulkSendJob) { this.bulkSendJob = bulkSendJob; @@ -112,7 +112,7 @@ public BulkSendJobSendResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionRequest.java b/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionRequest.java index 75d2600b..183cc494 100644 --- a/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionRequest.java +++ b/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionRequest.java @@ -40,7 +40,7 @@ DocumentFieldDetectionRequest.JSON_PROPERTY_FILE_URL, DocumentFieldDetectionRequest.JSON_PROPERTY_PAGE_RANGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class DocumentFieldDetectionRequest { public static final String JSON_PROPERTY_DETECTION_MODE = "detection_mode"; @@ -87,7 +87,7 @@ public DocumentFieldDetectionRequest detectionMode(@jakarta.annotation.Nonnull S * @return detectionMode */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DETECTION_MODE) + @JsonProperty(value = JSON_PROPERTY_DETECTION_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDetectionMode() { @@ -95,7 +95,7 @@ public String getDetectionMode() { } - @JsonProperty(JSON_PROPERTY_DETECTION_MODE) + @JsonProperty(value = JSON_PROPERTY_DETECTION_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDetectionMode(@jakarta.annotation.Nonnull String detectionMode) { this.detectionMode = detectionMode; @@ -112,7 +112,7 @@ public DocumentFieldDetectionRequest _file(@jakarta.annotation.Nullable File _fi * @return _file */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getFile() { @@ -120,7 +120,7 @@ public File getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@jakarta.annotation.Nullable File _file) { this._file = _file; @@ -137,7 +137,7 @@ public DocumentFieldDetectionRequest fileUrl(@jakarta.annotation.Nullable URI fi * @return fileUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URL) + @JsonProperty(value = JSON_PROPERTY_FILE_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public URI getFileUrl() { @@ -145,7 +145,7 @@ public URI getFileUrl() { } - @JsonProperty(JSON_PROPERTY_FILE_URL) + @JsonProperty(value = JSON_PROPERTY_FILE_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrl(@jakarta.annotation.Nullable URI fileUrl) { this.fileUrl = fileUrl; @@ -162,7 +162,7 @@ public DocumentFieldDetectionRequest pageRange(@jakarta.annotation.Nullable Stri * @return pageRange */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAGE_RANGE) + @JsonProperty(value = JSON_PROPERTY_PAGE_RANGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPageRange() { @@ -170,7 +170,7 @@ public String getPageRange() { } - @JsonProperty(JSON_PROPERTY_PAGE_RANGE) + @JsonProperty(value = JSON_PROPERTY_PAGE_RANGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPageRange(@jakarta.annotation.Nullable String pageRange) { this.pageRange = pageRange; @@ -324,10 +324,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponse.java b/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponse.java index d1cdd7b6..f9b1cd04 100644 --- a/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponse.java +++ b/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponse.java @@ -40,7 +40,7 @@ DocumentFieldDetectionResponse.JSON_PROPERTY_DETECTION_RESULT, DocumentFieldDetectionResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class DocumentFieldDetectionResponse { public static final String JSON_PROPERTY_DETECTION_RESULT = "detection_result"; @@ -79,7 +79,7 @@ public DocumentFieldDetectionResponse detectionResult(@jakarta.annotation.Nonnul * @return detectionResult */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DETECTION_RESULT) + @JsonProperty(value = JSON_PROPERTY_DETECTION_RESULT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public DocumentFieldDetectionResponseDetectionResult getDetectionResult() { @@ -87,7 +87,7 @@ public DocumentFieldDetectionResponseDetectionResult getDetectionResult() { } - @JsonProperty(JSON_PROPERTY_DETECTION_RESULT) + @JsonProperty(value = JSON_PROPERTY_DETECTION_RESULT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDetectionResult(@jakarta.annotation.Nonnull DocumentFieldDetectionResponseDetectionResult detectionResult) { this.detectionResult = detectionResult; @@ -112,7 +112,7 @@ public DocumentFieldDetectionResponse addWarningsItem(WarningResponse warningsIt * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponseDetectionResult.java b/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponseDetectionResult.java index a5f46f32..0cce22fb 100644 --- a/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponseDetectionResult.java +++ b/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponseDetectionResult.java @@ -50,7 +50,7 @@ DocumentFieldDetectionResponseDetectionResult.JSON_PROPERTY_ERRORS, DocumentFieldDetectionResponseDetectionResult.JSON_PROPERTY_SUGGESTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class DocumentFieldDetectionResponseDetectionResult { public static final String JSON_PROPERTY_DOCUMENT_HASH = "document_hash"; @@ -121,7 +121,7 @@ public DocumentFieldDetectionResponseDetectionResult documentHash(@jakarta.annot * @return documentHash */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DOCUMENT_HASH) + @JsonProperty(value = JSON_PROPERTY_DOCUMENT_HASH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDocumentHash() { @@ -129,7 +129,7 @@ public String getDocumentHash() { } - @JsonProperty(JSON_PROPERTY_DOCUMENT_HASH) + @JsonProperty(value = JSON_PROPERTY_DOCUMENT_HASH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDocumentHash(@jakarta.annotation.Nonnull String documentHash) { this.documentHash = documentHash; @@ -146,7 +146,7 @@ public DocumentFieldDetectionResponseDetectionResult detectionMode(@jakarta.anno * @return detectionMode */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DETECTION_MODE) + @JsonProperty(value = JSON_PROPERTY_DETECTION_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDetectionMode() { @@ -154,7 +154,7 @@ public String getDetectionMode() { } - @JsonProperty(JSON_PROPERTY_DETECTION_MODE) + @JsonProperty(value = JSON_PROPERTY_DETECTION_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDetectionMode(@jakarta.annotation.Nonnull String detectionMode) { this.detectionMode = detectionMode; @@ -172,7 +172,7 @@ public DocumentFieldDetectionResponseDetectionResult pageCount(@jakarta.annotati * @return pageCount */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PAGE_COUNT) + @JsonProperty(value = JSON_PROPERTY_PAGE_COUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getPageCount() { @@ -180,7 +180,7 @@ public Integer getPageCount() { } - @JsonProperty(JSON_PROPERTY_PAGE_COUNT) + @JsonProperty(value = JSON_PROPERTY_PAGE_COUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPageCount(@jakarta.annotation.Nonnull Integer pageCount) { this.pageCount = pageCount; @@ -197,7 +197,7 @@ public DocumentFieldDetectionResponseDetectionResult pagesAnalyzed(@jakarta.anno * @return pagesAnalyzed */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PAGES_ANALYZED) + @JsonProperty(value = JSON_PROPERTY_PAGES_ANALYZED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPagesAnalyzed() { @@ -205,7 +205,7 @@ public String getPagesAnalyzed() { } - @JsonProperty(JSON_PROPERTY_PAGES_ANALYZED) + @JsonProperty(value = JSON_PROPERTY_PAGES_ANALYZED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPagesAnalyzed(@jakarta.annotation.Nonnull String pagesAnalyzed) { this.pagesAnalyzed = pagesAnalyzed; @@ -222,7 +222,7 @@ public DocumentFieldDetectionResponseDetectionResult detectedAt(@jakarta.annotat * @return detectedAt */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DETECTED_AT) + @JsonProperty(value = JSON_PROPERTY_DETECTED_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Long getDetectedAt() { @@ -230,7 +230,7 @@ public Long getDetectedAt() { } - @JsonProperty(JSON_PROPERTY_DETECTED_AT) + @JsonProperty(value = JSON_PROPERTY_DETECTED_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDetectedAt(@jakarta.annotation.Nonnull Long detectedAt) { this.detectedAt = detectedAt; @@ -255,7 +255,7 @@ public DocumentFieldDetectionResponseDetectionResult addFormFieldsPerDocumentIte * @return formFieldsPerDocument */ @jakarta.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() { @@ -263,7 +263,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nonnull List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -288,7 +288,7 @@ public DocumentFieldDetectionResponseDetectionResult addFormFieldGroupsItem(SubF * @return formFieldGroups */ @jakarta.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() { @@ -296,7 +296,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFormFieldGroups(@jakarta.annotation.Nonnull List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -321,7 +321,7 @@ public DocumentFieldDetectionResponseDetectionResult addWarningsItem(WarningResp * @return warnings */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getWarnings() { @@ -329,7 +329,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setWarnings(@jakarta.annotation.Nonnull List warnings) { this.warnings = warnings; @@ -354,7 +354,7 @@ public DocumentFieldDetectionResponseDetectionResult addErrorsItem(ErrorResponse * @return errors */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getErrors() { @@ -362,7 +362,7 @@ public List getErrors() { } - @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setErrors(@jakarta.annotation.Nonnull List errors) { this.errors = errors; @@ -387,7 +387,7 @@ public DocumentFieldDetectionResponseDetectionResult addSuggestionsItem(String s * @return suggestions */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUGGESTIONS) + @JsonProperty(value = JSON_PROPERTY_SUGGESTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSuggestions() { @@ -395,7 +395,7 @@ public List getSuggestions() { } - @JsonProperty(JSON_PROPERTY_SUGGESTIONS) + @JsonProperty(value = JSON_PROPERTY_SUGGESTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSuggestions(@jakarta.annotation.Nonnull List suggestions) { this.suggestions = suggestions; @@ -675,10 +675,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java b/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java index 4ae9bf2c..c7ee76ee 100644 --- a/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java +++ b/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java @@ -48,7 +48,7 @@ EmbeddedEditUrlRequest.JSON_PROPERTY_SHOW_PROGRESS_STEPPER, EmbeddedEditUrlRequest.JSON_PROPERTY_TEST_MODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedEditUrlRequest { public static final String JSON_PROPERTY_ALLOW_EDIT_CCS = "allow_edit_ccs"; @@ -119,7 +119,7 @@ public EmbeddedEditUrlRequest allowEditCcs(@jakarta.annotation.Nullable Boolean * @return allowEditCcs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowEditCcs() { @@ -127,7 +127,7 @@ public Boolean getAllowEditCcs() { } - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowEditCcs(@jakarta.annotation.Nullable Boolean allowEditCcs) { this.allowEditCcs = allowEditCcs; @@ -152,7 +152,7 @@ public EmbeddedEditUrlRequest addCcRolesItem(String ccRolesItem) { * @return ccRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcRoles() { @@ -160,7 +160,7 @@ public List getCcRoles() { } - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; @@ -177,7 +177,7 @@ public EmbeddedEditUrlRequest editorOptions(@jakarta.annotation.Nullable SubEdit * @return editorOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { @@ -185,7 +185,7 @@ public SubEditorOptions getEditorOptions() { } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -202,7 +202,7 @@ public EmbeddedEditUrlRequest forceSignerRoles(@jakarta.annotation.Nullable Bool * @return forceSignerRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSignerRoles() { @@ -210,7 +210,7 @@ public Boolean getForceSignerRoles() { } - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; @@ -227,7 +227,7 @@ public EmbeddedEditUrlRequest forceSubjectMessage(@jakarta.annotation.Nullable B * @return forceSubjectMessage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSubjectMessage() { @@ -235,7 +235,7 @@ public Boolean getForceSubjectMessage() { } - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; @@ -260,7 +260,7 @@ public EmbeddedEditUrlRequest addMergeFieldsItem(SubMergeField mergeFieldsItem) * @return mergeFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getMergeFields() { @@ -268,7 +268,7 @@ public List getMergeFields() { } - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; @@ -285,7 +285,7 @@ public EmbeddedEditUrlRequest previewOnly(@jakarta.annotation.Nullable Boolean p * @return previewOnly */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) + @JsonProperty(value = JSON_PROPERTY_PREVIEW_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPreviewOnly() { @@ -293,7 +293,7 @@ public Boolean getPreviewOnly() { } - @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) + @JsonProperty(value = JSON_PROPERTY_PREVIEW_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPreviewOnly(@jakarta.annotation.Nullable Boolean previewOnly) { this.previewOnly = previewOnly; @@ -310,7 +310,7 @@ public EmbeddedEditUrlRequest showPreview(@jakarta.annotation.Nullable Boolean s * @return showPreview */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowPreview() { @@ -318,7 +318,7 @@ public Boolean getShowPreview() { } - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; @@ -335,7 +335,7 @@ public EmbeddedEditUrlRequest showProgressStepper(@jakarta.annotation.Nullable B * @return showProgressStepper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { @@ -343,7 +343,7 @@ public Boolean getShowProgressStepper() { } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -360,7 +360,7 @@ public EmbeddedEditUrlRequest testMode(@jakarta.annotation.Nullable Boolean test * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -368,7 +368,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -648,10 +648,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java b/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java index 11c566ad..77581411 100644 --- a/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java +++ b/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java @@ -40,7 +40,7 @@ EmbeddedEditUrlResponse.JSON_PROPERTY_EMBEDDED, EmbeddedEditUrlResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedEditUrlResponse { public static final String JSON_PROPERTY_EMBEDDED = "embedded"; @@ -79,7 +79,7 @@ public EmbeddedEditUrlResponse embedded(@jakarta.annotation.Nonnull EmbeddedEdit * @return embedded */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_EMBEDDED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EmbeddedEditUrlResponseEmbedded getEmbedded() { @@ -87,7 +87,7 @@ public EmbeddedEditUrlResponseEmbedded getEmbedded() { } - @JsonProperty(JSON_PROPERTY_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_EMBEDDED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmbedded(@jakarta.annotation.Nonnull EmbeddedEditUrlResponseEmbedded embedded) { this.embedded = embedded; @@ -112,7 +112,7 @@ public EmbeddedEditUrlResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java b/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java index 0518d5ee..26949932 100644 --- a/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java +++ b/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java @@ -36,7 +36,7 @@ EmbeddedEditUrlResponseEmbedded.JSON_PROPERTY_EDIT_URL, EmbeddedEditUrlResponseEmbedded.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedEditUrlResponseEmbedded { public static final String JSON_PROPERTY_EDIT_URL = "edit_url"; @@ -75,7 +75,7 @@ public EmbeddedEditUrlResponseEmbedded editUrl(@jakarta.annotation.Nullable Stri * @return editUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDIT_URL) + @JsonProperty(value = JSON_PROPERTY_EDIT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEditUrl() { @@ -83,7 +83,7 @@ public String getEditUrl() { } - @JsonProperty(JSON_PROPERTY_EDIT_URL) + @JsonProperty(value = JSON_PROPERTY_EDIT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditUrl(@jakarta.annotation.Nullable String editUrl) { this.editUrl = editUrl; @@ -100,7 +100,7 @@ public EmbeddedEditUrlResponseEmbedded expiresAt(@jakarta.annotation.Nullable In * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -108,7 +108,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java b/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java index 0ac9ccda..220a2765 100644 --- a/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java +++ b/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java @@ -40,7 +40,7 @@ EmbeddedSignUrlResponse.JSON_PROPERTY_EMBEDDED, EmbeddedSignUrlResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedSignUrlResponse { public static final String JSON_PROPERTY_EMBEDDED = "embedded"; @@ -79,7 +79,7 @@ public EmbeddedSignUrlResponse embedded(@jakarta.annotation.Nonnull EmbeddedSign * @return embedded */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_EMBEDDED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EmbeddedSignUrlResponseEmbedded getEmbedded() { @@ -87,7 +87,7 @@ public EmbeddedSignUrlResponseEmbedded getEmbedded() { } - @JsonProperty(JSON_PROPERTY_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_EMBEDDED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmbedded(@jakarta.annotation.Nonnull EmbeddedSignUrlResponseEmbedded embedded) { this.embedded = embedded; @@ -112,7 +112,7 @@ public EmbeddedSignUrlResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java b/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java index c06bd383..76123877 100644 --- a/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java +++ b/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java @@ -36,7 +36,7 @@ EmbeddedSignUrlResponseEmbedded.JSON_PROPERTY_SIGN_URL, EmbeddedSignUrlResponseEmbedded.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedSignUrlResponseEmbedded { public static final String JSON_PROPERTY_SIGN_URL = "sign_url"; @@ -75,7 +75,7 @@ public EmbeddedSignUrlResponseEmbedded signUrl(@jakarta.annotation.Nullable Stri * @return signUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGN_URL) + @JsonProperty(value = JSON_PROPERTY_SIGN_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignUrl() { @@ -83,7 +83,7 @@ public String getSignUrl() { } - @JsonProperty(JSON_PROPERTY_SIGN_URL) + @JsonProperty(value = JSON_PROPERTY_SIGN_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignUrl(@jakarta.annotation.Nullable String signUrl) { this.signUrl = signUrl; @@ -100,7 +100,7 @@ public EmbeddedSignUrlResponseEmbedded expiresAt(@jakarta.annotation.Nullable In * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -108,7 +108,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ErrorResponse.java b/src/main/java/com/dropbox/sign/model/ErrorResponse.java index d905f675..5c0f2986 100644 --- a/src/main/java/com/dropbox/sign/model/ErrorResponse.java +++ b/src/main/java/com/dropbox/sign/model/ErrorResponse.java @@ -36,7 +36,7 @@ @JsonPropertyOrder({ ErrorResponse.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ErrorResponse { public static final String JSON_PROPERTY_ERROR = "error"; @@ -71,7 +71,7 @@ public ErrorResponse error(@jakarta.annotation.Nonnull ErrorResponseError error) * @return error */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(value = JSON_PROPERTY_ERROR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ErrorResponseError getError() { @@ -79,7 +79,7 @@ public ErrorResponseError getError() { } - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(value = JSON_PROPERTY_ERROR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setError(@jakarta.annotation.Nonnull ErrorResponseError error) { this.error = error; @@ -170,10 +170,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ErrorResponseError.java b/src/main/java/com/dropbox/sign/model/ErrorResponseError.java index 9398b048..e25986e3 100644 --- a/src/main/java/com/dropbox/sign/model/ErrorResponseError.java +++ b/src/main/java/com/dropbox/sign/model/ErrorResponseError.java @@ -37,7 +37,7 @@ ErrorResponseError.JSON_PROPERTY_ERROR_NAME, ErrorResponseError.JSON_PROPERTY_ERROR_PATH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ErrorResponseError { public static final String JSON_PROPERTY_ERROR_MSG = "error_msg"; @@ -80,7 +80,7 @@ public ErrorResponseError errorMsg(@jakarta.annotation.Nonnull String errorMsg) * @return errorMsg */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_MSG) + @JsonProperty(value = JSON_PROPERTY_ERROR_MSG, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getErrorMsg() { @@ -88,7 +88,7 @@ public String getErrorMsg() { } - @JsonProperty(JSON_PROPERTY_ERROR_MSG) + @JsonProperty(value = JSON_PROPERTY_ERROR_MSG, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setErrorMsg(@jakarta.annotation.Nonnull String errorMsg) { this.errorMsg = errorMsg; @@ -105,7 +105,7 @@ public ErrorResponseError errorName(@jakarta.annotation.Nonnull String errorName * @return errorName */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_NAME) + @JsonProperty(value = JSON_PROPERTY_ERROR_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getErrorName() { @@ -113,7 +113,7 @@ public String getErrorName() { } - @JsonProperty(JSON_PROPERTY_ERROR_NAME) + @JsonProperty(value = JSON_PROPERTY_ERROR_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setErrorName(@jakarta.annotation.Nonnull String errorName) { this.errorName = errorName; @@ -130,7 +130,7 @@ public ErrorResponseError errorPath(@jakarta.annotation.Nullable String errorPat * @return errorPath */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR_PATH) + @JsonProperty(value = JSON_PROPERTY_ERROR_PATH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getErrorPath() { @@ -138,7 +138,7 @@ public String getErrorPath() { } - @JsonProperty(JSON_PROPERTY_ERROR_PATH) + @JsonProperty(value = JSON_PROPERTY_ERROR_PATH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setErrorPath(@jakarta.annotation.Nullable String errorPath) { this.errorPath = errorPath; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java b/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java index 81eb8d0e..52c5806c 100644 --- a/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java +++ b/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java @@ -42,7 +42,7 @@ EventCallbackRequest.JSON_PROPERTY_SIGNATURE_REQUEST, EventCallbackRequest.JSON_PROPERTY_TEMPLATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EventCallbackRequest { public static final String JSON_PROPERTY_EVENT = "event"; @@ -89,7 +89,7 @@ public EventCallbackRequest event(@jakarta.annotation.Nonnull EventCallbackReque * @return event */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT) + @JsonProperty(value = JSON_PROPERTY_EVENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EventCallbackRequestEvent getEvent() { @@ -97,7 +97,7 @@ public EventCallbackRequestEvent getEvent() { } - @JsonProperty(JSON_PROPERTY_EVENT) + @JsonProperty(value = JSON_PROPERTY_EVENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEvent(@jakarta.annotation.Nonnull EventCallbackRequestEvent event) { this.event = event; @@ -114,7 +114,7 @@ public EventCallbackRequest account(@jakarta.annotation.Nullable AccountResponse * @return account */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountResponse getAccount() { @@ -122,7 +122,7 @@ public AccountResponse getAccount() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccount(@jakarta.annotation.Nullable AccountResponse account) { this.account = account; @@ -139,7 +139,7 @@ public EventCallbackRequest signatureRequest(@jakarta.annotation.Nullable Signat * @return signatureRequest */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SignatureRequestResponse getSignatureRequest() { @@ -147,7 +147,7 @@ public SignatureRequestResponse getSignatureRequest() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureRequest(@jakarta.annotation.Nullable SignatureRequestResponse signatureRequest) { this.signatureRequest = signatureRequest; @@ -164,7 +164,7 @@ public EventCallbackRequest template(@jakarta.annotation.Nullable TemplateRespon * @return template */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponse getTemplate() { @@ -172,7 +172,7 @@ public TemplateResponse getTemplate() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplate(@jakarta.annotation.Nullable TemplateResponse template) { this.template = template; @@ -326,10 +326,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java b/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java index ac04a69e..25f3a638 100644 --- a/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java +++ b/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java @@ -39,7 +39,7 @@ EventCallbackRequestEvent.JSON_PROPERTY_EVENT_HASH, EventCallbackRequestEvent.JSON_PROPERTY_EVENT_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EventCallbackRequestEvent { public static final String JSON_PROPERTY_EVENT_TIME = "event_time"; @@ -177,7 +177,7 @@ public EventCallbackRequestEvent eventTime(@jakarta.annotation.Nonnull String ev * @return eventTime */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT_TIME) + @JsonProperty(value = JSON_PROPERTY_EVENT_TIME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEventTime() { @@ -185,7 +185,7 @@ public String getEventTime() { } - @JsonProperty(JSON_PROPERTY_EVENT_TIME) + @JsonProperty(value = JSON_PROPERTY_EVENT_TIME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEventTime(@jakarta.annotation.Nonnull String eventTime) { this.eventTime = eventTime; @@ -202,7 +202,7 @@ public EventCallbackRequestEvent eventType(@jakarta.annotation.Nonnull EventType * @return eventType */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT_TYPE) + @JsonProperty(value = JSON_PROPERTY_EVENT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EventTypeEnum getEventType() { @@ -210,7 +210,7 @@ public EventTypeEnum getEventType() { } - @JsonProperty(JSON_PROPERTY_EVENT_TYPE) + @JsonProperty(value = JSON_PROPERTY_EVENT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEventType(@jakarta.annotation.Nonnull EventTypeEnum eventType) { this.eventType = eventType; @@ -227,7 +227,7 @@ public EventCallbackRequestEvent eventHash(@jakarta.annotation.Nonnull String ev * @return eventHash */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT_HASH) + @JsonProperty(value = JSON_PROPERTY_EVENT_HASH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEventHash() { @@ -235,7 +235,7 @@ public String getEventHash() { } - @JsonProperty(JSON_PROPERTY_EVENT_HASH) + @JsonProperty(value = JSON_PROPERTY_EVENT_HASH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEventHash(@jakarta.annotation.Nonnull String eventHash) { this.eventHash = eventHash; @@ -252,7 +252,7 @@ public EventCallbackRequestEvent eventMetadata(@jakarta.annotation.Nullable Even * @return eventMetadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EVENT_METADATA) + @JsonProperty(value = JSON_PROPERTY_EVENT_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EventCallbackRequestEventMetadata getEventMetadata() { @@ -260,7 +260,7 @@ public EventCallbackRequestEventMetadata getEventMetadata() { } - @JsonProperty(JSON_PROPERTY_EVENT_METADATA) + @JsonProperty(value = JSON_PROPERTY_EVENT_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEventMetadata(@jakarta.annotation.Nullable EventCallbackRequestEventMetadata eventMetadata) { this.eventMetadata = eventMetadata; @@ -414,10 +414,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java b/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java index 70d002e3..c64ce29a 100644 --- a/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java +++ b/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java @@ -38,7 +38,7 @@ EventCallbackRequestEventMetadata.JSON_PROPERTY_REPORTED_FOR_APP_ID, EventCallbackRequestEventMetadata.JSON_PROPERTY_EVENT_MESSAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EventCallbackRequestEventMetadata { public static final String JSON_PROPERTY_RELATED_SIGNATURE_ID = "related_signature_id"; @@ -85,7 +85,7 @@ public EventCallbackRequestEventMetadata relatedSignatureId(@jakarta.annotation. * @return relatedSignatureId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RELATED_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_RELATED_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRelatedSignatureId() { @@ -93,7 +93,7 @@ public String getRelatedSignatureId() { } - @JsonProperty(JSON_PROPERTY_RELATED_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_RELATED_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRelatedSignatureId(@jakarta.annotation.Nullable String relatedSignatureId) { this.relatedSignatureId = relatedSignatureId; @@ -110,7 +110,7 @@ public EventCallbackRequestEventMetadata reportedForAccountId(@jakarta.annotatio * @return reportedForAccountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REPORTED_FOR_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_REPORTED_FOR_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReportedForAccountId() { @@ -118,7 +118,7 @@ public String getReportedForAccountId() { } - @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(@jakarta.annotation.Nullable String reportedForAccountId) { this.reportedForAccountId = reportedForAccountId; @@ -135,7 +135,7 @@ public EventCallbackRequestEventMetadata reportedForAppId(@jakarta.annotation.Nu * @return reportedForAppId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REPORTED_FOR_APP_ID) + @JsonProperty(value = JSON_PROPERTY_REPORTED_FOR_APP_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReportedForAppId() { @@ -143,7 +143,7 @@ public String getReportedForAppId() { } - @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(@jakarta.annotation.Nullable String reportedForAppId) { this.reportedForAppId = reportedForAppId; @@ -160,7 +160,7 @@ public EventCallbackRequestEventMetadata eventMessage(@jakarta.annotation.Nullab * @return eventMessage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EVENT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_EVENT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEventMessage() { @@ -168,7 +168,7 @@ public String getEventMessage() { } - @JsonProperty(JSON_PROPERTY_EVENT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_EVENT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEventMessage(@jakarta.annotation.Nullable String eventMessage) { this.eventMessage = eventMessage; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxGetResponse.java b/src/main/java/com/dropbox/sign/model/FaxGetResponse.java index 958f0880..478a8c18 100644 --- a/src/main/java/com/dropbox/sign/model/FaxGetResponse.java +++ b/src/main/java/com/dropbox/sign/model/FaxGetResponse.java @@ -40,7 +40,7 @@ FaxGetResponse.JSON_PROPERTY_FAX, FaxGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxGetResponse { public static final String JSON_PROPERTY_FAX = "fax"; @@ -79,7 +79,7 @@ public FaxGetResponse fax(@jakarta.annotation.Nonnull FaxResponse fax) { * @return fax */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAX) + @JsonProperty(value = JSON_PROPERTY_FAX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public FaxResponse getFax() { @@ -87,7 +87,7 @@ public FaxResponse getFax() { } - @JsonProperty(JSON_PROPERTY_FAX) + @JsonProperty(value = JSON_PROPERTY_FAX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFax(@jakarta.annotation.Nonnull FaxResponse fax) { this.fax = fax; @@ -112,7 +112,7 @@ public FaxGetResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java b/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java index 779e8705..e0ad491d 100644 --- a/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java +++ b/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java @@ -37,7 +37,7 @@ FaxLineAddUserRequest.JSON_PROPERTY_ACCOUNT_ID, FaxLineAddUserRequest.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineAddUserRequest { public static final String JSON_PROPERTY_NUMBER = "number"; @@ -80,7 +80,7 @@ public FaxLineAddUserRequest number(@jakarta.annotation.Nonnull String number) { * @return number */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { @@ -88,7 +88,7 @@ public String getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull String number) { this.number = number; @@ -105,7 +105,7 @@ public FaxLineAddUserRequest accountId(@jakarta.annotation.Nullable String accou * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -113,7 +113,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -130,7 +130,7 @@ public FaxLineAddUserRequest emailAddress(@jakarta.annotation.Nullable String em * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -138,7 +138,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java b/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java index fec49f87..d58208a9 100644 --- a/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java +++ b/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java @@ -37,7 +37,7 @@ @JsonPropertyOrder({ FaxLineAreaCodeGetResponse.JSON_PROPERTY_AREA_CODES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineAreaCodeGetResponse { public static final String JSON_PROPERTY_AREA_CODES = "area_codes"; @@ -80,7 +80,7 @@ public FaxLineAreaCodeGetResponse addAreaCodesItem(Integer areaCodesItem) { * @return areaCodes */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AREA_CODES) + @JsonProperty(value = JSON_PROPERTY_AREA_CODES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getAreaCodes() { @@ -88,7 +88,7 @@ public List getAreaCodes() { } - @JsonProperty(JSON_PROPERTY_AREA_CODES) + @JsonProperty(value = JSON_PROPERTY_AREA_CODES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAreaCodes(@jakarta.annotation.Nonnull List areaCodes) { this.areaCodes = areaCodes; @@ -179,10 +179,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java b/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java index cdf52702..24bee1e2 100644 --- a/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java @@ -38,7 +38,7 @@ FaxLineCreateRequest.JSON_PROPERTY_CITY, FaxLineCreateRequest.JSON_PROPERTY_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineCreateRequest { public static final String JSON_PROPERTY_AREA_CODE = "area_code"; @@ -122,7 +122,7 @@ public FaxLineCreateRequest areaCode(@jakarta.annotation.Nonnull Integer areaCod * @return areaCode */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AREA_CODE) + @JsonProperty(value = JSON_PROPERTY_AREA_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getAreaCode() { @@ -130,7 +130,7 @@ public Integer getAreaCode() { } - @JsonProperty(JSON_PROPERTY_AREA_CODE) + @JsonProperty(value = JSON_PROPERTY_AREA_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAreaCode(@jakarta.annotation.Nonnull Integer areaCode) { this.areaCode = areaCode; @@ -147,7 +147,7 @@ public FaxLineCreateRequest country(@jakarta.annotation.Nonnull CountryEnum coun * @return country */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public CountryEnum getCountry() { @@ -155,7 +155,7 @@ public CountryEnum getCountry() { } - @JsonProperty(JSON_PROPERTY_COUNTRY) + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCountry(@jakarta.annotation.Nonnull CountryEnum country) { this.country = country; @@ -172,7 +172,7 @@ public FaxLineCreateRequest city(@jakarta.annotation.Nullable String city) { * @return city */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CITY) + @JsonProperty(value = JSON_PROPERTY_CITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCity() { @@ -180,7 +180,7 @@ public String getCity() { } - @JsonProperty(JSON_PROPERTY_CITY) + @JsonProperty(value = JSON_PROPERTY_CITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCity(@jakarta.annotation.Nullable String city) { this.city = city; @@ -197,7 +197,7 @@ public FaxLineCreateRequest accountId(@jakarta.annotation.Nullable String accoun * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -205,7 +205,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -359,10 +359,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java b/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java index 21c1c35d..11ba27a4 100644 --- a/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java +++ b/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ FaxLineDeleteRequest.JSON_PROPERTY_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineDeleteRequest { public static final String JSON_PROPERTY_NUMBER = "number"; @@ -70,7 +70,7 @@ public FaxLineDeleteRequest number(@jakarta.annotation.Nonnull String number) { * @return number */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { @@ -78,7 +78,7 @@ public String getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull String number) { this.number = number; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java b/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java index 5454fa3b..fe685ea6 100644 --- a/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java +++ b/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java @@ -42,7 +42,7 @@ FaxLineListResponse.JSON_PROPERTY_FAX_LINES, FaxLineListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineListResponse { public static final String JSON_PROPERTY_LIST_INFO = "list_info"; @@ -85,7 +85,7 @@ public FaxLineListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -93,7 +93,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -118,7 +118,7 @@ public FaxLineListResponse addFaxLinesItem(FaxLineResponseFaxLine faxLinesItem) * @return faxLines */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAX_LINES) + @JsonProperty(value = JSON_PROPERTY_FAX_LINES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getFaxLines() { @@ -126,7 +126,7 @@ public List getFaxLines() { } - @JsonProperty(JSON_PROPERTY_FAX_LINES) + @JsonProperty(value = JSON_PROPERTY_FAX_LINES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFaxLines(@jakarta.annotation.Nonnull List faxLines) { this.faxLines = faxLines; @@ -143,7 +143,7 @@ public FaxLineListResponse warnings(@jakarta.annotation.Nullable WarningResponse * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public WarningResponse getWarnings() { @@ -151,7 +151,7 @@ public WarningResponse getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable WarningResponse warnings) { this.warnings = warnings; @@ -284,10 +284,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java b/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java index 6ab55bbd..cb0905f6 100644 --- a/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java +++ b/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java @@ -37,7 +37,7 @@ FaxLineRemoveUserRequest.JSON_PROPERTY_ACCOUNT_ID, FaxLineRemoveUserRequest.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineRemoveUserRequest { public static final String JSON_PROPERTY_NUMBER = "number"; @@ -80,7 +80,7 @@ public FaxLineRemoveUserRequest number(@jakarta.annotation.Nonnull String number * @return number */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { @@ -88,7 +88,7 @@ public String getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull String number) { this.number = number; @@ -105,7 +105,7 @@ public FaxLineRemoveUserRequest accountId(@jakarta.annotation.Nullable String ac * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -113,7 +113,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -130,7 +130,7 @@ public FaxLineRemoveUserRequest emailAddress(@jakarta.annotation.Nullable String * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -138,7 +138,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxLineResponse.java b/src/main/java/com/dropbox/sign/model/FaxLineResponse.java index 5430836d..2f49532d 100644 --- a/src/main/java/com/dropbox/sign/model/FaxLineResponse.java +++ b/src/main/java/com/dropbox/sign/model/FaxLineResponse.java @@ -38,7 +38,7 @@ FaxLineResponse.JSON_PROPERTY_FAX_LINE, FaxLineResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineResponse { public static final String JSON_PROPERTY_FAX_LINE = "fax_line"; @@ -77,7 +77,7 @@ public FaxLineResponse faxLine(@jakarta.annotation.Nonnull FaxLineResponseFaxLin * @return faxLine */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAX_LINE) + @JsonProperty(value = JSON_PROPERTY_FAX_LINE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public FaxLineResponseFaxLine getFaxLine() { @@ -85,7 +85,7 @@ public FaxLineResponseFaxLine getFaxLine() { } - @JsonProperty(JSON_PROPERTY_FAX_LINE) + @JsonProperty(value = JSON_PROPERTY_FAX_LINE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFaxLine(@jakarta.annotation.Nonnull FaxLineResponseFaxLine faxLine) { this.faxLine = faxLine; @@ -102,7 +102,7 @@ public FaxLineResponse warnings(@jakarta.annotation.Nullable WarningResponse war * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public WarningResponse getWarnings() { @@ -110,7 +110,7 @@ public WarningResponse getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable WarningResponse warnings) { this.warnings = warnings; @@ -222,10 +222,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java b/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java index a5aa7c7d..04f514ca 100644 --- a/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java +++ b/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java @@ -41,7 +41,7 @@ FaxLineResponseFaxLine.JSON_PROPERTY_UPDATED_AT, FaxLineResponseFaxLine.JSON_PROPERTY_ACCOUNTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineResponseFaxLine { public static final String JSON_PROPERTY_NUMBER = "number"; @@ -88,7 +88,7 @@ public FaxLineResponseFaxLine number(@jakarta.annotation.Nullable String number) * @return number */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNumber() { @@ -96,7 +96,7 @@ public String getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumber(@jakarta.annotation.Nullable String number) { this.number = number; @@ -113,7 +113,7 @@ public FaxLineResponseFaxLine createdAt(@jakarta.annotation.Nullable Integer cre * @return createdAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { @@ -121,7 +121,7 @@ public Integer getCreatedAt() { } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -138,7 +138,7 @@ public FaxLineResponseFaxLine updatedAt(@jakarta.annotation.Nullable Integer upd * @return updatedAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUpdatedAt() { @@ -146,7 +146,7 @@ public Integer getUpdatedAt() { } - @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUpdatedAt(@jakarta.annotation.Nullable Integer updatedAt) { this.updatedAt = updatedAt; @@ -171,7 +171,7 @@ public FaxLineResponseFaxLine addAccountsItem(AccountResponse accountsItem) { * @return accounts */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAccounts() { @@ -179,7 +179,7 @@ public List getAccounts() { } - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; @@ -333,10 +333,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxListResponse.java b/src/main/java/com/dropbox/sign/model/FaxListResponse.java index b5459096..2bb3b805 100644 --- a/src/main/java/com/dropbox/sign/model/FaxListResponse.java +++ b/src/main/java/com/dropbox/sign/model/FaxListResponse.java @@ -40,7 +40,7 @@ FaxListResponse.JSON_PROPERTY_FAXES, FaxListResponse.JSON_PROPERTY_LIST_INFO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxListResponse { public static final String JSON_PROPERTY_FAXES = "faxes"; @@ -87,7 +87,7 @@ public FaxListResponse addFaxesItem(FaxResponse faxesItem) { * @return faxes */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAXES) + @JsonProperty(value = JSON_PROPERTY_FAXES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getFaxes() { @@ -95,7 +95,7 @@ public List getFaxes() { } - @JsonProperty(JSON_PROPERTY_FAXES) + @JsonProperty(value = JSON_PROPERTY_FAXES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFaxes(@jakarta.annotation.Nonnull List faxes) { this.faxes = faxes; @@ -112,7 +112,7 @@ public FaxListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse lis * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -120,7 +120,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxResponse.java b/src/main/java/com/dropbox/sign/model/FaxResponse.java index 8b49f521..35933969 100644 --- a/src/main/java/com/dropbox/sign/model/FaxResponse.java +++ b/src/main/java/com/dropbox/sign/model/FaxResponse.java @@ -51,7 +51,7 @@ FaxResponse.JSON_PROPERTY_MESSAGE, FaxResponse.JSON_PROPERTY_FINAL_COPY_URI }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxResponse { public static final String JSON_PROPERTY_FAX_ID = "fax_id"; @@ -130,7 +130,7 @@ public FaxResponse faxId(@jakarta.annotation.Nonnull String faxId) { * @return faxId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAX_ID) + @JsonProperty(value = JSON_PROPERTY_FAX_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getFaxId() { @@ -138,7 +138,7 @@ public String getFaxId() { } - @JsonProperty(JSON_PROPERTY_FAX_ID) + @JsonProperty(value = JSON_PROPERTY_FAX_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFaxId(@jakarta.annotation.Nonnull String faxId) { this.faxId = faxId; @@ -155,7 +155,7 @@ public FaxResponse title(@jakarta.annotation.Nonnull String title) { * @return title */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTitle() { @@ -163,7 +163,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTitle(@jakarta.annotation.Nonnull String title) { this.title = title; @@ -180,7 +180,7 @@ public FaxResponse originalTitle(@jakarta.annotation.Nonnull String originalTitl * @return originalTitle */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getOriginalTitle() { @@ -188,7 +188,7 @@ public String getOriginalTitle() { } - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOriginalTitle(@jakarta.annotation.Nonnull String originalTitle) { this.originalTitle = originalTitle; @@ -213,7 +213,7 @@ public FaxResponse putMetadataItem(String key, Object metadataItem) { * @return metadata */ @jakarta.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() { @@ -221,7 +221,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) public void setMetadata(@jakarta.annotation.Nonnull Map metadata) { this.metadata = metadata; @@ -238,7 +238,7 @@ public FaxResponse createdAt(@jakarta.annotation.Nonnull Integer createdAt) { * @return createdAt */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getCreatedAt() { @@ -246,7 +246,7 @@ public Integer getCreatedAt() { } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCreatedAt(@jakarta.annotation.Nonnull Integer createdAt) { this.createdAt = createdAt; @@ -263,7 +263,7 @@ public FaxResponse sender(@jakarta.annotation.Nonnull String sender) { * @return sender */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SENDER) + @JsonProperty(value = JSON_PROPERTY_SENDER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSender() { @@ -271,7 +271,7 @@ public String getSender() { } - @JsonProperty(JSON_PROPERTY_SENDER) + @JsonProperty(value = JSON_PROPERTY_SENDER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSender(@jakarta.annotation.Nonnull String sender) { this.sender = sender; @@ -288,7 +288,7 @@ public FaxResponse filesUrl(@jakarta.annotation.Nonnull String filesUrl) { * @return filesUrl */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getFilesUrl() { @@ -296,7 +296,7 @@ public String getFilesUrl() { } - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFilesUrl(@jakarta.annotation.Nonnull String filesUrl) { this.filesUrl = filesUrl; @@ -321,7 +321,7 @@ public FaxResponse addTransmissionsItem(FaxResponseTransmission transmissionsIte * @return transmissions */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRANSMISSIONS) + @JsonProperty(value = JSON_PROPERTY_TRANSMISSIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTransmissions() { @@ -329,7 +329,7 @@ public List getTransmissions() { } - @JsonProperty(JSON_PROPERTY_TRANSMISSIONS) + @JsonProperty(value = JSON_PROPERTY_TRANSMISSIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTransmissions(@jakarta.annotation.Nonnull List transmissions) { this.transmissions = transmissions; @@ -346,7 +346,7 @@ public FaxResponse testMode(@jakarta.annotation.Nonnull Boolean testMode) { * @return testMode */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getTestMode() { @@ -354,7 +354,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTestMode(@jakarta.annotation.Nonnull Boolean testMode) { this.testMode = testMode; @@ -371,7 +371,7 @@ public FaxResponse subject(@jakarta.annotation.Nullable String subject) { * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -379,7 +379,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -396,7 +396,7 @@ public FaxResponse message(@jakarta.annotation.Nullable String message) { * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -404,7 +404,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -421,7 +421,7 @@ public FaxResponse finalCopyUri(@jakarta.annotation.Nullable String finalCopyUri * @return finalCopyUri */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFinalCopyUri() { @@ -429,7 +429,7 @@ public String getFinalCopyUri() { } - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFinalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; @@ -751,10 +751,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java b/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java index 2b350da4..0c0f7e30 100644 --- a/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java +++ b/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java @@ -37,7 +37,7 @@ FaxResponseTransmission.JSON_PROPERTY_STATUS_CODE, FaxResponseTransmission.JSON_PROPERTY_SENT_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxResponseTransmission { public static final String JSON_PROPERTY_RECIPIENT = "recipient"; @@ -127,7 +127,7 @@ public FaxResponseTransmission recipient(@jakarta.annotation.Nonnull String reci * @return recipient */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RECIPIENT) + @JsonProperty(value = JSON_PROPERTY_RECIPIENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRecipient() { @@ -135,7 +135,7 @@ public String getRecipient() { } - @JsonProperty(JSON_PROPERTY_RECIPIENT) + @JsonProperty(value = JSON_PROPERTY_RECIPIENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRecipient(@jakarta.annotation.Nonnull String recipient) { this.recipient = recipient; @@ -152,7 +152,7 @@ public FaxResponseTransmission statusCode(@jakarta.annotation.Nonnull StatusCode * @return statusCode */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS_CODE) + @JsonProperty(value = JSON_PROPERTY_STATUS_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public StatusCodeEnum getStatusCode() { @@ -160,7 +160,7 @@ public StatusCodeEnum getStatusCode() { } - @JsonProperty(JSON_PROPERTY_STATUS_CODE) + @JsonProperty(value = JSON_PROPERTY_STATUS_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStatusCode(@jakarta.annotation.Nonnull StatusCodeEnum statusCode) { this.statusCode = statusCode; @@ -177,7 +177,7 @@ public FaxResponseTransmission sentAt(@jakarta.annotation.Nullable Integer sentA * @return sentAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SENT_AT) + @JsonProperty(value = JSON_PROPERTY_SENT_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSentAt() { @@ -185,7 +185,7 @@ public Integer getSentAt() { } - @JsonProperty(JSON_PROPERTY_SENT_AT) + @JsonProperty(value = JSON_PROPERTY_SENT_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSentAt(@jakarta.annotation.Nullable Integer sentAt) { this.sentAt = sentAt; @@ -318,10 +318,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FaxSendRequest.java b/src/main/java/com/dropbox/sign/model/FaxSendRequest.java index 2978a4df..7cc72365 100644 --- a/src/main/java/com/dropbox/sign/model/FaxSendRequest.java +++ b/src/main/java/com/dropbox/sign/model/FaxSendRequest.java @@ -46,7 +46,7 @@ FaxSendRequest.JSON_PROPERTY_COVER_PAGE_MESSAGE, FaxSendRequest.JSON_PROPERTY_TITLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxSendRequest { public static final String JSON_PROPERTY_RECIPIENT = "recipient"; @@ -113,7 +113,7 @@ public FaxSendRequest recipient(@jakarta.annotation.Nonnull String recipient) { * @return recipient */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RECIPIENT) + @JsonProperty(value = JSON_PROPERTY_RECIPIENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRecipient() { @@ -121,7 +121,7 @@ public String getRecipient() { } - @JsonProperty(JSON_PROPERTY_RECIPIENT) + @JsonProperty(value = JSON_PROPERTY_RECIPIENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRecipient(@jakarta.annotation.Nonnull String recipient) { this.recipient = recipient; @@ -138,7 +138,7 @@ public FaxSendRequest sender(@jakarta.annotation.Nullable String sender) { * @return sender */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SENDER) + @JsonProperty(value = JSON_PROPERTY_SENDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSender() { @@ -146,7 +146,7 @@ public String getSender() { } - @JsonProperty(JSON_PROPERTY_SENDER) + @JsonProperty(value = JSON_PROPERTY_SENDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSender(@jakarta.annotation.Nullable String sender) { this.sender = sender; @@ -171,7 +171,7 @@ public FaxSendRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -179,7 +179,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -204,7 +204,7 @@ public FaxSendRequest addFileUrlsItem(String fileUrlsItem) { * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -212,7 +212,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -229,7 +229,7 @@ public FaxSendRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -237,7 +237,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -254,7 +254,7 @@ public FaxSendRequest coverPageTo(@jakarta.annotation.Nullable String coverPageT * @return coverPageTo */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COVER_PAGE_TO) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_TO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCoverPageTo() { @@ -262,7 +262,7 @@ public String getCoverPageTo() { } - @JsonProperty(JSON_PROPERTY_COVER_PAGE_TO) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_TO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCoverPageTo(@jakarta.annotation.Nullable String coverPageTo) { this.coverPageTo = coverPageTo; @@ -279,7 +279,7 @@ public FaxSendRequest coverPageFrom(@jakarta.annotation.Nullable String coverPag * @return coverPageFrom */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COVER_PAGE_FROM) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_FROM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCoverPageFrom() { @@ -287,7 +287,7 @@ public String getCoverPageFrom() { } - @JsonProperty(JSON_PROPERTY_COVER_PAGE_FROM) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_FROM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCoverPageFrom(@jakarta.annotation.Nullable String coverPageFrom) { this.coverPageFrom = coverPageFrom; @@ -304,7 +304,7 @@ public FaxSendRequest coverPageMessage(@jakarta.annotation.Nullable String cover * @return coverPageMessage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COVER_PAGE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCoverPageMessage() { @@ -312,7 +312,7 @@ public String getCoverPageMessage() { } - @JsonProperty(JSON_PROPERTY_COVER_PAGE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCoverPageMessage(@jakarta.annotation.Nullable String coverPageMessage) { this.coverPageMessage = coverPageMessage; @@ -329,7 +329,7 @@ public FaxSendRequest title(@jakarta.annotation.Nullable String title) { * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -337,7 +337,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -596,10 +596,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FileResponse.java b/src/main/java/com/dropbox/sign/model/FileResponse.java index aa5f04e7..c70b2953 100644 --- a/src/main/java/com/dropbox/sign/model/FileResponse.java +++ b/src/main/java/com/dropbox/sign/model/FileResponse.java @@ -36,7 +36,7 @@ FileResponse.JSON_PROPERTY_FILE_URL, FileResponse.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FileResponse { public static final String JSON_PROPERTY_FILE_URL = "file_url"; @@ -75,7 +75,7 @@ public FileResponse fileUrl(@jakarta.annotation.Nonnull String fileUrl) { * @return fileUrl */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FILE_URL) + @JsonProperty(value = JSON_PROPERTY_FILE_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getFileUrl() { @@ -83,7 +83,7 @@ public String getFileUrl() { } - @JsonProperty(JSON_PROPERTY_FILE_URL) + @JsonProperty(value = JSON_PROPERTY_FILE_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFileUrl(@jakarta.annotation.Nonnull String fileUrl) { this.fileUrl = fileUrl; @@ -100,7 +100,7 @@ public FileResponse expiresAt(@jakarta.annotation.Nonnull Integer expiresAt) { * @return expiresAt */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getExpiresAt() { @@ -108,7 +108,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setExpiresAt(@jakarta.annotation.Nonnull Integer expiresAt) { this.expiresAt = expiresAt; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java b/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java index fcabc19c..c78b8772 100644 --- a/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java +++ b/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ FileResponseDataUri.JSON_PROPERTY_DATA_URI }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FileResponseDataUri { public static final String JSON_PROPERTY_DATA_URI = "data_uri"; @@ -70,7 +70,7 @@ public FileResponseDataUri dataUri(@jakarta.annotation.Nonnull String dataUri) { * @return dataUri */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA_URI) + @JsonProperty(value = JSON_PROPERTY_DATA_URI, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDataUri() { @@ -78,7 +78,7 @@ public String getDataUri() { } - @JsonProperty(JSON_PROPERTY_DATA_URI) + @JsonProperty(value = JSON_PROPERTY_DATA_URI, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDataUri(@jakarta.annotation.Nonnull String dataUri) { this.dataUri = dataUri; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ListInfoResponse.java b/src/main/java/com/dropbox/sign/model/ListInfoResponse.java index c0709757..5d6802c2 100644 --- a/src/main/java/com/dropbox/sign/model/ListInfoResponse.java +++ b/src/main/java/com/dropbox/sign/model/ListInfoResponse.java @@ -38,7 +38,7 @@ ListInfoResponse.JSON_PROPERTY_PAGE, ListInfoResponse.JSON_PROPERTY_PAGE_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ListInfoResponse { public static final String JSON_PROPERTY_NUM_PAGES = "num_pages"; @@ -85,7 +85,7 @@ public ListInfoResponse numPages(@jakarta.annotation.Nullable Integer numPages) * @return numPages */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUM_PAGES) + @JsonProperty(value = JSON_PROPERTY_NUM_PAGES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumPages() { @@ -93,7 +93,7 @@ public Integer getNumPages() { } - @JsonProperty(JSON_PROPERTY_NUM_PAGES) + @JsonProperty(value = JSON_PROPERTY_NUM_PAGES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumPages(@jakarta.annotation.Nullable Integer numPages) { this.numPages = numPages; @@ -110,7 +110,7 @@ public ListInfoResponse numResults(@jakarta.annotation.Nullable Integer numResul * @return numResults */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUM_RESULTS) + @JsonProperty(value = JSON_PROPERTY_NUM_RESULTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumResults() { @@ -118,7 +118,7 @@ public Integer getNumResults() { } - @JsonProperty(JSON_PROPERTY_NUM_RESULTS) + @JsonProperty(value = JSON_PROPERTY_NUM_RESULTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumResults(@jakarta.annotation.Nullable Integer numResults) { this.numResults = numResults; @@ -135,7 +135,7 @@ public ListInfoResponse page(@jakarta.annotation.Nullable Integer page) { * @return page */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAGE) + @JsonProperty(value = JSON_PROPERTY_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPage() { @@ -143,7 +143,7 @@ public Integer getPage() { } - @JsonProperty(JSON_PROPERTY_PAGE) + @JsonProperty(value = JSON_PROPERTY_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPage(@jakarta.annotation.Nullable Integer page) { this.page = page; @@ -160,7 +160,7 @@ public ListInfoResponse pageSize(@jakarta.annotation.Nullable Integer pageSize) * @return pageSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAGE_SIZE) + @JsonProperty(value = JSON_PROPERTY_PAGE_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPageSize() { @@ -168,7 +168,7 @@ public Integer getPageSize() { } - @JsonProperty(JSON_PROPERTY_PAGE_SIZE) + @JsonProperty(value = JSON_PROPERTY_PAGE_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPageSize(@jakarta.annotation.Nullable Integer pageSize) { this.pageSize = pageSize; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java b/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java index bd6324a5..6ea286a3 100644 --- a/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java +++ b/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java @@ -39,7 +39,7 @@ OAuthTokenGenerateRequest.JSON_PROPERTY_GRANT_TYPE, OAuthTokenGenerateRequest.JSON_PROPERTY_STATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class OAuthTokenGenerateRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -90,7 +90,7 @@ public OAuthTokenGenerateRequest clientId(@jakarta.annotation.Nonnull String cli * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -98,7 +98,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -115,7 +115,7 @@ public OAuthTokenGenerateRequest clientSecret(@jakarta.annotation.Nonnull String * @return clientSecret */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientSecret() { @@ -123,7 +123,7 @@ public String getClientSecret() { } - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientSecret(@jakarta.annotation.Nonnull String clientSecret) { this.clientSecret = clientSecret; @@ -140,7 +140,7 @@ public OAuthTokenGenerateRequest code(@jakarta.annotation.Nonnull String code) { * @return code */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCode() { @@ -148,7 +148,7 @@ public String getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; @@ -165,7 +165,7 @@ public OAuthTokenGenerateRequest grantType(@jakarta.annotation.Nonnull String gr * @return grantType */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GRANT_TYPE) + @JsonProperty(value = JSON_PROPERTY_GRANT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGrantType() { @@ -173,7 +173,7 @@ public String getGrantType() { } - @JsonProperty(JSON_PROPERTY_GRANT_TYPE) + @JsonProperty(value = JSON_PROPERTY_GRANT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGrantType(@jakarta.annotation.Nonnull String grantType) { this.grantType = grantType; @@ -190,7 +190,7 @@ public OAuthTokenGenerateRequest state(@jakarta.annotation.Nonnull String state) * @return state */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATE) + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getState() { @@ -198,7 +198,7 @@ public String getState() { } - @JsonProperty(JSON_PROPERTY_STATE) + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setState(@jakarta.annotation.Nonnull String state) { this.state = state; @@ -373,10 +373,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java b/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java index 3a059a06..82ce6986 100644 --- a/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java +++ b/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java @@ -38,7 +38,7 @@ OAuthTokenRefreshRequest.JSON_PROPERTY_CLIENT_ID, OAuthTokenRefreshRequest.JSON_PROPERTY_CLIENT_SECRET }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class OAuthTokenRefreshRequest { public static final String JSON_PROPERTY_GRANT_TYPE = "grant_type"; @@ -85,7 +85,7 @@ public OAuthTokenRefreshRequest grantType(@jakarta.annotation.Nonnull String gra * @return grantType */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GRANT_TYPE) + @JsonProperty(value = JSON_PROPERTY_GRANT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGrantType() { @@ -93,7 +93,7 @@ public String getGrantType() { } - @JsonProperty(JSON_PROPERTY_GRANT_TYPE) + @JsonProperty(value = JSON_PROPERTY_GRANT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGrantType(@jakarta.annotation.Nonnull String grantType) { this.grantType = grantType; @@ -110,7 +110,7 @@ public OAuthTokenRefreshRequest refreshToken(@jakarta.annotation.Nonnull String * @return refreshToken */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonProperty(value = JSON_PROPERTY_REFRESH_TOKEN, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRefreshToken() { @@ -118,7 +118,7 @@ public String getRefreshToken() { } - @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonProperty(value = JSON_PROPERTY_REFRESH_TOKEN, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRefreshToken(@jakarta.annotation.Nonnull String refreshToken) { this.refreshToken = refreshToken; @@ -135,7 +135,7 @@ public OAuthTokenRefreshRequest clientId(@jakarta.annotation.Nullable String cli * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -143,7 +143,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -160,7 +160,7 @@ public OAuthTokenRefreshRequest clientSecret(@jakarta.annotation.Nullable String * @return clientSecret */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientSecret() { @@ -168,7 +168,7 @@ public String getClientSecret() { } - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientSecret(@jakarta.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java b/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java index 84469391..129c4324 100644 --- a/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java +++ b/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java @@ -39,7 +39,7 @@ OAuthTokenResponse.JSON_PROPERTY_EXPIRES_IN, OAuthTokenResponse.JSON_PROPERTY_STATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class OAuthTokenResponse { public static final String JSON_PROPERTY_ACCESS_TOKEN = "access_token"; @@ -90,7 +90,7 @@ public OAuthTokenResponse accessToken(@jakarta.annotation.Nullable String access * @return accessToken */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCESS_TOKEN) + @JsonProperty(value = JSON_PROPERTY_ACCESS_TOKEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccessToken() { @@ -98,7 +98,7 @@ public String getAccessToken() { } - @JsonProperty(JSON_PROPERTY_ACCESS_TOKEN) + @JsonProperty(value = JSON_PROPERTY_ACCESS_TOKEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccessToken(@jakarta.annotation.Nullable String accessToken) { this.accessToken = accessToken; @@ -115,7 +115,7 @@ public OAuthTokenResponse tokenType(@jakarta.annotation.Nullable String tokenTyp * @return tokenType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) + @JsonProperty(value = JSON_PROPERTY_TOKEN_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTokenType() { @@ -123,7 +123,7 @@ public String getTokenType() { } - @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) + @JsonProperty(value = JSON_PROPERTY_TOKEN_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTokenType(@jakarta.annotation.Nullable String tokenType) { this.tokenType = tokenType; @@ -140,7 +140,7 @@ public OAuthTokenResponse refreshToken(@jakarta.annotation.Nullable String refre * @return refreshToken */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonProperty(value = JSON_PROPERTY_REFRESH_TOKEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRefreshToken() { @@ -148,7 +148,7 @@ public String getRefreshToken() { } - @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonProperty(value = JSON_PROPERTY_REFRESH_TOKEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRefreshToken(@jakarta.annotation.Nullable String refreshToken) { this.refreshToken = refreshToken; @@ -165,7 +165,7 @@ public OAuthTokenResponse expiresIn(@jakarta.annotation.Nullable Integer expires * @return expiresIn */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_IN) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_IN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresIn() { @@ -173,7 +173,7 @@ public Integer getExpiresIn() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_IN) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_IN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresIn(@jakarta.annotation.Nullable Integer expiresIn) { this.expiresIn = expiresIn; @@ -190,7 +190,7 @@ public OAuthTokenResponse state(@jakarta.annotation.Nullable String state) { * @return state */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATE) + @JsonProperty(value = JSON_PROPERTY_STATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getState() { @@ -198,7 +198,7 @@ public String getState() { } - @JsonProperty(JSON_PROPERTY_STATE) + @JsonProperty(value = JSON_PROPERTY_STATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setState(@jakarta.annotation.Nullable String state) { this.state = state; @@ -373,10 +373,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java b/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java index d2c1dbf7..0172efad 100644 --- a/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java @@ -39,7 +39,7 @@ ReportCreateRequest.JSON_PROPERTY_REPORT_TYPE, ReportCreateRequest.JSON_PROPERTY_START_DATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ReportCreateRequest { public static final String JSON_PROPERTY_END_DATE = "end_date"; @@ -121,7 +121,7 @@ public ReportCreateRequest endDate(@jakarta.annotation.Nonnull String endDate) { * @return endDate */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonProperty(value = JSON_PROPERTY_END_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEndDate() { @@ -129,7 +129,7 @@ public String getEndDate() { } - @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonProperty(value = JSON_PROPERTY_END_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEndDate(@jakarta.annotation.Nonnull String endDate) { this.endDate = endDate; @@ -154,7 +154,7 @@ public ReportCreateRequest addReportTypeItem(ReportTypeEnum reportTypeItem) { * @return reportType */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REPORT_TYPE) + @JsonProperty(value = JSON_PROPERTY_REPORT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getReportType() { @@ -162,7 +162,7 @@ public List getReportType() { } - @JsonProperty(JSON_PROPERTY_REPORT_TYPE) + @JsonProperty(value = JSON_PROPERTY_REPORT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setReportType(@jakarta.annotation.Nonnull List reportType) { this.reportType = reportType; @@ -179,7 +179,7 @@ public ReportCreateRequest startDate(@jakarta.annotation.Nonnull String startDat * @return startDate */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonProperty(value = JSON_PROPERTY_START_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStartDate() { @@ -187,7 +187,7 @@ public String getStartDate() { } - @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonProperty(value = JSON_PROPERTY_START_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStartDate(@jakarta.annotation.Nonnull String startDate) { this.startDate = startDate; @@ -320,10 +320,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java b/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java index 0ca150bf..1af3e2e4 100644 --- a/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java +++ b/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java @@ -40,7 +40,7 @@ ReportCreateResponse.JSON_PROPERTY_REPORT, ReportCreateResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ReportCreateResponse { public static final String JSON_PROPERTY_REPORT = "report"; @@ -79,7 +79,7 @@ public ReportCreateResponse report(@jakarta.annotation.Nonnull ReportResponse re * @return report */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REPORT) + @JsonProperty(value = JSON_PROPERTY_REPORT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ReportResponse getReport() { @@ -87,7 +87,7 @@ public ReportResponse getReport() { } - @JsonProperty(JSON_PROPERTY_REPORT) + @JsonProperty(value = JSON_PROPERTY_REPORT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setReport(@jakarta.annotation.Nonnull ReportResponse report) { this.report = report; @@ -112,7 +112,7 @@ public ReportCreateResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/ReportResponse.java b/src/main/java/com/dropbox/sign/model/ReportResponse.java index 0299b45d..7c834a43 100644 --- a/src/main/java/com/dropbox/sign/model/ReportResponse.java +++ b/src/main/java/com/dropbox/sign/model/ReportResponse.java @@ -40,7 +40,7 @@ ReportResponse.JSON_PROPERTY_END_DATE, ReportResponse.JSON_PROPERTY_REPORT_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ReportResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; @@ -126,7 +126,7 @@ public ReportResponse success(@jakarta.annotation.Nullable String success) { * @return success */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuccess() { @@ -134,7 +134,7 @@ public String getSuccess() { } - @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSuccess(@jakarta.annotation.Nullable String success) { this.success = success; @@ -151,7 +151,7 @@ public ReportResponse startDate(@jakarta.annotation.Nullable String startDate) { * @return startDate */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonProperty(value = JSON_PROPERTY_START_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStartDate() { @@ -159,7 +159,7 @@ public String getStartDate() { } - @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonProperty(value = JSON_PROPERTY_START_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStartDate(@jakarta.annotation.Nullable String startDate) { this.startDate = startDate; @@ -176,7 +176,7 @@ public ReportResponse endDate(@jakarta.annotation.Nullable String endDate) { * @return endDate */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonProperty(value = JSON_PROPERTY_END_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEndDate() { @@ -184,7 +184,7 @@ public String getEndDate() { } - @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonProperty(value = JSON_PROPERTY_END_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEndDate(@jakarta.annotation.Nullable String endDate) { this.endDate = endDate; @@ -209,7 +209,7 @@ public ReportResponse addReportTypeItem(ReportTypeEnum reportTypeItem) { * @return reportType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REPORT_TYPE) + @JsonProperty(value = JSON_PROPERTY_REPORT_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getReportType() { @@ -217,7 +217,7 @@ public List getReportType() { } - @JsonProperty(JSON_PROPERTY_REPORT_TYPE) + @JsonProperty(value = JSON_PROPERTY_REPORT_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReportType(@jakarta.annotation.Nullable List reportType) { this.reportType = reportType; @@ -371,10 +371,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java index 6086d757..19247ff4 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java @@ -56,7 +56,7 @@ SignatureRequestBulkCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_TITLE, SignatureRequestBulkCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestBulkCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -151,7 +151,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest addTemplateIdsItem( * @return templateIds */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { @@ -159,7 +159,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -176,7 +176,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest clientId(@jakarta.a * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -184,7 +184,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -201,7 +201,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signerFile(@jakarta * @return signerFile */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_FILE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getSignerFile() { @@ -209,7 +209,7 @@ public File getSignerFile() { } - @JsonProperty(JSON_PROPERTY_SIGNER_FILE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerFile(@jakarta.annotation.Nullable File signerFile) { this.signerFile = signerFile; @@ -234,7 +234,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest addSignerListItem(S * @return signerList */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_LIST) + @JsonProperty(value = JSON_PROPERTY_SIGNER_LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignerList() { @@ -242,7 +242,7 @@ public List getSignerList() { } - @JsonProperty(JSON_PROPERTY_SIGNER_LIST) + @JsonProperty(value = JSON_PROPERTY_SIGNER_LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerList(@jakarta.annotation.Nullable List signerList) { this.signerList = signerList; @@ -259,7 +259,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest allowDecline(@jakar * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -267,7 +267,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -292,7 +292,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest addCcsItem(SubCC cc * @return ccs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { @@ -300,7 +300,7 @@ public List getCcs() { } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; @@ -325,7 +325,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest addCustomFieldsItem * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -333,7 +333,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -350,7 +350,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest message(@jakarta.an * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -358,7 +358,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -383,7 +383,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest putMetadataItem(Str * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -391,7 +391,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -408,7 +408,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signingRedirectUrl( * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -416,7 +416,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -433,7 +433,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest subject(@jakarta.an * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -441,7 +441,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -458,7 +458,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest testMode(@jakarta.a * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -466,7 +466,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -483,7 +483,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest title(@jakarta.anno * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -491,7 +491,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -508,7 +508,7 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest expiresAt(@jakarta. * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -516,7 +516,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -880,10 +880,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java index 000984aa..4601206b 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java @@ -56,7 +56,7 @@ SignatureRequestBulkSendWithTemplateRequest.JSON_PROPERTY_TITLE, SignatureRequestBulkSendWithTemplateRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestBulkSendWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -151,7 +151,7 @@ public SignatureRequestBulkSendWithTemplateRequest addTemplateIdsItem(String tem * @return templateIds */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { @@ -159,7 +159,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -176,7 +176,7 @@ public SignatureRequestBulkSendWithTemplateRequest signerFile(@jakarta.annotatio * @return signerFile */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_FILE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getSignerFile() { @@ -184,7 +184,7 @@ public File getSignerFile() { } - @JsonProperty(JSON_PROPERTY_SIGNER_FILE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerFile(@jakarta.annotation.Nullable File signerFile) { this.signerFile = signerFile; @@ -209,7 +209,7 @@ public SignatureRequestBulkSendWithTemplateRequest addSignerListItem(SubBulkSign * @return signerList */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_LIST) + @JsonProperty(value = JSON_PROPERTY_SIGNER_LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignerList() { @@ -217,7 +217,7 @@ public List getSignerList() { } - @JsonProperty(JSON_PROPERTY_SIGNER_LIST) + @JsonProperty(value = JSON_PROPERTY_SIGNER_LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerList(@jakarta.annotation.Nullable List signerList) { this.signerList = signerList; @@ -234,7 +234,7 @@ public SignatureRequestBulkSendWithTemplateRequest allowDecline(@jakarta.annotat * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -242,7 +242,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -267,7 +267,7 @@ public SignatureRequestBulkSendWithTemplateRequest addCcsItem(SubCC ccsItem) { * @return ccs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { @@ -275,7 +275,7 @@ public List getCcs() { } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; @@ -292,7 +292,7 @@ public SignatureRequestBulkSendWithTemplateRequest clientId(@jakarta.annotation. * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -300,7 +300,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -325,7 +325,7 @@ public SignatureRequestBulkSendWithTemplateRequest addCustomFieldsItem(SubCustom * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -333,7 +333,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -350,7 +350,7 @@ public SignatureRequestBulkSendWithTemplateRequest message(@jakarta.annotation.N * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -358,7 +358,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -383,7 +383,7 @@ public SignatureRequestBulkSendWithTemplateRequest putMetadataItem(String key, O * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -391,7 +391,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -408,7 +408,7 @@ public SignatureRequestBulkSendWithTemplateRequest signingRedirectUrl(@jakarta.a * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -416,7 +416,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -433,7 +433,7 @@ public SignatureRequestBulkSendWithTemplateRequest subject(@jakarta.annotation.N * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -441,7 +441,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -458,7 +458,7 @@ public SignatureRequestBulkSendWithTemplateRequest testMode(@jakarta.annotation. * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -466,7 +466,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -483,7 +483,7 @@ public SignatureRequestBulkSendWithTemplateRequest title(@jakarta.annotation.Nul * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -491,7 +491,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -508,7 +508,7 @@ public SignatureRequestBulkSendWithTemplateRequest expiresAt(@jakarta.annotation * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -516,7 +516,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -880,10 +880,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java index ef2c003f..dea5be98 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java @@ -73,7 +73,7 @@ SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestCreateEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -204,7 +204,7 @@ public SignatureRequestCreateEmbeddedRequest clientId(@jakarta.annotation.Nonnul * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -212,7 +212,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -237,7 +237,7 @@ public SignatureRequestCreateEmbeddedRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -245,7 +245,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -270,7 +270,7 @@ public SignatureRequestCreateEmbeddedRequest addFileUrlsItem(String fileUrlsItem * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -278,7 +278,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -303,7 +303,7 @@ public SignatureRequestCreateEmbeddedRequest addSignersItem(SubSignatureRequestS * @return signers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { @@ -311,7 +311,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; @@ -336,7 +336,7 @@ public SignatureRequestCreateEmbeddedRequest addGroupedSignersItem(SubSignatureR * @return groupedSigners */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getGroupedSigners() { @@ -344,7 +344,7 @@ public List getGroupedSigners() { } - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; @@ -361,7 +361,7 @@ public SignatureRequestCreateEmbeddedRequest allowDecline(@jakarta.annotation.Nu * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -369,7 +369,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -386,7 +386,7 @@ public SignatureRequestCreateEmbeddedRequest allowReassign(@jakarta.annotation.N * @return allowReassign */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { @@ -394,7 +394,7 @@ public Boolean getAllowReassign() { } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -419,7 +419,7 @@ public SignatureRequestCreateEmbeddedRequest addAttachmentsItem(SubAttachment at * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -427,7 +427,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -452,7 +452,7 @@ public SignatureRequestCreateEmbeddedRequest addCcEmailAddressesItem(String ccEm * @return ccEmailAddresses */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { @@ -460,7 +460,7 @@ public List getCcEmailAddresses() { } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -485,7 +485,7 @@ public SignatureRequestCreateEmbeddedRequest addCustomFieldsItem(SubCustomField * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -493,7 +493,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -510,7 +510,7 @@ public SignatureRequestCreateEmbeddedRequest fieldOptions(@jakarta.annotation.Nu * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -518,7 +518,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -543,7 +543,7 @@ public SignatureRequestCreateEmbeddedRequest addFormFieldGroupsItem(SubFormField * @return formFieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { @@ -551,7 +551,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -576,7 +576,7 @@ public SignatureRequestCreateEmbeddedRequest addFormFieldRulesItem(SubFormFieldR * @return formFieldRules */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { @@ -584,7 +584,7 @@ public List getFormFieldRules() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; @@ -609,7 +609,7 @@ public SignatureRequestCreateEmbeddedRequest addFormFieldsPerDocumentItem(SubFor * @return formFieldsPerDocument */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { @@ -617,7 +617,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -634,7 +634,7 @@ public SignatureRequestCreateEmbeddedRequest hideTextTags(@jakarta.annotation.Nu * @return hideTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { @@ -642,7 +642,7 @@ public Boolean getHideTextTags() { } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -659,7 +659,7 @@ public SignatureRequestCreateEmbeddedRequest message(@jakarta.annotation.Nullabl * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -667,7 +667,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -692,7 +692,7 @@ public SignatureRequestCreateEmbeddedRequest putMetadataItem(String key, Object * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -700,7 +700,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -717,7 +717,7 @@ public SignatureRequestCreateEmbeddedRequest signingOptions(@jakarta.annotation. * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -725,7 +725,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -742,7 +742,7 @@ public SignatureRequestCreateEmbeddedRequest subject(@jakarta.annotation.Nullabl * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -750,7 +750,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -767,7 +767,7 @@ public SignatureRequestCreateEmbeddedRequest testMode(@jakarta.annotation.Nullab * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -775,7 +775,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -792,7 +792,7 @@ public SignatureRequestCreateEmbeddedRequest title(@jakarta.annotation.Nullable * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -800,7 +800,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -817,7 +817,7 @@ public SignatureRequestCreateEmbeddedRequest useTextTags(@jakarta.annotation.Nul * @return useTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { @@ -825,7 +825,7 @@ public Boolean getUseTextTags() { } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -842,7 +842,7 @@ public SignatureRequestCreateEmbeddedRequest ignoreTextTagsExtractionErrors(@jak * @return ignoreTextTagsExtractionErrors */ @jakarta.annotation.Nullable - @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 Boolean getIgnoreTextTagsExtractionErrors() { @@ -850,7 +850,7 @@ public Boolean getIgnoreTextTagsExtractionErrors() { } - @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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; @@ -867,7 +867,7 @@ public SignatureRequestCreateEmbeddedRequest populateAutoFillFields(@jakarta.ann * @return populateAutoFillFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { @@ -875,7 +875,7 @@ public Boolean getPopulateAutoFillFields() { } - @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(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -892,7 +892,7 @@ public SignatureRequestCreateEmbeddedRequest expiresAt(@jakarta.annotation.Nulla * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -900,7 +900,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1495,10 +1495,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java index f42766ab..2207e017 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java @@ -59,7 +59,7 @@ SignatureRequestCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -162,7 +162,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addTemplateIdsItem(Stri * @return templateIds */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { @@ -170,7 +170,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -187,7 +187,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest clientId(@jakarta.annot * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -195,7 +195,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -220,7 +220,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addSignersItem(SubSigna * @return signers */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { @@ -228,7 +228,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; @@ -245,7 +245,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest allowDecline(@jakarta.a * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -253,7 +253,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -278,7 +278,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addCcsItem(SubCC ccsIte * @return ccs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { @@ -286,7 +286,7 @@ public List getCcs() { } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; @@ -311,7 +311,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addCustomFieldsItem(Sub * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -319,7 +319,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -344,7 +344,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addFilesItem(File files * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -352,7 +352,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -377,7 +377,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addFileUrlsItem(String * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -385,7 +385,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -402,7 +402,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest message(@jakarta.annota * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -410,7 +410,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -435,7 +435,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest putMetadataItem(String * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -443,7 +443,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -460,7 +460,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest signingOptions(@jakarta * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -468,7 +468,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -485,7 +485,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest subject(@jakarta.annota * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -493,7 +493,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -510,7 +510,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest testMode(@jakarta.annot * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -518,7 +518,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -535,7 +535,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest title(@jakarta.annotati * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -543,7 +543,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -560,7 +560,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest populateAutoFillFields( * @return populateAutoFillFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { @@ -568,7 +568,7 @@ public Boolean getPopulateAutoFillFields() { } - @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(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -585,7 +585,7 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest expiresAt(@jakarta.anno * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -593,7 +593,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -999,10 +999,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java index 67cae5be..d9e7a2fd 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java @@ -73,7 +73,7 @@ SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestEditEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -204,7 +204,7 @@ public SignatureRequestEditEmbeddedRequest clientId(@jakarta.annotation.Nonnull * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -212,7 +212,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -237,7 +237,7 @@ public SignatureRequestEditEmbeddedRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -245,7 +245,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -270,7 +270,7 @@ public SignatureRequestEditEmbeddedRequest addFileUrlsItem(String fileUrlsItem) * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -278,7 +278,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -303,7 +303,7 @@ public SignatureRequestEditEmbeddedRequest addSignersItem(SubSignatureRequestSig * @return signers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { @@ -311,7 +311,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; @@ -336,7 +336,7 @@ public SignatureRequestEditEmbeddedRequest addGroupedSignersItem(SubSignatureReq * @return groupedSigners */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getGroupedSigners() { @@ -344,7 +344,7 @@ public List getGroupedSigners() { } - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; @@ -361,7 +361,7 @@ public SignatureRequestEditEmbeddedRequest allowDecline(@jakarta.annotation.Null * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -369,7 +369,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -386,7 +386,7 @@ public SignatureRequestEditEmbeddedRequest allowReassign(@jakarta.annotation.Nul * @return allowReassign */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { @@ -394,7 +394,7 @@ public Boolean getAllowReassign() { } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -419,7 +419,7 @@ public SignatureRequestEditEmbeddedRequest addAttachmentsItem(SubAttachment atta * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -427,7 +427,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -452,7 +452,7 @@ public SignatureRequestEditEmbeddedRequest addCcEmailAddressesItem(String ccEmai * @return ccEmailAddresses */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { @@ -460,7 +460,7 @@ public List getCcEmailAddresses() { } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -485,7 +485,7 @@ public SignatureRequestEditEmbeddedRequest addCustomFieldsItem(SubCustomField cu * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -493,7 +493,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -510,7 +510,7 @@ public SignatureRequestEditEmbeddedRequest fieldOptions(@jakarta.annotation.Null * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -518,7 +518,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -543,7 +543,7 @@ public SignatureRequestEditEmbeddedRequest addFormFieldGroupsItem(SubFormFieldGr * @return formFieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { @@ -551,7 +551,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -576,7 +576,7 @@ public SignatureRequestEditEmbeddedRequest addFormFieldRulesItem(SubFormFieldRul * @return formFieldRules */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { @@ -584,7 +584,7 @@ public List getFormFieldRules() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; @@ -609,7 +609,7 @@ public SignatureRequestEditEmbeddedRequest addFormFieldsPerDocumentItem(SubFormF * @return formFieldsPerDocument */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { @@ -617,7 +617,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -634,7 +634,7 @@ public SignatureRequestEditEmbeddedRequest hideTextTags(@jakarta.annotation.Null * @return hideTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { @@ -642,7 +642,7 @@ public Boolean getHideTextTags() { } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -659,7 +659,7 @@ public SignatureRequestEditEmbeddedRequest message(@jakarta.annotation.Nullable * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -667,7 +667,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -692,7 +692,7 @@ public SignatureRequestEditEmbeddedRequest putMetadataItem(String key, Object me * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -700,7 +700,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -717,7 +717,7 @@ public SignatureRequestEditEmbeddedRequest signingOptions(@jakarta.annotation.Nu * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -725,7 +725,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -742,7 +742,7 @@ public SignatureRequestEditEmbeddedRequest subject(@jakarta.annotation.Nullable * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -750,7 +750,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -767,7 +767,7 @@ public SignatureRequestEditEmbeddedRequest testMode(@jakarta.annotation.Nullable * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -775,7 +775,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -792,7 +792,7 @@ public SignatureRequestEditEmbeddedRequest title(@jakarta.annotation.Nullable St * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -800,7 +800,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -817,7 +817,7 @@ public SignatureRequestEditEmbeddedRequest useTextTags(@jakarta.annotation.Nulla * @return useTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { @@ -825,7 +825,7 @@ public Boolean getUseTextTags() { } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -842,7 +842,7 @@ public SignatureRequestEditEmbeddedRequest ignoreTextTagsExtractionErrors(@jakar * @return ignoreTextTagsExtractionErrors */ @jakarta.annotation.Nullable - @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 Boolean getIgnoreTextTagsExtractionErrors() { @@ -850,7 +850,7 @@ public Boolean getIgnoreTextTagsExtractionErrors() { } - @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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; @@ -867,7 +867,7 @@ public SignatureRequestEditEmbeddedRequest populateAutoFillFields(@jakarta.annot * @return populateAutoFillFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { @@ -875,7 +875,7 @@ public Boolean getPopulateAutoFillFields() { } - @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(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -892,7 +892,7 @@ public SignatureRequestEditEmbeddedRequest expiresAt(@jakarta.annotation.Nullabl * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -900,7 +900,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1495,10 +1495,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java index af702922..b13f3748 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java @@ -58,7 +58,7 @@ SignatureRequestEditEmbeddedWithTemplateRequest.JSON_PROPERTY_TITLE, SignatureRequestEditEmbeddedWithTemplateRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestEditEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -157,7 +157,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addTemplateIdsItem(String * @return templateIds */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { @@ -165,7 +165,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -182,7 +182,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest clientId(@jakarta.annotat * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -190,7 +190,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -215,7 +215,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addSignersItem(SubSignatu * @return signers */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { @@ -223,7 +223,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; @@ -240,7 +240,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest allowDecline(@jakarta.ann * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -248,7 +248,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -273,7 +273,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addCcsItem(SubCC ccsItem) * @return ccs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { @@ -281,7 +281,7 @@ public List getCcs() { } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; @@ -306,7 +306,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addCustomFieldsItem(SubCu * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -314,7 +314,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -339,7 +339,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addFilesItem(File filesIt * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -347,7 +347,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -372,7 +372,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addFileUrlsItem(String fi * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -380,7 +380,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -397,7 +397,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest message(@jakarta.annotati * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -405,7 +405,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -430,7 +430,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest putMetadataItem(String ke * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -438,7 +438,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -455,7 +455,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest signingOptions(@jakarta.a * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -463,7 +463,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -480,7 +480,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest subject(@jakarta.annotati * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -488,7 +488,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -505,7 +505,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest testMode(@jakarta.annotat * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -513,7 +513,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -530,7 +530,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest title(@jakarta.annotation * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -538,7 +538,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -555,7 +555,7 @@ public SignatureRequestEditEmbeddedWithTemplateRequest populateAutoFillFields(@j * @return populateAutoFillFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { @@ -563,7 +563,7 @@ public Boolean getPopulateAutoFillFields() { } - @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(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -948,10 +948,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java index 719186ce..55b11cd1 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java @@ -74,7 +74,7 @@ SignatureRequestEditRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestEditRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestEditRequest { public static final String JSON_PROPERTY_FILES = "files"; @@ -217,7 +217,7 @@ public SignatureRequestEditRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -225,7 +225,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -250,7 +250,7 @@ public SignatureRequestEditRequest addFileUrlsItem(String fileUrlsItem) { * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -258,7 +258,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -283,7 +283,7 @@ public SignatureRequestEditRequest addSignersItem(SubSignatureRequestSigner sign * @return signers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { @@ -291,7 +291,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; @@ -316,7 +316,7 @@ public SignatureRequestEditRequest addGroupedSignersItem(SubSignatureRequestGrou * @return groupedSigners */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getGroupedSigners() { @@ -324,7 +324,7 @@ public List getGroupedSigners() { } - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; @@ -341,7 +341,7 @@ public SignatureRequestEditRequest allowDecline(@jakarta.annotation.Nullable Boo * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -349,7 +349,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -366,7 +366,7 @@ public SignatureRequestEditRequest allowReassign(@jakarta.annotation.Nullable Bo * @return allowReassign */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { @@ -374,7 +374,7 @@ public Boolean getAllowReassign() { } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -399,7 +399,7 @@ public SignatureRequestEditRequest addAttachmentsItem(SubAttachment attachmentsI * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -407,7 +407,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -432,7 +432,7 @@ public SignatureRequestEditRequest addCcEmailAddressesItem(String ccEmailAddress * @return ccEmailAddresses */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { @@ -440,7 +440,7 @@ public List getCcEmailAddresses() { } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -457,7 +457,7 @@ public SignatureRequestEditRequest clientId(@jakarta.annotation.Nullable String * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -465,7 +465,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -490,7 +490,7 @@ public SignatureRequestEditRequest addCustomFieldsItem(SubCustomField customFiel * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -498,7 +498,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -515,7 +515,7 @@ public SignatureRequestEditRequest fieldOptions(@jakarta.annotation.Nullable Sub * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -523,7 +523,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -548,7 +548,7 @@ public SignatureRequestEditRequest addFormFieldGroupsItem(SubFormFieldGroup form * @return formFieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { @@ -556,7 +556,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -581,7 +581,7 @@ public SignatureRequestEditRequest addFormFieldRulesItem(SubFormFieldRule formFi * @return formFieldRules */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { @@ -589,7 +589,7 @@ public List getFormFieldRules() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; @@ -614,7 +614,7 @@ public SignatureRequestEditRequest addFormFieldsPerDocumentItem(SubFormFieldsPer * @return formFieldsPerDocument */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { @@ -622,7 +622,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -639,7 +639,7 @@ public SignatureRequestEditRequest hideTextTags(@jakarta.annotation.Nullable Boo * @return hideTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { @@ -647,7 +647,7 @@ public Boolean getHideTextTags() { } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -664,7 +664,7 @@ public SignatureRequestEditRequest isEid(@jakarta.annotation.Nullable Boolean is * @return isEid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEid() { @@ -672,7 +672,7 @@ public Boolean getIsEid() { } - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; @@ -689,7 +689,7 @@ public SignatureRequestEditRequest message(@jakarta.annotation.Nullable String m * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -697,7 +697,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -722,7 +722,7 @@ public SignatureRequestEditRequest putMetadataItem(String key, Object metadataIt * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -730,7 +730,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -747,7 +747,7 @@ public SignatureRequestEditRequest signingOptions(@jakarta.annotation.Nullable S * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -755,7 +755,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -772,7 +772,7 @@ public SignatureRequestEditRequest signingRedirectUrl(@jakarta.annotation.Nullab * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -780,7 +780,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -797,7 +797,7 @@ public SignatureRequestEditRequest subject(@jakarta.annotation.Nullable String s * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -805,7 +805,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -822,7 +822,7 @@ public SignatureRequestEditRequest testMode(@jakarta.annotation.Nullable Boolean * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -830,7 +830,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -847,7 +847,7 @@ public SignatureRequestEditRequest title(@jakarta.annotation.Nullable String tit * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -855,7 +855,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -872,7 +872,7 @@ public SignatureRequestEditRequest useTextTags(@jakarta.annotation.Nullable Bool * @return useTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { @@ -880,7 +880,7 @@ public Boolean getUseTextTags() { } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -897,7 +897,7 @@ public SignatureRequestEditRequest ignoreTextTagsExtractionErrors(@jakarta.annot * @return ignoreTextTagsExtractionErrors */ @jakarta.annotation.Nullable - @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 Boolean getIgnoreTextTagsExtractionErrors() { @@ -905,7 +905,7 @@ public Boolean getIgnoreTextTagsExtractionErrors() { } - @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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; @@ -922,7 +922,7 @@ public SignatureRequestEditRequest expiresAt(@jakarta.annotation.Nullable Intege * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -930,7 +930,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1546,10 +1546,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java index 89445f6f..18c0cece 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java @@ -59,7 +59,7 @@ SignatureRequestEditWithTemplateRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestEditWithTemplateRequest.JSON_PROPERTY_TITLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestEditWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -162,7 +162,7 @@ public SignatureRequestEditWithTemplateRequest addTemplateIdsItem(String templat * @return templateIds */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { @@ -170,7 +170,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -195,7 +195,7 @@ public SignatureRequestEditWithTemplateRequest addSignersItem(SubSignatureReques * @return signers */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { @@ -203,7 +203,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; @@ -220,7 +220,7 @@ public SignatureRequestEditWithTemplateRequest allowDecline(@jakarta.annotation. * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -228,7 +228,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -253,7 +253,7 @@ public SignatureRequestEditWithTemplateRequest addCcsItem(SubCC ccsItem) { * @return ccs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { @@ -261,7 +261,7 @@ public List getCcs() { } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; @@ -278,7 +278,7 @@ public SignatureRequestEditWithTemplateRequest clientId(@jakarta.annotation.Null * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -286,7 +286,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -311,7 +311,7 @@ public SignatureRequestEditWithTemplateRequest addCustomFieldsItem(SubCustomFiel * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -319,7 +319,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -344,7 +344,7 @@ public SignatureRequestEditWithTemplateRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -352,7 +352,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -377,7 +377,7 @@ public SignatureRequestEditWithTemplateRequest addFileUrlsItem(String fileUrlsIt * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -385,7 +385,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -402,7 +402,7 @@ public SignatureRequestEditWithTemplateRequest isEid(@jakarta.annotation.Nullabl * @return isEid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEid() { @@ -410,7 +410,7 @@ public Boolean getIsEid() { } - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; @@ -427,7 +427,7 @@ public SignatureRequestEditWithTemplateRequest message(@jakarta.annotation.Nulla * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -435,7 +435,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -460,7 +460,7 @@ public SignatureRequestEditWithTemplateRequest putMetadataItem(String key, Objec * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -468,7 +468,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -485,7 +485,7 @@ public SignatureRequestEditWithTemplateRequest signingOptions(@jakarta.annotatio * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -493,7 +493,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -510,7 +510,7 @@ public SignatureRequestEditWithTemplateRequest signingRedirectUrl(@jakarta.annot * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -518,7 +518,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -535,7 +535,7 @@ public SignatureRequestEditWithTemplateRequest subject(@jakarta.annotation.Nulla * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -543,7 +543,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -560,7 +560,7 @@ public SignatureRequestEditWithTemplateRequest testMode(@jakarta.annotation.Null * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -568,7 +568,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -585,7 +585,7 @@ public SignatureRequestEditWithTemplateRequest title(@jakarta.annotation.Nullabl * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -593,7 +593,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -999,10 +999,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java b/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java index 489a922d..1301df59 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java @@ -40,7 +40,7 @@ SignatureRequestGetResponse.JSON_PROPERTY_SIGNATURE_REQUEST, SignatureRequestGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestGetResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUEST = "signature_request"; @@ -79,7 +79,7 @@ public SignatureRequestGetResponse signatureRequest(@jakarta.annotation.Nonnull * @return signatureRequest */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public SignatureRequestResponse getSignatureRequest() { @@ -87,7 +87,7 @@ public SignatureRequestResponse getSignatureRequest() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignatureRequest(@jakarta.annotation.Nonnull SignatureRequestResponse signatureRequest) { this.signatureRequest = signatureRequest; @@ -112,7 +112,7 @@ public SignatureRequestGetResponse addWarningsItem(WarningResponse warningsItem) * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java b/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java index 5c816926..133b0c8e 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java @@ -42,7 +42,7 @@ SignatureRequestListResponse.JSON_PROPERTY_LIST_INFO, SignatureRequestListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestListResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUESTS = "signature_requests"; @@ -93,7 +93,7 @@ public SignatureRequestListResponse addSignatureRequestsItem(SignatureRequestRes * @return signatureRequests */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUESTS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSignatureRequests() { @@ -101,7 +101,7 @@ public List getSignatureRequests() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUESTS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignatureRequests(@jakarta.annotation.Nonnull List signatureRequests) { this.signatureRequests = signatureRequests; @@ -118,7 +118,7 @@ public SignatureRequestListResponse listInfo(@jakarta.annotation.Nonnull ListInf * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -126,7 +126,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -151,7 +151,7 @@ public SignatureRequestListResponse addWarningsItem(WarningResponse warningsItem * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -159,7 +159,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -292,10 +292,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java index dc2b5f5f..46418cc6 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java @@ -36,7 +36,7 @@ SignatureRequestRemindRequest.JSON_PROPERTY_EMAIL_ADDRESS, SignatureRequestRemindRequest.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestRemindRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -75,7 +75,7 @@ public SignatureRequestRemindRequest emailAddress(@jakarta.annotation.Nonnull St * @return emailAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { @@ -83,7 +83,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -100,7 +100,7 @@ public SignatureRequestRemindRequest name(@jakarta.annotation.Nullable String na * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -108,7 +108,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java index 481b8bd6..e274a7f8 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java @@ -67,7 +67,7 @@ SignatureRequestResponse.JSON_PROPERTY_SIGNATURES, SignatureRequestResponse.JSON_PROPERTY_BULK_SEND_JOB_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestResponse { public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; @@ -198,7 +198,7 @@ public SignatureRequestResponse testMode(@jakarta.annotation.Nullable Boolean te * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -206,7 +206,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -223,7 +223,7 @@ public SignatureRequestResponse signatureRequestId(@jakarta.annotation.Nullable * @return signatureRequestId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureRequestId() { @@ -231,7 +231,7 @@ public String getSignatureRequestId() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; @@ -248,7 +248,7 @@ public SignatureRequestResponse requesterEmailAddress(@jakarta.annotation.Nullab * @return requesterEmailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequesterEmailAddress() { @@ -256,7 +256,7 @@ public String getRequesterEmailAddress() { } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -273,7 +273,7 @@ public SignatureRequestResponse title(@jakarta.annotation.Nullable String title) * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -281,7 +281,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -298,7 +298,7 @@ public SignatureRequestResponse originalTitle(@jakarta.annotation.Nullable Strin * @return originalTitle */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOriginalTitle() { @@ -306,7 +306,7 @@ public String getOriginalTitle() { } - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalTitle(@jakarta.annotation.Nullable String originalTitle) { this.originalTitle = originalTitle; @@ -323,7 +323,7 @@ public SignatureRequestResponse subject(@jakarta.annotation.Nullable String subj * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -331,7 +331,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -348,7 +348,7 @@ public SignatureRequestResponse message(@jakarta.annotation.Nullable String mess * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -356,7 +356,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -381,7 +381,7 @@ public SignatureRequestResponse putMetadataItem(String key, Object metadataItem) * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -389,7 +389,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -406,7 +406,7 @@ public SignatureRequestResponse createdAt(@jakarta.annotation.Nullable Integer c * @return createdAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { @@ -414,7 +414,7 @@ public Integer getCreatedAt() { } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -431,7 +431,7 @@ public SignatureRequestResponse expiresAt(@jakarta.annotation.Nullable Integer e * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -439,7 +439,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -456,7 +456,7 @@ public SignatureRequestResponse isComplete(@jakarta.annotation.Nullable Boolean * @return isComplete */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_IS_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsComplete() { @@ -464,7 +464,7 @@ public Boolean getIsComplete() { } - @JsonProperty(JSON_PROPERTY_IS_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_IS_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsComplete(@jakarta.annotation.Nullable Boolean isComplete) { this.isComplete = isComplete; @@ -481,7 +481,7 @@ public SignatureRequestResponse isDeclined(@jakarta.annotation.Nullable Boolean * @return isDeclined */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_DECLINED) + @JsonProperty(value = JSON_PROPERTY_IS_DECLINED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsDeclined() { @@ -489,7 +489,7 @@ public Boolean getIsDeclined() { } - @JsonProperty(JSON_PROPERTY_IS_DECLINED) + @JsonProperty(value = JSON_PROPERTY_IS_DECLINED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsDeclined(@jakarta.annotation.Nullable Boolean isDeclined) { this.isDeclined = isDeclined; @@ -506,7 +506,7 @@ public SignatureRequestResponse hasError(@jakarta.annotation.Nullable Boolean ha * @return hasError */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_ERROR) + @JsonProperty(value = JSON_PROPERTY_HAS_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasError() { @@ -514,7 +514,7 @@ public Boolean getHasError() { } - @JsonProperty(JSON_PROPERTY_HAS_ERROR) + @JsonProperty(value = JSON_PROPERTY_HAS_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasError(@jakarta.annotation.Nullable Boolean hasError) { this.hasError = hasError; @@ -531,7 +531,7 @@ public SignatureRequestResponse filesUrl(@jakarta.annotation.Nullable String fil * @return filesUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFilesUrl() { @@ -539,7 +539,7 @@ public String getFilesUrl() { } - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFilesUrl(@jakarta.annotation.Nullable String filesUrl) { this.filesUrl = filesUrl; @@ -556,7 +556,7 @@ public SignatureRequestResponse signingUrl(@jakarta.annotation.Nullable String s * @return signingUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningUrl() { @@ -564,7 +564,7 @@ public String getSigningUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningUrl(@jakarta.annotation.Nullable String signingUrl) { this.signingUrl = signingUrl; @@ -581,7 +581,7 @@ public SignatureRequestResponse detailsUrl(@jakarta.annotation.Nullable String d * @return detailsUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETAILS_URL) + @JsonProperty(value = JSON_PROPERTY_DETAILS_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDetailsUrl() { @@ -589,7 +589,7 @@ public String getDetailsUrl() { } - @JsonProperty(JSON_PROPERTY_DETAILS_URL) + @JsonProperty(value = JSON_PROPERTY_DETAILS_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDetailsUrl(@jakarta.annotation.Nullable String detailsUrl) { this.detailsUrl = detailsUrl; @@ -614,7 +614,7 @@ public SignatureRequestResponse addCcEmailAddressesItem(String ccEmailAddressesI * @return ccEmailAddresses */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { @@ -622,7 +622,7 @@ public List getCcEmailAddresses() { } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -639,7 +639,7 @@ public SignatureRequestResponse signingRedirectUrl(@jakarta.annotation.Nullable * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -647,7 +647,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -664,7 +664,7 @@ public SignatureRequestResponse finalCopyUri(@jakarta.annotation.Nullable String * @return finalCopyUri */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFinalCopyUri() { @@ -672,7 +672,7 @@ public String getFinalCopyUri() { } - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFinalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; @@ -697,7 +697,7 @@ public SignatureRequestResponse addTemplateIdsItem(String templateIdsItem) { * @return templateIds */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTemplateIds() { @@ -705,7 +705,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateIds(@jakarta.annotation.Nullable List templateIds) { this.templateIds = templateIds; @@ -730,7 +730,7 @@ public SignatureRequestResponse addCustomFieldsItem(SignatureRequestResponseCust * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -738,7 +738,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -763,7 +763,7 @@ public SignatureRequestResponse addAttachmentsItem(SignatureRequestResponseAttac * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -771,7 +771,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -796,7 +796,7 @@ public SignatureRequestResponse addResponseDataItem(SignatureRequestResponseData * @return responseData */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) + @JsonProperty(value = JSON_PROPERTY_RESPONSE_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getResponseData() { @@ -804,7 +804,7 @@ public List getResponseData() { } - @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) + @JsonProperty(value = JSON_PROPERTY_RESPONSE_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setResponseData(@jakarta.annotation.Nullable List responseData) { this.responseData = responseData; @@ -829,7 +829,7 @@ public SignatureRequestResponse addSignaturesItem(SignatureRequestResponseSignat * @return signatures */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNATURES) + @JsonProperty(value = JSON_PROPERTY_SIGNATURES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignatures() { @@ -837,7 +837,7 @@ public List getSignatures() { } - @JsonProperty(JSON_PROPERTY_SIGNATURES) + @JsonProperty(value = JSON_PROPERTY_SIGNATURES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatures(@jakarta.annotation.Nullable List signatures) { this.signatures = signatures; @@ -854,7 +854,7 @@ public SignatureRequestResponse bulkSendJobId(@jakarta.annotation.Nullable Strin * @return bulkSendJobId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBulkSendJobId() { @@ -862,7 +862,7 @@ public String getBulkSendJobId() { } - @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(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; @@ -1457,10 +1457,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java index 388774fd..367a399a 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java @@ -40,7 +40,7 @@ SignatureRequestResponseAttachment.JSON_PROPERTY_INSTRUCTIONS, SignatureRequestResponseAttachment.JSON_PROPERTY_UPLOADED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestResponseAttachment { public static final String JSON_PROPERTY_ID = "id"; @@ -95,7 +95,7 @@ public SignatureRequestResponseAttachment id(@jakarta.annotation.Nonnull String * @return id */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { @@ -103,7 +103,7 @@ public String getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; @@ -124,7 +124,7 @@ public SignatureRequestResponseAttachment signer(Integer signer) { * @return signer */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSigner() { @@ -132,7 +132,7 @@ public String getSigner() { } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigner(@jakarta.annotation.Nonnull String signer) { this.signer = signer; @@ -153,7 +153,7 @@ public SignatureRequestResponseAttachment name(@jakarta.annotation.Nonnull Strin * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -161,7 +161,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -178,7 +178,7 @@ public SignatureRequestResponseAttachment required(@jakarta.annotation.Nonnull B * @return required */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getRequired() { @@ -186,7 +186,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequired(@jakarta.annotation.Nonnull Boolean required) { this.required = required; @@ -203,7 +203,7 @@ public SignatureRequestResponseAttachment instructions(@jakarta.annotation.Nulla * @return instructions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) + @JsonProperty(value = JSON_PROPERTY_INSTRUCTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstructions() { @@ -211,7 +211,7 @@ public String getInstructions() { } - @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) + @JsonProperty(value = JSON_PROPERTY_INSTRUCTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInstructions(@jakarta.annotation.Nullable String instructions) { this.instructions = instructions; @@ -228,7 +228,7 @@ public SignatureRequestResponseAttachment uploadedAt(@jakarta.annotation.Nullabl * @return uploadedAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPLOADED_AT) + @JsonProperty(value = JSON_PROPERTY_UPLOADED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUploadedAt() { @@ -236,7 +236,7 @@ public Integer getUploadedAt() { } - @JsonProperty(JSON_PROPERTY_UPLOADED_AT) + @JsonProperty(value = JSON_PROPERTY_UPLOADED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUploadedAt(@jakarta.annotation.Nullable Integer uploadedAt) { this.uploadedAt = uploadedAt; @@ -432,10 +432,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java index 0901f46c..ee455145 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java @@ -42,7 +42,7 @@ SignatureRequestResponseCustomFieldBase.JSON_PROPERTY_API_ID, SignatureRequestResponseCustomFieldBase.JSON_PROPERTY_EDITOR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -102,7 +102,7 @@ public SignatureRequestResponseCustomFieldBase type(@jakarta.annotation.Nonnull * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -110,7 +110,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -127,7 +127,7 @@ public SignatureRequestResponseCustomFieldBase name(@jakarta.annotation.Nonnull * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -135,7 +135,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -152,7 +152,7 @@ public SignatureRequestResponseCustomFieldBase required(@jakarta.annotation.Null * @return required */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { @@ -160,7 +160,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; @@ -177,7 +177,7 @@ public SignatureRequestResponseCustomFieldBase apiId(@jakarta.annotation.Nullabl * @return apiId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { @@ -185,7 +185,7 @@ public String getApiId() { } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; @@ -202,7 +202,7 @@ public SignatureRequestResponseCustomFieldBase editor(@jakarta.annotation.Nullab * @return editor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITOR) + @JsonProperty(value = JSON_PROPERTY_EDITOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEditor() { @@ -210,7 +210,7 @@ public String getEditor() { } - @JsonProperty(JSON_PROPERTY_EDITOR) + @JsonProperty(value = JSON_PROPERTY_EDITOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditor(@jakarta.annotation.Nullable String editor) { this.editor = editor; @@ -385,10 +385,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java index 7ab1636d..4125f12d 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java @@ -40,7 +40,7 @@ SignatureRequestResponseCustomFieldCheckbox.JSON_PROPERTY_TYPE, SignatureRequestResponseCustomFieldCheckbox.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseCustomFieldCheckbox type(@jakarta.annotation.Nonn * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseCustomFieldCheckbox value(@jakarta.annotation.Nul * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getValue() { @@ -117,7 +117,7 @@ public Boolean getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable Boolean value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java index 7157610f..a2002592 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java @@ -40,7 +40,7 @@ SignatureRequestResponseCustomFieldText.JSON_PROPERTY_TYPE, SignatureRequestResponseCustomFieldText.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseCustomFieldText type(@jakarta.annotation.Nonnull * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseCustomFieldText value(@jakarta.annotation.Nullabl * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -117,7 +117,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java index d572079a..5f219966 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java @@ -42,7 +42,7 @@ SignatureRequestResponseDataBase.JSON_PROPERTY_REQUIRED, SignatureRequestResponseDataBase.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -109,7 +109,7 @@ public SignatureRequestResponseDataBase apiId(@jakarta.annotation.Nullable Strin * @return apiId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { @@ -117,7 +117,7 @@ public String getApiId() { } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; @@ -134,7 +134,7 @@ public SignatureRequestResponseDataBase signatureId(@jakarta.annotation.Nullable * @return signatureId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureId() { @@ -142,7 +142,7 @@ public String getSignatureId() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureId(@jakarta.annotation.Nullable String signatureId) { this.signatureId = signatureId; @@ -159,7 +159,7 @@ public SignatureRequestResponseDataBase name(@jakarta.annotation.Nullable String * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -167,7 +167,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -184,7 +184,7 @@ public SignatureRequestResponseDataBase required(@jakarta.annotation.Nullable Bo * @return required */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { @@ -192,7 +192,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; @@ -209,7 +209,7 @@ public SignatureRequestResponseDataBase type(@jakarta.annotation.Nullable String * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -217,7 +217,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -392,10 +392,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java index ea881f7d..b4a93972 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueCheckbox.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueCheckbox.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseDataValueCheckbox type(@jakarta.annotation.Nullab * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseDataValueCheckbox value(@jakarta.annotation.Nulla * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getValue() { @@ -117,7 +117,7 @@ public Boolean getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable Boolean value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java index b3655546..fc5ae29b 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueCheckboxMerge.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueCheckboxMerge.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseDataValueCheckboxMerge type(@jakarta.annotation.N * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseDataValueCheckboxMerge value(@jakarta.annotation. * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -117,7 +117,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java index 6c8c3513..4dbfbe0c 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueDateSigned.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueDateSigned.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseDataValueDateSigned type(@jakarta.annotation.Null * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseDataValueDateSigned value(@jakarta.annotation.Nul * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -117,7 +117,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java index 8d7a8425..de94bc25 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueDropdown.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueDropdown.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseDataValueDropdown type(@jakarta.annotation.Nullab * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseDataValueDropdown value(@jakarta.annotation.Nulla * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -117,7 +117,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java index 1a68d9a2..1ee39f1a 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java @@ -41,7 +41,7 @@ SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE, SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -89,7 +89,7 @@ public SignatureRequestResponseDataValueInitials type(@jakarta.annotation.Nullab * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -97,7 +97,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -114,7 +114,7 @@ public SignatureRequestResponseDataValueInitials value(@jakarta.annotation.Nulla * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -122,7 +122,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -139,7 +139,7 @@ public SignatureRequestResponseDataValueInitials isSigned(@jakarta.annotation.Nu * @return isSigned */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonProperty(value = JSON_PROPERTY_IS_SIGNED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsSigned() { @@ -147,7 +147,7 @@ public Boolean getIsSigned() { } - @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonProperty(value = JSON_PROPERTY_IS_SIGNED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsSigned(@jakarta.annotation.Nullable Boolean isSigned) { this.isSigned = isSigned; @@ -283,10 +283,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java index 027c4d91..efd26242 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueRadio.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueRadio.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseDataValueRadio type(@jakarta.annotation.Nullable * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseDataValueRadio value(@jakarta.annotation.Nullable * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getValue() { @@ -117,7 +117,7 @@ public Boolean getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable Boolean value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java index 95953be9..aab1eeed 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java @@ -41,7 +41,7 @@ SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE, SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -89,7 +89,7 @@ public SignatureRequestResponseDataValueSignature type(@jakarta.annotation.Nulla * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -97,7 +97,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -114,7 +114,7 @@ public SignatureRequestResponseDataValueSignature value(@jakarta.annotation.Null * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -122,7 +122,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -139,7 +139,7 @@ public SignatureRequestResponseDataValueSignature isSigned(@jakarta.annotation.N * @return isSigned */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonProperty(value = JSON_PROPERTY_IS_SIGNED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsSigned() { @@ -147,7 +147,7 @@ public Boolean getIsSigned() { } - @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonProperty(value = JSON_PROPERTY_IS_SIGNED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsSigned(@jakarta.annotation.Nullable Boolean isSigned) { this.isSigned = isSigned; @@ -283,10 +283,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java index 63225480..39e22e44 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueText.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueText.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseDataValueText type(@jakarta.annotation.Nullable S * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseDataValueText value(@jakarta.annotation.Nullable * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -117,7 +117,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java index b420f755..2adf446d 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueTextMerge.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueTextMerge.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public SignatureRequestResponseDataValueTextMerge type(@jakarta.annotation.Nulla * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -109,7 +109,7 @@ public SignatureRequestResponseDataValueTextMerge value(@jakarta.annotation.Null * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -117,7 +117,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java index 59472ad3..ce63dd93 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java @@ -53,7 +53,7 @@ SignatureRequestResponseSignatures.JSON_PROPERTY_REASSIGNED_FROM, SignatureRequestResponseSignatures.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestResponseSignatures { public static final String JSON_PROPERTY_SIGNATURE_ID = "signature_id"; @@ -160,7 +160,7 @@ public SignatureRequestResponseSignatures signatureId(@jakarta.annotation.Nullab * @return signatureId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureId() { @@ -168,7 +168,7 @@ public String getSignatureId() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureId(@jakarta.annotation.Nullable String signatureId) { this.signatureId = signatureId; @@ -185,7 +185,7 @@ public SignatureRequestResponseSignatures signerGroupGuid(@jakarta.annotation.Nu * @return signerGroupGuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_GROUP_GUID) + @JsonProperty(value = JSON_PROPERTY_SIGNER_GROUP_GUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignerGroupGuid() { @@ -193,7 +193,7 @@ public String getSignerGroupGuid() { } - @JsonProperty(JSON_PROPERTY_SIGNER_GROUP_GUID) + @JsonProperty(value = JSON_PROPERTY_SIGNER_GROUP_GUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerGroupGuid(@jakarta.annotation.Nullable String signerGroupGuid) { this.signerGroupGuid = signerGroupGuid; @@ -210,7 +210,7 @@ public SignatureRequestResponseSignatures signerEmailAddress(@jakarta.annotation * @return signerEmailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_SIGNER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignerEmailAddress() { @@ -218,7 +218,7 @@ public String getSignerEmailAddress() { } - @JsonProperty(JSON_PROPERTY_SIGNER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_SIGNER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerEmailAddress(@jakarta.annotation.Nullable String signerEmailAddress) { this.signerEmailAddress = signerEmailAddress; @@ -235,7 +235,7 @@ public SignatureRequestResponseSignatures signerName(@jakarta.annotation.Nullabl * @return signerName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_NAME) + @JsonProperty(value = JSON_PROPERTY_SIGNER_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignerName() { @@ -243,7 +243,7 @@ public String getSignerName() { } - @JsonProperty(JSON_PROPERTY_SIGNER_NAME) + @JsonProperty(value = JSON_PROPERTY_SIGNER_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerName(@jakarta.annotation.Nullable String signerName) { this.signerName = signerName; @@ -260,7 +260,7 @@ public SignatureRequestResponseSignatures signerRole(@jakarta.annotation.Nullabl * @return signerRole */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_ROLE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignerRole() { @@ -268,7 +268,7 @@ public String getSignerRole() { } - @JsonProperty(JSON_PROPERTY_SIGNER_ROLE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerRole(@jakarta.annotation.Nullable String signerRole) { this.signerRole = signerRole; @@ -285,7 +285,7 @@ public SignatureRequestResponseSignatures order(@jakarta.annotation.Nullable Int * @return order */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { @@ -293,7 +293,7 @@ public Integer getOrder() { } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; @@ -310,7 +310,7 @@ public SignatureRequestResponseSignatures statusCode(@jakarta.annotation.Nullabl * @return statusCode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS_CODE) + @JsonProperty(value = JSON_PROPERTY_STATUS_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStatusCode() { @@ -318,7 +318,7 @@ public String getStatusCode() { } - @JsonProperty(JSON_PROPERTY_STATUS_CODE) + @JsonProperty(value = JSON_PROPERTY_STATUS_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatusCode(@jakarta.annotation.Nullable String statusCode) { this.statusCode = statusCode; @@ -335,7 +335,7 @@ public SignatureRequestResponseSignatures declineReason(@jakarta.annotation.Null * @return declineReason */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLINE_REASON) + @JsonProperty(value = JSON_PROPERTY_DECLINE_REASON, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDeclineReason() { @@ -343,7 +343,7 @@ public String getDeclineReason() { } - @JsonProperty(JSON_PROPERTY_DECLINE_REASON) + @JsonProperty(value = JSON_PROPERTY_DECLINE_REASON, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclineReason(@jakarta.annotation.Nullable String declineReason) { this.declineReason = declineReason; @@ -360,7 +360,7 @@ public SignatureRequestResponseSignatures signedAt(@jakarta.annotation.Nullable * @return signedAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(value = JSON_PROPERTY_SIGNED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSignedAt() { @@ -368,7 +368,7 @@ public Integer getSignedAt() { } - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(value = JSON_PROPERTY_SIGNED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignedAt(@jakarta.annotation.Nullable Integer signedAt) { this.signedAt = signedAt; @@ -385,7 +385,7 @@ public SignatureRequestResponseSignatures lastViewedAt(@jakarta.annotation.Nulla * @return lastViewedAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_VIEWED_AT) + @JsonProperty(value = JSON_PROPERTY_LAST_VIEWED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getLastViewedAt() { @@ -393,7 +393,7 @@ public Integer getLastViewedAt() { } - @JsonProperty(JSON_PROPERTY_LAST_VIEWED_AT) + @JsonProperty(value = JSON_PROPERTY_LAST_VIEWED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastViewedAt(@jakarta.annotation.Nullable Integer lastViewedAt) { this.lastViewedAt = lastViewedAt; @@ -410,7 +410,7 @@ public SignatureRequestResponseSignatures lastRemindedAt(@jakarta.annotation.Nul * @return lastRemindedAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_REMINDED_AT) + @JsonProperty(value = JSON_PROPERTY_LAST_REMINDED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getLastRemindedAt() { @@ -418,7 +418,7 @@ public Integer getLastRemindedAt() { } - @JsonProperty(JSON_PROPERTY_LAST_REMINDED_AT) + @JsonProperty(value = JSON_PROPERTY_LAST_REMINDED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastRemindedAt(@jakarta.annotation.Nullable Integer lastRemindedAt) { this.lastRemindedAt = lastRemindedAt; @@ -435,7 +435,7 @@ public SignatureRequestResponseSignatures hasPin(@jakarta.annotation.Nullable Bo * @return hasPin */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_PIN) + @JsonProperty(value = JSON_PROPERTY_HAS_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasPin() { @@ -443,7 +443,7 @@ public Boolean getHasPin() { } - @JsonProperty(JSON_PROPERTY_HAS_PIN) + @JsonProperty(value = JSON_PROPERTY_HAS_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasPin(@jakarta.annotation.Nullable Boolean hasPin) { this.hasPin = hasPin; @@ -460,7 +460,7 @@ public SignatureRequestResponseSignatures hasSmsAuth(@jakarta.annotation.Nullabl * @return hasSmsAuth */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_SMS_AUTH) + @JsonProperty(value = JSON_PROPERTY_HAS_SMS_AUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasSmsAuth() { @@ -468,7 +468,7 @@ public Boolean getHasSmsAuth() { } - @JsonProperty(JSON_PROPERTY_HAS_SMS_AUTH) + @JsonProperty(value = JSON_PROPERTY_HAS_SMS_AUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasSmsAuth(@jakarta.annotation.Nullable Boolean hasSmsAuth) { this.hasSmsAuth = hasSmsAuth; @@ -485,7 +485,7 @@ public SignatureRequestResponseSignatures hasSmsDelivery(@jakarta.annotation.Nul * @return hasSmsDelivery */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_SMS_DELIVERY) + @JsonProperty(value = JSON_PROPERTY_HAS_SMS_DELIVERY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasSmsDelivery() { @@ -493,7 +493,7 @@ public Boolean getHasSmsDelivery() { } - @JsonProperty(JSON_PROPERTY_HAS_SMS_DELIVERY) + @JsonProperty(value = JSON_PROPERTY_HAS_SMS_DELIVERY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasSmsDelivery(@jakarta.annotation.Nullable Boolean hasSmsDelivery) { this.hasSmsDelivery = hasSmsDelivery; @@ -510,7 +510,7 @@ public SignatureRequestResponseSignatures smsPhoneNumber(@jakarta.annotation.Nul * @return smsPhoneNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmsPhoneNumber() { @@ -518,7 +518,7 @@ public String getSmsPhoneNumber() { } - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; @@ -535,7 +535,7 @@ public SignatureRequestResponseSignatures reassignedBy(@jakarta.annotation.Nulla * @return reassignedBy */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REASSIGNED_BY) + @JsonProperty(value = JSON_PROPERTY_REASSIGNED_BY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReassignedBy() { @@ -543,7 +543,7 @@ public String getReassignedBy() { } - @JsonProperty(JSON_PROPERTY_REASSIGNED_BY) + @JsonProperty(value = JSON_PROPERTY_REASSIGNED_BY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReassignedBy(@jakarta.annotation.Nullable String reassignedBy) { this.reassignedBy = reassignedBy; @@ -560,7 +560,7 @@ public SignatureRequestResponseSignatures reassignmentReason(@jakarta.annotation * @return reassignmentReason */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REASSIGNMENT_REASON) + @JsonProperty(value = JSON_PROPERTY_REASSIGNMENT_REASON, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReassignmentReason() { @@ -568,7 +568,7 @@ public String getReassignmentReason() { } - @JsonProperty(JSON_PROPERTY_REASSIGNMENT_REASON) + @JsonProperty(value = JSON_PROPERTY_REASSIGNMENT_REASON, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReassignmentReason(@jakarta.annotation.Nullable String reassignmentReason) { this.reassignmentReason = reassignmentReason; @@ -585,7 +585,7 @@ public SignatureRequestResponseSignatures reassignedFrom(@jakarta.annotation.Nul * @return reassignedFrom */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REASSIGNED_FROM) + @JsonProperty(value = JSON_PROPERTY_REASSIGNED_FROM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReassignedFrom() { @@ -593,7 +593,7 @@ public String getReassignedFrom() { } - @JsonProperty(JSON_PROPERTY_REASSIGNED_FROM) + @JsonProperty(value = JSON_PROPERTY_REASSIGNED_FROM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReassignedFrom(@jakarta.annotation.Nullable String reassignedFrom) { this.reassignedFrom = reassignedFrom; @@ -610,7 +610,7 @@ public SignatureRequestResponseSignatures error(@jakarta.annotation.Nullable Str * @return error */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(value = JSON_PROPERTY_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getError() { @@ -618,7 +618,7 @@ public String getError() { } - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(value = JSON_PROPERTY_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setError(@jakarta.annotation.Nullable String error) { this.error = error; @@ -1087,10 +1087,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java index 7e5620f4..3fbdfa37 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java @@ -75,7 +75,7 @@ SignatureRequestSendRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, SignatureRequestSendRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestSendRequest { public static final String JSON_PROPERTY_FILES = "files"; @@ -223,7 +223,7 @@ public SignatureRequestSendRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -231,7 +231,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -256,7 +256,7 @@ public SignatureRequestSendRequest addFileUrlsItem(String fileUrlsItem) { * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -264,7 +264,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -289,7 +289,7 @@ public SignatureRequestSendRequest addSignersItem(SubSignatureRequestSigner sign * @return signers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { @@ -297,7 +297,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; @@ -322,7 +322,7 @@ public SignatureRequestSendRequest addGroupedSignersItem(SubSignatureRequestGrou * @return groupedSigners */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getGroupedSigners() { @@ -330,7 +330,7 @@ public List getGroupedSigners() { } - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; @@ -347,7 +347,7 @@ public SignatureRequestSendRequest allowDecline(@jakarta.annotation.Nullable Boo * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -355,7 +355,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -372,7 +372,7 @@ public SignatureRequestSendRequest allowReassign(@jakarta.annotation.Nullable Bo * @return allowReassign */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { @@ -380,7 +380,7 @@ public Boolean getAllowReassign() { } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -405,7 +405,7 @@ public SignatureRequestSendRequest addAttachmentsItem(SubAttachment attachmentsI * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -413,7 +413,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -438,7 +438,7 @@ public SignatureRequestSendRequest addCcEmailAddressesItem(String ccEmailAddress * @return ccEmailAddresses */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { @@ -446,7 +446,7 @@ public List getCcEmailAddresses() { } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -463,7 +463,7 @@ public SignatureRequestSendRequest clientId(@jakarta.annotation.Nullable String * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -471,7 +471,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -496,7 +496,7 @@ public SignatureRequestSendRequest addCustomFieldsItem(SubCustomField customFiel * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -504,7 +504,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -521,7 +521,7 @@ public SignatureRequestSendRequest fieldOptions(@jakarta.annotation.Nullable Sub * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -529,7 +529,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -554,7 +554,7 @@ public SignatureRequestSendRequest addFormFieldGroupsItem(SubFormFieldGroup form * @return formFieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { @@ -562,7 +562,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -587,7 +587,7 @@ public SignatureRequestSendRequest addFormFieldRulesItem(SubFormFieldRule formFi * @return formFieldRules */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { @@ -595,7 +595,7 @@ public List getFormFieldRules() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; @@ -620,7 +620,7 @@ public SignatureRequestSendRequest addFormFieldsPerDocumentItem(SubFormFieldsPer * @return formFieldsPerDocument */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { @@ -628,7 +628,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -645,7 +645,7 @@ public SignatureRequestSendRequest hideTextTags(@jakarta.annotation.Nullable Boo * @return hideTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { @@ -653,7 +653,7 @@ public Boolean getHideTextTags() { } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -673,7 +673,7 @@ public SignatureRequestSendRequest isQualifiedSignature(@jakarta.annotation.Null */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_QUALIFIED_SIGNATURE) + @JsonProperty(value = JSON_PROPERTY_IS_QUALIFIED_SIGNATURE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsQualifiedSignature() { @@ -682,7 +682,7 @@ public Boolean getIsQualifiedSignature() { @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(@jakarta.annotation.Nullable Boolean isQualifiedSignature) { this.isQualifiedSignature = isQualifiedSignature; @@ -699,7 +699,7 @@ public SignatureRequestSendRequest isEid(@jakarta.annotation.Nullable Boolean is * @return isEid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEid() { @@ -707,7 +707,7 @@ public Boolean getIsEid() { } - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; @@ -724,7 +724,7 @@ public SignatureRequestSendRequest message(@jakarta.annotation.Nullable String m * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -732,7 +732,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -757,7 +757,7 @@ public SignatureRequestSendRequest putMetadataItem(String key, Object metadataIt * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -765,7 +765,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -782,7 +782,7 @@ public SignatureRequestSendRequest signingOptions(@jakarta.annotation.Nullable S * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -790,7 +790,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -807,7 +807,7 @@ public SignatureRequestSendRequest signingRedirectUrl(@jakarta.annotation.Nullab * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -815,7 +815,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -832,7 +832,7 @@ public SignatureRequestSendRequest subject(@jakarta.annotation.Nullable String s * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -840,7 +840,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -857,7 +857,7 @@ public SignatureRequestSendRequest testMode(@jakarta.annotation.Nullable Boolean * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -865,7 +865,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -882,7 +882,7 @@ public SignatureRequestSendRequest title(@jakarta.annotation.Nullable String tit * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -890,7 +890,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -907,7 +907,7 @@ public SignatureRequestSendRequest useTextTags(@jakarta.annotation.Nullable Bool * @return useTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { @@ -915,7 +915,7 @@ public Boolean getUseTextTags() { } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -932,7 +932,7 @@ public SignatureRequestSendRequest ignoreTextTagsExtractionErrors(@jakarta.annot * @return ignoreTextTagsExtractionErrors */ @jakarta.annotation.Nullable - @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 Boolean getIgnoreTextTagsExtractionErrors() { @@ -940,7 +940,7 @@ public Boolean getIgnoreTextTagsExtractionErrors() { } - @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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; @@ -957,7 +957,7 @@ public SignatureRequestSendRequest expiresAt(@jakarta.annotation.Nullable Intege * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -965,7 +965,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1602,10 +1602,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java index ea936076..c5ab1ac3 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java @@ -61,7 +61,7 @@ SignatureRequestSendWithTemplateRequest.JSON_PROPERTY_TITLE, SignatureRequestSendWithTemplateRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestSendWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -173,7 +173,7 @@ public SignatureRequestSendWithTemplateRequest addTemplateIdsItem(String templat * @return templateIds */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { @@ -181,7 +181,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -206,7 +206,7 @@ public SignatureRequestSendWithTemplateRequest addSignersItem(SubSignatureReques * @return signers */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { @@ -214,7 +214,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; @@ -231,7 +231,7 @@ public SignatureRequestSendWithTemplateRequest allowDecline(@jakarta.annotation. * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -239,7 +239,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -264,7 +264,7 @@ public SignatureRequestSendWithTemplateRequest addCcsItem(SubCC ccsItem) { * @return ccs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { @@ -272,7 +272,7 @@ public List getCcs() { } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; @@ -289,7 +289,7 @@ public SignatureRequestSendWithTemplateRequest clientId(@jakarta.annotation.Null * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -297,7 +297,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -322,7 +322,7 @@ public SignatureRequestSendWithTemplateRequest addCustomFieldsItem(SubCustomFiel * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -330,7 +330,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -355,7 +355,7 @@ public SignatureRequestSendWithTemplateRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -363,7 +363,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -388,7 +388,7 @@ public SignatureRequestSendWithTemplateRequest addFileUrlsItem(String fileUrlsIt * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -396,7 +396,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -416,7 +416,7 @@ public SignatureRequestSendWithTemplateRequest isQualifiedSignature(@jakarta.ann */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_QUALIFIED_SIGNATURE) + @JsonProperty(value = JSON_PROPERTY_IS_QUALIFIED_SIGNATURE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsQualifiedSignature() { @@ -425,7 +425,7 @@ public Boolean getIsQualifiedSignature() { @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(@jakarta.annotation.Nullable Boolean isQualifiedSignature) { this.isQualifiedSignature = isQualifiedSignature; @@ -442,7 +442,7 @@ public SignatureRequestSendWithTemplateRequest isEid(@jakarta.annotation.Nullabl * @return isEid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEid() { @@ -450,7 +450,7 @@ public Boolean getIsEid() { } - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; @@ -467,7 +467,7 @@ public SignatureRequestSendWithTemplateRequest message(@jakarta.annotation.Nulla * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -475,7 +475,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -500,7 +500,7 @@ public SignatureRequestSendWithTemplateRequest putMetadataItem(String key, Objec * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -508,7 +508,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -525,7 +525,7 @@ public SignatureRequestSendWithTemplateRequest signingOptions(@jakarta.annotatio * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -533,7 +533,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -550,7 +550,7 @@ public SignatureRequestSendWithTemplateRequest signingRedirectUrl(@jakarta.annot * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -558,7 +558,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -575,7 +575,7 @@ public SignatureRequestSendWithTemplateRequest subject(@jakarta.annotation.Nulla * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -583,7 +583,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -600,7 +600,7 @@ public SignatureRequestSendWithTemplateRequest testMode(@jakarta.annotation.Null * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -608,7 +608,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -625,7 +625,7 @@ public SignatureRequestSendWithTemplateRequest title(@jakarta.annotation.Nullabl * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -633,7 +633,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -650,7 +650,7 @@ public SignatureRequestSendWithTemplateRequest expiresAt(@jakarta.annotation.Nul * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -658,7 +658,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1106,10 +1106,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java b/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java index 599e2b0b..b211a820 100644 --- a/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java +++ b/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java @@ -38,7 +38,7 @@ SignatureRequestUpdateRequest.JSON_PROPERTY_NAME, SignatureRequestUpdateRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestUpdateRequest { public static final String JSON_PROPERTY_SIGNATURE_ID = "signature_id"; @@ -85,7 +85,7 @@ public SignatureRequestUpdateRequest signatureId(@jakarta.annotation.Nonnull Str * @return signatureId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSignatureId() { @@ -93,7 +93,7 @@ public String getSignatureId() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignatureId(@jakarta.annotation.Nonnull String signatureId) { this.signatureId = signatureId; @@ -110,7 +110,7 @@ public SignatureRequestUpdateRequest emailAddress(@jakarta.annotation.Nullable S * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -118,7 +118,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -135,7 +135,7 @@ public SignatureRequestUpdateRequest name(@jakarta.annotation.Nullable String na * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -143,7 +143,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -160,7 +160,7 @@ public SignatureRequestUpdateRequest expiresAt(@jakarta.annotation.Nullable Inte * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -168,7 +168,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubAttachment.java b/src/main/java/com/dropbox/sign/model/SubAttachment.java index 2194103c..999348bb 100644 --- a/src/main/java/com/dropbox/sign/model/SubAttachment.java +++ b/src/main/java/com/dropbox/sign/model/SubAttachment.java @@ -38,7 +38,7 @@ SubAttachment.JSON_PROPERTY_INSTRUCTIONS, SubAttachment.JSON_PROPERTY_REQUIRED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubAttachment { public static final String JSON_PROPERTY_NAME = "name"; @@ -85,7 +85,7 @@ public SubAttachment name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -93,7 +93,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -110,7 +110,7 @@ public SubAttachment signerIndex(@jakarta.annotation.Nonnull Integer signerIndex * @return signerIndex */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNER_INDEX) + @JsonProperty(value = JSON_PROPERTY_SIGNER_INDEX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getSignerIndex() { @@ -118,7 +118,7 @@ public Integer getSignerIndex() { } - @JsonProperty(JSON_PROPERTY_SIGNER_INDEX) + @JsonProperty(value = JSON_PROPERTY_SIGNER_INDEX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignerIndex(@jakarta.annotation.Nonnull Integer signerIndex) { this.signerIndex = signerIndex; @@ -135,7 +135,7 @@ public SubAttachment instructions(@jakarta.annotation.Nullable String instructio * @return instructions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) + @JsonProperty(value = JSON_PROPERTY_INSTRUCTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstructions() { @@ -143,7 +143,7 @@ public String getInstructions() { } - @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) + @JsonProperty(value = JSON_PROPERTY_INSTRUCTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInstructions(@jakarta.annotation.Nullable String instructions) { this.instructions = instructions; @@ -160,7 +160,7 @@ public SubAttachment required(@jakarta.annotation.Nullable Boolean required) { * @return required */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { @@ -168,7 +168,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java b/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java index beb21db0..3ac6fb88 100644 --- a/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java +++ b/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java @@ -40,7 +40,7 @@ SubBulkSignerList.JSON_PROPERTY_CUSTOM_FIELDS, SubBulkSignerList.JSON_PROPERTY_SIGNERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubBulkSignerList { public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; @@ -87,7 +87,7 @@ public SubBulkSignerList addCustomFieldsItem(SubBulkSignerListCustomField custom * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -95,7 +95,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -120,7 +120,7 @@ public SubBulkSignerList addSignersItem(SubSignatureRequestTemplateSigner signer * @return signers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { @@ -128,7 +128,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; @@ -240,10 +240,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java b/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java index a71f2a66..40a0a853 100644 --- a/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java +++ b/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java @@ -36,7 +36,7 @@ SubBulkSignerListCustomField.JSON_PROPERTY_NAME, SubBulkSignerListCustomField.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubBulkSignerListCustomField { public static final String JSON_PROPERTY_NAME = "name"; @@ -75,7 +75,7 @@ public SubBulkSignerListCustomField name(@jakarta.annotation.Nonnull String name * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -83,7 +83,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -100,7 +100,7 @@ public SubBulkSignerListCustomField value(@jakarta.annotation.Nonnull String val * @return value */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getValue() { @@ -108,7 +108,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@jakarta.annotation.Nonnull String value) { this.value = value; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubCC.java b/src/main/java/com/dropbox/sign/model/SubCC.java index 282cbf9f..9601b0d8 100644 --- a/src/main/java/com/dropbox/sign/model/SubCC.java +++ b/src/main/java/com/dropbox/sign/model/SubCC.java @@ -36,7 +36,7 @@ SubCC.JSON_PROPERTY_ROLE, SubCC.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubCC { public static final String JSON_PROPERTY_ROLE = "role"; @@ -75,7 +75,7 @@ public SubCC role(@jakarta.annotation.Nonnull String role) { * @return role */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRole() { @@ -83,7 +83,7 @@ public String getRole() { } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRole(@jakarta.annotation.Nonnull String role) { this.role = role; @@ -100,7 +100,7 @@ public SubCC emailAddress(@jakarta.annotation.Nonnull String emailAddress) { * @return emailAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { @@ -108,7 +108,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubCustomField.java b/src/main/java/com/dropbox/sign/model/SubCustomField.java index 425a8956..8a345c67 100644 --- a/src/main/java/com/dropbox/sign/model/SubCustomField.java +++ b/src/main/java/com/dropbox/sign/model/SubCustomField.java @@ -38,7 +38,7 @@ SubCustomField.JSON_PROPERTY_REQUIRED, SubCustomField.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubCustomField { public static final String JSON_PROPERTY_NAME = "name"; @@ -85,7 +85,7 @@ public SubCustomField name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -93,7 +93,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -110,7 +110,7 @@ public SubCustomField editor(@jakarta.annotation.Nullable String editor) { * @return editor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITOR) + @JsonProperty(value = JSON_PROPERTY_EDITOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEditor() { @@ -118,7 +118,7 @@ public String getEditor() { } - @JsonProperty(JSON_PROPERTY_EDITOR) + @JsonProperty(value = JSON_PROPERTY_EDITOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditor(@jakarta.annotation.Nullable String editor) { this.editor = editor; @@ -135,7 +135,7 @@ public SubCustomField required(@jakarta.annotation.Nullable Boolean required) { * @return required */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { @@ -143,7 +143,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; @@ -160,7 +160,7 @@ public SubCustomField value(@jakarta.annotation.Nullable String value) { * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -168,7 +168,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubEditorOptions.java b/src/main/java/com/dropbox/sign/model/SubEditorOptions.java index 5612b510..e6c848c4 100644 --- a/src/main/java/com/dropbox/sign/model/SubEditorOptions.java +++ b/src/main/java/com/dropbox/sign/model/SubEditorOptions.java @@ -36,7 +36,7 @@ SubEditorOptions.JSON_PROPERTY_ALLOW_EDIT_SIGNERS, SubEditorOptions.JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubEditorOptions { public static final String JSON_PROPERTY_ALLOW_EDIT_SIGNERS = "allow_edit_signers"; @@ -75,7 +75,7 @@ public SubEditorOptions allowEditSigners(@jakarta.annotation.Nullable Boolean al * @return allowEditSigners */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowEditSigners() { @@ -83,7 +83,7 @@ public Boolean getAllowEditSigners() { } - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowEditSigners(@jakarta.annotation.Nullable Boolean allowEditSigners) { this.allowEditSigners = allowEditSigners; @@ -100,7 +100,7 @@ public SubEditorOptions allowEditDocuments(@jakarta.annotation.Nullable Boolean * @return allowEditDocuments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowEditDocuments() { @@ -108,7 +108,7 @@ public Boolean getAllowEditDocuments() { } - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowEditDocuments(@jakarta.annotation.Nullable Boolean allowEditDocuments) { this.allowEditDocuments = allowEditDocuments; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubFieldOptions.java b/src/main/java/com/dropbox/sign/model/SubFieldOptions.java index 9d39fc48..08865897 100644 --- a/src/main/java/com/dropbox/sign/model/SubFieldOptions.java +++ b/src/main/java/com/dropbox/sign/model/SubFieldOptions.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ SubFieldOptions.JSON_PROPERTY_DATE_FORMAT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFieldOptions { /** @@ -113,7 +113,7 @@ public SubFieldOptions dateFormat(@jakarta.annotation.Nonnull DateFormatEnum dat * @return dateFormat */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE_FORMAT) + @JsonProperty(value = JSON_PROPERTY_DATE_FORMAT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public DateFormatEnum getDateFormat() { @@ -121,7 +121,7 @@ public DateFormatEnum getDateFormat() { } - @JsonProperty(JSON_PROPERTY_DATE_FORMAT) + @JsonProperty(value = JSON_PROPERTY_DATE_FORMAT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDateFormat(@jakarta.annotation.Nonnull DateFormatEnum dateFormat) { this.dateFormat = dateFormat; @@ -212,10 +212,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java b/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java index 9993e171..87ee9875 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java @@ -37,7 +37,7 @@ SubFormFieldGroup.JSON_PROPERTY_GROUP_LABEL, SubFormFieldGroup.JSON_PROPERTY_REQUIREMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFormFieldGroup { public static final String JSON_PROPERTY_GROUP_ID = "group_id"; @@ -80,7 +80,7 @@ public SubFormFieldGroup groupId(@jakarta.annotation.Nonnull String groupId) { * @return groupId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP_ID) + @JsonProperty(value = JSON_PROPERTY_GROUP_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroupId() { @@ -88,7 +88,7 @@ public String getGroupId() { } - @JsonProperty(JSON_PROPERTY_GROUP_ID) + @JsonProperty(value = JSON_PROPERTY_GROUP_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroupId(@jakarta.annotation.Nonnull String groupId) { this.groupId = groupId; @@ -105,7 +105,7 @@ public SubFormFieldGroup groupLabel(@jakarta.annotation.Nonnull String groupLabe * @return groupLabel */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP_LABEL) + @JsonProperty(value = JSON_PROPERTY_GROUP_LABEL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroupLabel() { @@ -113,7 +113,7 @@ public String getGroupLabel() { } - @JsonProperty(JSON_PROPERTY_GROUP_LABEL) + @JsonProperty(value = JSON_PROPERTY_GROUP_LABEL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroupLabel(@jakarta.annotation.Nonnull String groupLabel) { this.groupLabel = groupLabel; @@ -130,7 +130,7 @@ public SubFormFieldGroup requirement(@jakarta.annotation.Nonnull String requirem * @return requirement */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REQUIREMENT) + @JsonProperty(value = JSON_PROPERTY_REQUIREMENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRequirement() { @@ -138,7 +138,7 @@ public String getRequirement() { } - @JsonProperty(JSON_PROPERTY_REQUIREMENT) + @JsonProperty(value = JSON_PROPERTY_REQUIREMENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequirement(@jakarta.annotation.Nonnull String requirement) { this.requirement = requirement; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java b/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java index 7c6eda11..bf904678 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java @@ -42,7 +42,7 @@ SubFormFieldRule.JSON_PROPERTY_TRIGGERS, SubFormFieldRule.JSON_PROPERTY_ACTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFormFieldRule { public static final String JSON_PROPERTY_ID = "id"; @@ -89,7 +89,7 @@ public SubFormFieldRule id(@jakarta.annotation.Nonnull String id) { * @return id */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { @@ -97,7 +97,7 @@ public String getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; @@ -114,7 +114,7 @@ public SubFormFieldRule triggerOperator(@jakarta.annotation.Nonnull String trigg * @return triggerOperator */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIGGER_OPERATOR) + @JsonProperty(value = JSON_PROPERTY_TRIGGER_OPERATOR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriggerOperator() { @@ -122,7 +122,7 @@ public String getTriggerOperator() { } - @JsonProperty(JSON_PROPERTY_TRIGGER_OPERATOR) + @JsonProperty(value = JSON_PROPERTY_TRIGGER_OPERATOR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriggerOperator(@jakarta.annotation.Nonnull String triggerOperator) { this.triggerOperator = triggerOperator; @@ -147,7 +147,7 @@ public SubFormFieldRule addTriggersItem(SubFormFieldRuleTrigger triggersItem) { * @return triggers */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIGGERS) + @JsonProperty(value = JSON_PROPERTY_TRIGGERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTriggers() { @@ -155,7 +155,7 @@ public List getTriggers() { } - @JsonProperty(JSON_PROPERTY_TRIGGERS) + @JsonProperty(value = JSON_PROPERTY_TRIGGERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriggers(@jakarta.annotation.Nonnull List triggers) { this.triggers = triggers; @@ -180,7 +180,7 @@ public SubFormFieldRule addActionsItem(SubFormFieldRuleAction actionsItem) { * @return actions */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonProperty(value = JSON_PROPERTY_ACTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getActions() { @@ -188,7 +188,7 @@ public List getActions() { } - @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonProperty(value = JSON_PROPERTY_ACTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setActions(@jakarta.annotation.Nonnull List actions) { this.actions = actions; @@ -342,10 +342,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java b/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java index 096164a3..63139690 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java @@ -38,7 +38,7 @@ SubFormFieldRuleAction.JSON_PROPERTY_FIELD_ID, SubFormFieldRuleAction.JSON_PROPERTY_GROUP_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFormFieldRuleAction { public static final String JSON_PROPERTY_HIDDEN = "hidden"; @@ -122,7 +122,7 @@ public SubFormFieldRuleAction hidden(@jakarta.annotation.Nonnull Boolean hidden) * @return hidden */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonProperty(value = JSON_PROPERTY_HIDDEN, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getHidden() { @@ -130,7 +130,7 @@ public Boolean getHidden() { } - @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonProperty(value = JSON_PROPERTY_HIDDEN, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setHidden(@jakarta.annotation.Nonnull Boolean hidden) { this.hidden = hidden; @@ -147,7 +147,7 @@ public SubFormFieldRuleAction type(@jakarta.annotation.Nonnull TypeEnum type) { * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TypeEnum getType() { @@ -155,7 +155,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; @@ -172,7 +172,7 @@ public SubFormFieldRuleAction fieldId(@jakarta.annotation.Nullable String fieldI * @return fieldId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonProperty(value = JSON_PROPERTY_FIELD_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFieldId() { @@ -180,7 +180,7 @@ public String getFieldId() { } - @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonProperty(value = JSON_PROPERTY_FIELD_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldId(@jakarta.annotation.Nullable String fieldId) { this.fieldId = fieldId; @@ -197,7 +197,7 @@ public SubFormFieldRuleAction groupId(@jakarta.annotation.Nullable String groupI * @return groupId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP_ID) + @JsonProperty(value = JSON_PROPERTY_GROUP_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroupId() { @@ -205,7 +205,7 @@ public String getGroupId() { } - @JsonProperty(JSON_PROPERTY_GROUP_ID) + @JsonProperty(value = JSON_PROPERTY_GROUP_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupId(@jakarta.annotation.Nullable String groupId) { this.groupId = groupId; @@ -359,10 +359,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java b/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java index d29de9d1..43ea7d2f 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java @@ -40,7 +40,7 @@ SubFormFieldRuleTrigger.JSON_PROPERTY_VALUE, SubFormFieldRuleTrigger.JSON_PROPERTY_VALUES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFormFieldRuleTrigger { public static final String JSON_PROPERTY_ID = "id"; @@ -128,7 +128,7 @@ public SubFormFieldRuleTrigger id(@jakarta.annotation.Nonnull String id) { * @return id */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { @@ -136,7 +136,7 @@ public String getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; @@ -153,7 +153,7 @@ public SubFormFieldRuleTrigger operator(@jakarta.annotation.Nonnull OperatorEnum * @return operator */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonProperty(value = JSON_PROPERTY_OPERATOR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OperatorEnum getOperator() { @@ -161,7 +161,7 @@ public OperatorEnum getOperator() { } - @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonProperty(value = JSON_PROPERTY_OPERATOR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOperator(@jakarta.annotation.Nonnull OperatorEnum operator) { this.operator = operator; @@ -178,7 +178,7 @@ public SubFormFieldRuleTrigger value(@jakarta.annotation.Nullable String value) * @return value */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { @@ -186,7 +186,7 @@ public String getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; @@ -211,7 +211,7 @@ public SubFormFieldRuleTrigger addValuesItem(String valuesItem) { * @return values */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { @@ -219,7 +219,7 @@ public List getValues() { } - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValues(@jakarta.annotation.Nullable List values) { this.values = values; @@ -373,10 +373,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java index 2a37ad18..c3a36f81 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java @@ -48,7 +48,7 @@ SubFormFieldsPerDocumentBase.JSON_PROPERTY_NAME, SubFormFieldsPerDocumentBase.JSON_PROPERTY_PAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -140,7 +140,7 @@ public SubFormFieldsPerDocumentBase documentIndex(@jakarta.annotation.Nonnull In * @return documentIndex */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DOCUMENT_INDEX) + @JsonProperty(value = JSON_PROPERTY_DOCUMENT_INDEX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getDocumentIndex() { @@ -148,7 +148,7 @@ public Integer getDocumentIndex() { } - @JsonProperty(JSON_PROPERTY_DOCUMENT_INDEX) + @JsonProperty(value = JSON_PROPERTY_DOCUMENT_INDEX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDocumentIndex(@jakarta.annotation.Nonnull Integer documentIndex) { this.documentIndex = documentIndex; @@ -165,7 +165,7 @@ public SubFormFieldsPerDocumentBase apiId(@jakarta.annotation.Nonnull String api * @return apiId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getApiId() { @@ -173,7 +173,7 @@ public String getApiId() { } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setApiId(@jakarta.annotation.Nonnull String apiId) { this.apiId = apiId; @@ -190,7 +190,7 @@ public SubFormFieldsPerDocumentBase height(@jakarta.annotation.Nonnull Integer h * @return height */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getHeight() { @@ -198,7 +198,7 @@ public Integer getHeight() { } - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setHeight(@jakarta.annotation.Nonnull Integer height) { this.height = height; @@ -215,7 +215,7 @@ public SubFormFieldsPerDocumentBase required(@jakarta.annotation.Nonnull Boolean * @return required */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getRequired() { @@ -223,7 +223,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequired(@jakarta.annotation.Nonnull Boolean required) { this.required = required; @@ -244,7 +244,7 @@ public SubFormFieldsPerDocumentBase signer(Integer signer) { * @return signer */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSigner() { @@ -252,7 +252,7 @@ public String getSigner() { } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigner(@jakarta.annotation.Nonnull String signer) { this.signer = signer; @@ -273,7 +273,7 @@ public SubFormFieldsPerDocumentBase type(@jakarta.annotation.Nonnull String type * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -281,7 +281,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -298,7 +298,7 @@ public SubFormFieldsPerDocumentBase width(@jakarta.annotation.Nonnull Integer wi * @return width */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getWidth() { @@ -306,7 +306,7 @@ public Integer getWidth() { } - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setWidth(@jakarta.annotation.Nonnull Integer width) { this.width = width; @@ -323,7 +323,7 @@ public SubFormFieldsPerDocumentBase x(@jakarta.annotation.Nonnull Integer x) { * @return x */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getX() { @@ -331,7 +331,7 @@ public Integer getX() { } - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setX(@jakarta.annotation.Nonnull Integer x) { this.x = x; @@ -348,7 +348,7 @@ public SubFormFieldsPerDocumentBase y(@jakarta.annotation.Nonnull Integer y) { * @return y */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getY() { @@ -356,7 +356,7 @@ public Integer getY() { } - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setY(@jakarta.annotation.Nonnull Integer y) { this.y = y; @@ -373,7 +373,7 @@ public SubFormFieldsPerDocumentBase name(@jakarta.annotation.Nullable String nam * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -381,7 +381,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -398,7 +398,7 @@ public SubFormFieldsPerDocumentBase page(@jakarta.annotation.Nullable Integer pa * @return page */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAGE) + @JsonProperty(value = JSON_PROPERTY_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPage() { @@ -406,7 +406,7 @@ public Integer getPage() { } - @JsonProperty(JSON_PROPERTY_PAGE) + @JsonProperty(value = JSON_PROPERTY_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPage(@jakarta.annotation.Nullable Integer page) { this.page = page; @@ -707,10 +707,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java index 660550c4..3f288ac0 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java @@ -41,7 +41,7 @@ SubFormFieldsPerDocumentCheckbox.JSON_PROPERTY_IS_CHECKED, SubFormFieldsPerDocumentCheckbox.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -89,7 +89,7 @@ public SubFormFieldsPerDocumentCheckbox type(@jakarta.annotation.Nonnull String * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -97,7 +97,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -114,7 +114,7 @@ public SubFormFieldsPerDocumentCheckbox isChecked(@jakarta.annotation.Nonnull Bo * @return isChecked */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_IS_CHECKED) + @JsonProperty(value = JSON_PROPERTY_IS_CHECKED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getIsChecked() { @@ -122,7 +122,7 @@ public Boolean getIsChecked() { } - @JsonProperty(JSON_PROPERTY_IS_CHECKED) + @JsonProperty(value = JSON_PROPERTY_IS_CHECKED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIsChecked(@jakarta.annotation.Nonnull Boolean isChecked) { this.isChecked = isChecked; @@ -139,7 +139,7 @@ public SubFormFieldsPerDocumentCheckbox group(@jakarta.annotation.Nullable Strin * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -147,7 +147,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -283,10 +283,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java index 6275827f..6424073c 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ SubFormFieldsPerDocumentCheckboxMerge.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public SubFormFieldsPerDocumentCheckboxMerge type(@jakarta.annotation.Nonnull St * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java index 314aef5a..d83c5673 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java @@ -41,7 +41,7 @@ SubFormFieldsPerDocumentDateSigned.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentDateSigned.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -152,7 +152,7 @@ public SubFormFieldsPerDocumentDateSigned type(@jakarta.annotation.Nonnull Strin * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -160,7 +160,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -177,7 +177,7 @@ public SubFormFieldsPerDocumentDateSigned fontFamily(@jakarta.annotation.Nullabl * @return fontFamily */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { @@ -185,7 +185,7 @@ public FontFamilyEnum getFontFamily() { } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -202,7 +202,7 @@ public SubFormFieldsPerDocumentDateSigned fontSize(@jakarta.annotation.Nullable * @return fontSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { @@ -210,7 +210,7 @@ public Integer getFontSize() { } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -346,10 +346,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java index 154fec95..05ca6785 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java @@ -45,7 +45,7 @@ SubFormFieldsPerDocumentDropdown.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentDropdown.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -164,7 +164,7 @@ public SubFormFieldsPerDocumentDropdown type(@jakarta.annotation.Nonnull String * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -172,7 +172,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -197,7 +197,7 @@ public SubFormFieldsPerDocumentDropdown addOptionsItem(String optionsItem) { * @return options */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getOptions() { @@ -205,7 +205,7 @@ public List getOptions() { } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOptions(@jakarta.annotation.Nonnull List options) { this.options = options; @@ -222,7 +222,7 @@ public SubFormFieldsPerDocumentDropdown content(@jakarta.annotation.Nullable Str * @return content */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getContent() { @@ -230,7 +230,7 @@ public String getContent() { } - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContent(@jakarta.annotation.Nullable String content) { this.content = content; @@ -247,7 +247,7 @@ public SubFormFieldsPerDocumentDropdown fontFamily(@jakarta.annotation.Nullable * @return fontFamily */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { @@ -255,7 +255,7 @@ public FontFamilyEnum getFontFamily() { } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -272,7 +272,7 @@ public SubFormFieldsPerDocumentDropdown fontSize(@jakarta.annotation.Nullable In * @return fontSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { @@ -280,7 +280,7 @@ public Integer getFontSize() { } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -458,10 +458,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java index 491da064..7af0cca3 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java @@ -43,7 +43,7 @@ SubFormFieldsPerDocumentHyperlink.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentHyperlink.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -162,7 +162,7 @@ public SubFormFieldsPerDocumentHyperlink type(@jakarta.annotation.Nonnull String * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -170,7 +170,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -187,7 +187,7 @@ public SubFormFieldsPerDocumentHyperlink content(@jakarta.annotation.Nonnull Str * @return content */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getContent() { @@ -195,7 +195,7 @@ public String getContent() { } - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setContent(@jakarta.annotation.Nonnull String content) { this.content = content; @@ -212,7 +212,7 @@ public SubFormFieldsPerDocumentHyperlink contentUrl(@jakarta.annotation.Nonnull * @return contentUrl */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONTENT_URL) + @JsonProperty(value = JSON_PROPERTY_CONTENT_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getContentUrl() { @@ -220,7 +220,7 @@ public String getContentUrl() { } - @JsonProperty(JSON_PROPERTY_CONTENT_URL) + @JsonProperty(value = JSON_PROPERTY_CONTENT_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setContentUrl(@jakarta.annotation.Nonnull String contentUrl) { this.contentUrl = contentUrl; @@ -237,7 +237,7 @@ public SubFormFieldsPerDocumentHyperlink fontFamily(@jakarta.annotation.Nullable * @return fontFamily */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { @@ -245,7 +245,7 @@ public FontFamilyEnum getFontFamily() { } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -262,7 +262,7 @@ public SubFormFieldsPerDocumentHyperlink fontSize(@jakarta.annotation.Nullable I * @return fontSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { @@ -270,7 +270,7 @@ public Integer getFontSize() { } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -448,10 +448,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java index 9c522f0f..3dc94e44 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ SubFormFieldsPerDocumentInitials.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public SubFormFieldsPerDocumentInitials type(@jakarta.annotation.Nonnull String * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java index e2db055c..a491b37c 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java @@ -41,7 +41,7 @@ SubFormFieldsPerDocumentRadio.JSON_PROPERTY_GROUP, SubFormFieldsPerDocumentRadio.JSON_PROPERTY_IS_CHECKED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -89,7 +89,7 @@ public SubFormFieldsPerDocumentRadio type(@jakarta.annotation.Nonnull String typ * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -97,7 +97,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -114,7 +114,7 @@ public SubFormFieldsPerDocumentRadio group(@jakarta.annotation.Nonnull String gr * @return group */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroup() { @@ -122,7 +122,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroup(@jakarta.annotation.Nonnull String group) { this.group = group; @@ -139,7 +139,7 @@ public SubFormFieldsPerDocumentRadio isChecked(@jakarta.annotation.Nonnull Boole * @return isChecked */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_IS_CHECKED) + @JsonProperty(value = JSON_PROPERTY_IS_CHECKED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getIsChecked() { @@ -147,7 +147,7 @@ public Boolean getIsChecked() { } - @JsonProperty(JSON_PROPERTY_IS_CHECKED) + @JsonProperty(value = JSON_PROPERTY_IS_CHECKED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIsChecked(@jakarta.annotation.Nonnull Boolean isChecked) { this.isChecked = isChecked; @@ -283,10 +283,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java index fd72a6bd..97257414 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ SubFormFieldsPerDocumentSignature.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public SubFormFieldsPerDocumentSignature type(@jakarta.annotation.Nonnull String * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java index 396c85db..054d32cc 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java @@ -49,7 +49,7 @@ SubFormFieldsPerDocumentText.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentText.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -243,7 +243,7 @@ public SubFormFieldsPerDocumentText type(@jakarta.annotation.Nonnull String type * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -251,7 +251,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -268,7 +268,7 @@ public SubFormFieldsPerDocumentText placeholder(@jakarta.annotation.Nullable Str * @return placeholder */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PLACEHOLDER) + @JsonProperty(value = JSON_PROPERTY_PLACEHOLDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPlaceholder() { @@ -276,7 +276,7 @@ public String getPlaceholder() { } - @JsonProperty(JSON_PROPERTY_PLACEHOLDER) + @JsonProperty(value = JSON_PROPERTY_PLACEHOLDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPlaceholder(@jakarta.annotation.Nullable String placeholder) { this.placeholder = placeholder; @@ -293,7 +293,7 @@ public SubFormFieldsPerDocumentText autoFillType(@jakarta.annotation.Nullable St * @return autoFillType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTO_FILL_TYPE) + @JsonProperty(value = JSON_PROPERTY_AUTO_FILL_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAutoFillType() { @@ -301,7 +301,7 @@ public String getAutoFillType() { } - @JsonProperty(JSON_PROPERTY_AUTO_FILL_TYPE) + @JsonProperty(value = JSON_PROPERTY_AUTO_FILL_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAutoFillType(@jakarta.annotation.Nullable String autoFillType) { this.autoFillType = autoFillType; @@ -318,7 +318,7 @@ public SubFormFieldsPerDocumentText linkId(@jakarta.annotation.Nullable String l * @return linkId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LINK_ID) + @JsonProperty(value = JSON_PROPERTY_LINK_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLinkId() { @@ -326,7 +326,7 @@ public String getLinkId() { } - @JsonProperty(JSON_PROPERTY_LINK_ID) + @JsonProperty(value = JSON_PROPERTY_LINK_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkId(@jakarta.annotation.Nullable String linkId) { this.linkId = linkId; @@ -343,7 +343,7 @@ public SubFormFieldsPerDocumentText masked(@jakarta.annotation.Nullable Boolean * @return masked */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MASKED) + @JsonProperty(value = JSON_PROPERTY_MASKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMasked() { @@ -351,7 +351,7 @@ public Boolean getMasked() { } - @JsonProperty(JSON_PROPERTY_MASKED) + @JsonProperty(value = JSON_PROPERTY_MASKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMasked(@jakarta.annotation.Nullable Boolean masked) { this.masked = masked; @@ -368,7 +368,7 @@ public SubFormFieldsPerDocumentText validationType(@jakarta.annotation.Nullable * @return validationType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ValidationTypeEnum getValidationType() { @@ -376,7 +376,7 @@ public ValidationTypeEnum getValidationType() { } - @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationType(@jakarta.annotation.Nullable ValidationTypeEnum validationType) { this.validationType = validationType; @@ -393,7 +393,7 @@ public SubFormFieldsPerDocumentText validationCustomRegex(@jakarta.annotation.Nu * @return validationCustomRegex */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValidationCustomRegex() { @@ -401,7 +401,7 @@ public String getValidationCustomRegex() { } - @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationCustomRegex(@jakarta.annotation.Nullable String validationCustomRegex) { this.validationCustomRegex = validationCustomRegex; @@ -418,7 +418,7 @@ public SubFormFieldsPerDocumentText validationCustomRegexFormatLabel(@jakarta.an * @return validationCustomRegexFormatLabel */ @jakarta.annotation.Nullable - @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 String getValidationCustomRegexFormatLabel() { @@ -426,7 +426,7 @@ public String getValidationCustomRegexFormatLabel() { } - @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(@jakarta.annotation.Nullable String validationCustomRegexFormatLabel) { this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel; @@ -443,7 +443,7 @@ public SubFormFieldsPerDocumentText content(@jakarta.annotation.Nullable String * @return content */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getContent() { @@ -451,7 +451,7 @@ public String getContent() { } - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContent(@jakarta.annotation.Nullable String content) { this.content = content; @@ -468,7 +468,7 @@ public SubFormFieldsPerDocumentText fontFamily(@jakarta.annotation.Nullable Font * @return fontFamily */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { @@ -476,7 +476,7 @@ public FontFamilyEnum getFontFamily() { } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -493,7 +493,7 @@ public SubFormFieldsPerDocumentText fontSize(@jakarta.annotation.Nullable Intege * @return fontSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { @@ -501,7 +501,7 @@ public Integer getFontSize() { } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -805,10 +805,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java index 1024f05c..21040d38 100644 --- a/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java +++ b/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java @@ -41,7 +41,7 @@ SubFormFieldsPerDocumentTextMerge.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentTextMerge.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -152,7 +152,7 @@ public SubFormFieldsPerDocumentTextMerge type(@jakarta.annotation.Nonnull String * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -160,7 +160,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -177,7 +177,7 @@ public SubFormFieldsPerDocumentTextMerge fontFamily(@jakarta.annotation.Nullable * @return fontFamily */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { @@ -185,7 +185,7 @@ public FontFamilyEnum getFontFamily() { } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -202,7 +202,7 @@ public SubFormFieldsPerDocumentTextMerge fontSize(@jakarta.annotation.Nullable I * @return fontSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { @@ -210,7 +210,7 @@ public Integer getFontSize() { } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -346,10 +346,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/SubMergeField.java b/src/main/java/com/dropbox/sign/model/SubMergeField.java index 9b039b46..ead4dcaa 100644 --- a/src/main/java/com/dropbox/sign/model/SubMergeField.java +++ b/src/main/java/com/dropbox/sign/model/SubMergeField.java @@ -36,7 +36,7 @@ SubMergeField.JSON_PROPERTY_NAME, SubMergeField.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubMergeField { public static final String JSON_PROPERTY_NAME = "name"; @@ -110,7 +110,7 @@ public SubMergeField name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -118,7 +118,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -135,7 +135,7 @@ public SubMergeField type(@jakarta.annotation.Nonnull TypeEnum type) { * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TypeEnum getType() { @@ -143,7 +143,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; @@ -255,10 +255,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubOAuth.java b/src/main/java/com/dropbox/sign/model/SubOAuth.java index c5a77957..6f1105cf 100644 --- a/src/main/java/com/dropbox/sign/model/SubOAuth.java +++ b/src/main/java/com/dropbox/sign/model/SubOAuth.java @@ -38,7 +38,7 @@ SubOAuth.JSON_PROPERTY_CALLBACK_URL, SubOAuth.JSON_PROPERTY_SCOPES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubOAuth { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; @@ -124,7 +124,7 @@ public SubOAuth callbackUrl(@jakarta.annotation.Nullable String callbackUrl) { * @return callbackUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { @@ -132,7 +132,7 @@ public String getCallbackUrl() { } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -157,7 +157,7 @@ public SubOAuth addScopesItem(ScopesEnum scopesItem) { * @return scopes */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SCOPES) + @JsonProperty(value = JSON_PROPERTY_SCOPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getScopes() { @@ -165,7 +165,7 @@ public List getScopes() { } - @JsonProperty(JSON_PROPERTY_SCOPES) + @JsonProperty(value = JSON_PROPERTY_SCOPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScopes(@jakarta.annotation.Nullable List scopes) { this.scopes = scopes; @@ -277,10 +277,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubOptions.java b/src/main/java/com/dropbox/sign/model/SubOptions.java index 2ff1672a..380154e5 100644 --- a/src/main/java/com/dropbox/sign/model/SubOptions.java +++ b/src/main/java/com/dropbox/sign/model/SubOptions.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ SubOptions.JSON_PROPERTY_CAN_INSERT_EVERYWHERE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubOptions { public static final String JSON_PROPERTY_CAN_INSERT_EVERYWHERE = "can_insert_everywhere"; @@ -70,7 +70,7 @@ public SubOptions canInsertEverywhere(@jakarta.annotation.Nullable Boolean canIn * @return canInsertEverywhere */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) + @JsonProperty(value = JSON_PROPERTY_CAN_INSERT_EVERYWHERE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getCanInsertEverywhere() { @@ -78,7 +78,7 @@ public Boolean getCanInsertEverywhere() { } - @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) + @JsonProperty(value = JSON_PROPERTY_CAN_INSERT_EVERYWHERE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCanInsertEverywhere(@jakarta.annotation.Nullable Boolean canInsertEverywhere) { this.canInsertEverywhere = canInsertEverywhere; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java b/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java index e3906ba3..497ccbaa 100644 --- a/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java +++ b/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java @@ -40,7 +40,7 @@ SubSignatureRequestGroupedSigners.JSON_PROPERTY_SIGNERS, SubSignatureRequestGroupedSigners.JSON_PROPERTY_ORDER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubSignatureRequestGroupedSigners { public static final String JSON_PROPERTY_GROUP = "group"; @@ -83,7 +83,7 @@ public SubSignatureRequestGroupedSigners group(@jakarta.annotation.Nonnull Strin * @return group */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroup() { @@ -91,7 +91,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroup(@jakarta.annotation.Nonnull String group) { this.group = group; @@ -116,7 +116,7 @@ public SubSignatureRequestGroupedSigners addSignersItem(SubSignatureRequestSigne * @return signers */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { @@ -124,7 +124,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; @@ -141,7 +141,7 @@ public SubSignatureRequestGroupedSigners order(@jakarta.annotation.Nullable Inte * @return order */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { @@ -149,7 +149,7 @@ public Integer getOrder() { } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; @@ -282,10 +282,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java b/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java index c0d16fef..02634fc4 100644 --- a/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java +++ b/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java @@ -40,7 +40,7 @@ SubSignatureRequestSigner.JSON_PROPERTY_SMS_PHONE_NUMBER, SubSignatureRequestSigner.JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubSignatureRequestSigner { public static final String JSON_PROPERTY_NAME = "name"; @@ -130,7 +130,7 @@ public SubSignatureRequestSigner name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -138,7 +138,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -155,7 +155,7 @@ public SubSignatureRequestSigner emailAddress(@jakarta.annotation.Nonnull String * @return emailAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { @@ -163,7 +163,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -180,7 +180,7 @@ public SubSignatureRequestSigner order(@jakarta.annotation.Nullable Integer orde * @return order */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { @@ -188,7 +188,7 @@ public Integer getOrder() { } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; @@ -205,7 +205,7 @@ public SubSignatureRequestSigner pin(@jakarta.annotation.Nullable String pin) { * @return pin */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PIN) + @JsonProperty(value = JSON_PROPERTY_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPin() { @@ -213,7 +213,7 @@ public String getPin() { } - @JsonProperty(JSON_PROPERTY_PIN) + @JsonProperty(value = JSON_PROPERTY_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPin(@jakarta.annotation.Nullable String pin) { this.pin = pin; @@ -230,7 +230,7 @@ public SubSignatureRequestSigner smsPhoneNumber(@jakarta.annotation.Nullable Str * @return smsPhoneNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmsPhoneNumber() { @@ -238,7 +238,7 @@ public String getSmsPhoneNumber() { } - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; @@ -255,7 +255,7 @@ public SubSignatureRequestSigner smsPhoneNumberType(@jakarta.annotation.Nullable * @return smsPhoneNumberType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SmsPhoneNumberTypeEnum getSmsPhoneNumberType() { @@ -263,7 +263,7 @@ public SmsPhoneNumberTypeEnum getSmsPhoneNumberType() { } - @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(@jakarta.annotation.Nullable SmsPhoneNumberTypeEnum smsPhoneNumberType) { this.smsPhoneNumberType = smsPhoneNumberType; @@ -459,10 +459,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java b/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java index c5c34786..123f4250 100644 --- a/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java +++ b/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java @@ -40,7 +40,7 @@ SubSignatureRequestTemplateSigner.JSON_PROPERTY_SMS_PHONE_NUMBER, SubSignatureRequestTemplateSigner.JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubSignatureRequestTemplateSigner { public static final String JSON_PROPERTY_ROLE = "role"; @@ -130,7 +130,7 @@ public SubSignatureRequestTemplateSigner role(@jakarta.annotation.Nonnull String * @return role */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRole() { @@ -138,7 +138,7 @@ public String getRole() { } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRole(@jakarta.annotation.Nonnull String role) { this.role = role; @@ -155,7 +155,7 @@ public SubSignatureRequestTemplateSigner name(@jakarta.annotation.Nonnull String * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -163,7 +163,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -180,7 +180,7 @@ public SubSignatureRequestTemplateSigner emailAddress(@jakarta.annotation.Nonnul * @return emailAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { @@ -188,7 +188,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -205,7 +205,7 @@ public SubSignatureRequestTemplateSigner pin(@jakarta.annotation.Nullable String * @return pin */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PIN) + @JsonProperty(value = JSON_PROPERTY_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPin() { @@ -213,7 +213,7 @@ public String getPin() { } - @JsonProperty(JSON_PROPERTY_PIN) + @JsonProperty(value = JSON_PROPERTY_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPin(@jakarta.annotation.Nullable String pin) { this.pin = pin; @@ -230,7 +230,7 @@ public SubSignatureRequestTemplateSigner smsPhoneNumber(@jakarta.annotation.Null * @return smsPhoneNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmsPhoneNumber() { @@ -238,7 +238,7 @@ public String getSmsPhoneNumber() { } - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; @@ -255,7 +255,7 @@ public SubSignatureRequestTemplateSigner smsPhoneNumberType(@jakarta.annotation. * @return smsPhoneNumberType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SmsPhoneNumberTypeEnum getSmsPhoneNumberType() { @@ -263,7 +263,7 @@ public SmsPhoneNumberTypeEnum getSmsPhoneNumberType() { } - @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(@jakarta.annotation.Nullable SmsPhoneNumberTypeEnum smsPhoneNumberType) { this.smsPhoneNumberType = smsPhoneNumberType; @@ -459,10 +459,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubSigningOptions.java b/src/main/java/com/dropbox/sign/model/SubSigningOptions.java index 2fe79900..aa30bae9 100644 --- a/src/main/java/com/dropbox/sign/model/SubSigningOptions.java +++ b/src/main/java/com/dropbox/sign/model/SubSigningOptions.java @@ -40,7 +40,7 @@ SubSigningOptions.JSON_PROPERTY_UPLOAD, SubSigningOptions.JSON_PROPERTY_FORCE_ADVANCED_SIGNATURE_DETAILS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubSigningOptions { /** @@ -134,7 +134,7 @@ public SubSigningOptions defaultType(@jakarta.annotation.Nonnull DefaultTypeEnum * @return defaultType */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEFAULT_TYPE) + @JsonProperty(value = JSON_PROPERTY_DEFAULT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public DefaultTypeEnum getDefaultType() { @@ -142,7 +142,7 @@ public DefaultTypeEnum getDefaultType() { } - @JsonProperty(JSON_PROPERTY_DEFAULT_TYPE) + @JsonProperty(value = JSON_PROPERTY_DEFAULT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDefaultType(@jakarta.annotation.Nonnull DefaultTypeEnum defaultType) { this.defaultType = defaultType; @@ -159,7 +159,7 @@ public SubSigningOptions draw(@jakarta.annotation.Nullable Boolean draw) { * @return draw */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DRAW) + @JsonProperty(value = JSON_PROPERTY_DRAW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDraw() { @@ -167,7 +167,7 @@ public Boolean getDraw() { } - @JsonProperty(JSON_PROPERTY_DRAW) + @JsonProperty(value = JSON_PROPERTY_DRAW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDraw(@jakarta.annotation.Nullable Boolean draw) { this.draw = draw; @@ -184,7 +184,7 @@ public SubSigningOptions phone(@jakarta.annotation.Nullable Boolean phone) { * @return phone */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPhone() { @@ -192,7 +192,7 @@ public Boolean getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable Boolean phone) { this.phone = phone; @@ -209,7 +209,7 @@ public SubSigningOptions type(@jakarta.annotation.Nullable Boolean type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getType() { @@ -217,7 +217,7 @@ public Boolean getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable Boolean type) { this.type = type; @@ -234,7 +234,7 @@ public SubSigningOptions upload(@jakarta.annotation.Nullable Boolean upload) { * @return upload */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPLOAD) + @JsonProperty(value = JSON_PROPERTY_UPLOAD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUpload() { @@ -242,7 +242,7 @@ public Boolean getUpload() { } - @JsonProperty(JSON_PROPERTY_UPLOAD) + @JsonProperty(value = JSON_PROPERTY_UPLOAD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUpload(@jakarta.annotation.Nullable Boolean upload) { this.upload = upload; @@ -259,7 +259,7 @@ public SubSigningOptions forceAdvancedSignatureDetails(@jakarta.annotation.Nulla * @return forceAdvancedSignatureDetails */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_ADVANCED_SIGNATURE_DETAILS) + @JsonProperty(value = JSON_PROPERTY_FORCE_ADVANCED_SIGNATURE_DETAILS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceAdvancedSignatureDetails() { @@ -267,7 +267,7 @@ public Boolean getForceAdvancedSignatureDetails() { } - @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(@jakarta.annotation.Nullable Boolean forceAdvancedSignatureDetails) { this.forceAdvancedSignatureDetails = forceAdvancedSignatureDetails; @@ -463,10 +463,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubTeamResponse.java b/src/main/java/com/dropbox/sign/model/SubTeamResponse.java index 5ff941e7..74c7d8ca 100644 --- a/src/main/java/com/dropbox/sign/model/SubTeamResponse.java +++ b/src/main/java/com/dropbox/sign/model/SubTeamResponse.java @@ -36,7 +36,7 @@ SubTeamResponse.JSON_PROPERTY_TEAM_ID, SubTeamResponse.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubTeamResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; @@ -75,7 +75,7 @@ public SubTeamResponse teamId(@jakarta.annotation.Nullable String teamId) { * @return teamId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { @@ -83,7 +83,7 @@ public String getTeamId() { } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; @@ -100,7 +100,7 @@ public SubTeamResponse name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -108,7 +108,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubTemplateRole.java b/src/main/java/com/dropbox/sign/model/SubTemplateRole.java index 36ebe7ad..040f16d8 100644 --- a/src/main/java/com/dropbox/sign/model/SubTemplateRole.java +++ b/src/main/java/com/dropbox/sign/model/SubTemplateRole.java @@ -36,7 +36,7 @@ SubTemplateRole.JSON_PROPERTY_NAME, SubTemplateRole.JSON_PROPERTY_ORDER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubTemplateRole { public static final String JSON_PROPERTY_NAME = "name"; @@ -75,7 +75,7 @@ public SubTemplateRole name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -83,7 +83,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -100,7 +100,7 @@ public SubTemplateRole order(@jakarta.annotation.Nullable Integer order) { * @return order */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { @@ -108,7 +108,7 @@ public Integer getOrder() { } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java b/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java index 0e08dbdb..93d50991 100644 --- a/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java +++ b/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java @@ -37,7 +37,7 @@ SubUnclaimedDraftSigner.JSON_PROPERTY_NAME, SubUnclaimedDraftSigner.JSON_PROPERTY_ORDER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubUnclaimedDraftSigner { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -80,7 +80,7 @@ public SubUnclaimedDraftSigner emailAddress(@jakarta.annotation.Nonnull String e * @return emailAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { @@ -88,7 +88,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -105,7 +105,7 @@ public SubUnclaimedDraftSigner name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -113,7 +113,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -130,7 +130,7 @@ public SubUnclaimedDraftSigner order(@jakarta.annotation.Nullable Integer order) * @return order */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { @@ -138,7 +138,7 @@ public Integer getOrder() { } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java b/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java index 7cb71618..85d3988b 100644 --- a/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java +++ b/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java @@ -37,7 +37,7 @@ SubUnclaimedDraftTemplateSigner.JSON_PROPERTY_NAME, SubUnclaimedDraftTemplateSigner.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubUnclaimedDraftTemplateSigner { public static final String JSON_PROPERTY_ROLE = "role"; @@ -80,7 +80,7 @@ public SubUnclaimedDraftTemplateSigner role(@jakarta.annotation.Nonnull String r * @return role */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRole() { @@ -88,7 +88,7 @@ public String getRole() { } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRole(@jakarta.annotation.Nonnull String role) { this.role = role; @@ -105,7 +105,7 @@ public SubUnclaimedDraftTemplateSigner name(@jakarta.annotation.Nonnull String n * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -113,7 +113,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -130,7 +130,7 @@ public SubUnclaimedDraftTemplateSigner emailAddress(@jakarta.annotation.Nonnull * @return emailAddress */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { @@ -138,7 +138,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java b/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java index 0b98b9da..8bf254a2 100644 --- a/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java +++ b/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java @@ -49,7 +49,7 @@ SubWhiteLabelingOptions.JSON_PROPERTY_TEXT_COLOR2, SubWhiteLabelingOptions.JSON_PROPERTY_RESET_TO_DEFAULT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubWhiteLabelingOptions { public static final String JSON_PROPERTY_HEADER_BACKGROUND_COLOR = "header_background_color"; @@ -175,7 +175,7 @@ public SubWhiteLabelingOptions headerBackgroundColor(@jakarta.annotation.Nullabl * @return headerBackgroundColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_HEADER_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHeaderBackgroundColor() { @@ -183,7 +183,7 @@ public String getHeaderBackgroundColor() { } - @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_HEADER_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeaderBackgroundColor(@jakarta.annotation.Nullable String headerBackgroundColor) { this.headerBackgroundColor = headerBackgroundColor; @@ -200,7 +200,7 @@ public SubWhiteLabelingOptions legalVersion(@jakarta.annotation.Nullable LegalVe * @return legalVersion */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) + @JsonProperty(value = JSON_PROPERTY_LEGAL_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public LegalVersionEnum getLegalVersion() { @@ -208,7 +208,7 @@ public LegalVersionEnum getLegalVersion() { } - @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) + @JsonProperty(value = JSON_PROPERTY_LEGAL_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLegalVersion(@jakarta.annotation.Nullable LegalVersionEnum legalVersion) { this.legalVersion = legalVersion; @@ -225,7 +225,7 @@ public SubWhiteLabelingOptions linkColor(@jakarta.annotation.Nullable String lin * @return linkColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LINK_COLOR) + @JsonProperty(value = JSON_PROPERTY_LINK_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLinkColor() { @@ -233,7 +233,7 @@ public String getLinkColor() { } - @JsonProperty(JSON_PROPERTY_LINK_COLOR) + @JsonProperty(value = JSON_PROPERTY_LINK_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkColor(@jakarta.annotation.Nullable String linkColor) { this.linkColor = linkColor; @@ -250,7 +250,7 @@ public SubWhiteLabelingOptions pageBackgroundColor(@jakarta.annotation.Nullable * @return pageBackgroundColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_PAGE_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPageBackgroundColor() { @@ -258,7 +258,7 @@ public String getPageBackgroundColor() { } - @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_PAGE_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPageBackgroundColor(@jakarta.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; @@ -275,7 +275,7 @@ public SubWhiteLabelingOptions primaryButtonColor(@jakarta.annotation.Nullable S * @return primaryButtonColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonColor() { @@ -283,7 +283,7 @@ public String getPrimaryButtonColor() { } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonColor(@jakarta.annotation.Nullable String primaryButtonColor) { this.primaryButtonColor = primaryButtonColor; @@ -300,7 +300,7 @@ public SubWhiteLabelingOptions primaryButtonColorHover(@jakarta.annotation.Nulla * @return primaryButtonColorHover */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonColorHover() { @@ -308,7 +308,7 @@ public String getPrimaryButtonColorHover() { } - @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(@jakarta.annotation.Nullable String primaryButtonColorHover) { this.primaryButtonColorHover = primaryButtonColorHover; @@ -325,7 +325,7 @@ public SubWhiteLabelingOptions primaryButtonTextColor(@jakarta.annotation.Nullab * @return primaryButtonTextColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonTextColor() { @@ -333,7 +333,7 @@ public String getPrimaryButtonTextColor() { } - @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(@jakarta.annotation.Nullable String primaryButtonTextColor) { this.primaryButtonTextColor = primaryButtonTextColor; @@ -350,7 +350,7 @@ public SubWhiteLabelingOptions primaryButtonTextColorHover(@jakarta.annotation.N * @return primaryButtonTextColorHover */ @jakarta.annotation.Nullable - @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 String getPrimaryButtonTextColorHover() { @@ -358,7 +358,7 @@ public String getPrimaryButtonTextColorHover() { } - @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(@jakarta.annotation.Nullable String primaryButtonTextColorHover) { this.primaryButtonTextColorHover = primaryButtonTextColorHover; @@ -375,7 +375,7 @@ public SubWhiteLabelingOptions secondaryButtonColor(@jakarta.annotation.Nullable * @return secondaryButtonColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonColor() { @@ -383,7 +383,7 @@ public String getSecondaryButtonColor() { } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonColor(@jakarta.annotation.Nullable String secondaryButtonColor) { this.secondaryButtonColor = secondaryButtonColor; @@ -400,7 +400,7 @@ public SubWhiteLabelingOptions secondaryButtonColorHover(@jakarta.annotation.Nul * @return secondaryButtonColorHover */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonColorHover() { @@ -408,7 +408,7 @@ public String getSecondaryButtonColorHover() { } - @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(@jakarta.annotation.Nullable String secondaryButtonColorHover) { this.secondaryButtonColorHover = secondaryButtonColorHover; @@ -425,7 +425,7 @@ public SubWhiteLabelingOptions secondaryButtonTextColor(@jakarta.annotation.Null * @return secondaryButtonTextColor */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonTextColor() { @@ -433,7 +433,7 @@ public String getSecondaryButtonTextColor() { } - @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(@jakarta.annotation.Nullable String secondaryButtonTextColor) { this.secondaryButtonTextColor = secondaryButtonTextColor; @@ -450,7 +450,7 @@ public SubWhiteLabelingOptions secondaryButtonTextColorHover(@jakarta.annotation * @return secondaryButtonTextColorHover */ @jakarta.annotation.Nullable - @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 String getSecondaryButtonTextColorHover() { @@ -458,7 +458,7 @@ public String getSecondaryButtonTextColorHover() { } - @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(@jakarta.annotation.Nullable String secondaryButtonTextColorHover) { this.secondaryButtonTextColorHover = secondaryButtonTextColorHover; @@ -475,7 +475,7 @@ public SubWhiteLabelingOptions textColor1(@jakarta.annotation.Nullable String te * @return textColor1 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTextColor1() { @@ -483,7 +483,7 @@ public String getTextColor1() { } - @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTextColor1(@jakarta.annotation.Nullable String textColor1) { this.textColor1 = textColor1; @@ -500,7 +500,7 @@ public SubWhiteLabelingOptions textColor2(@jakarta.annotation.Nullable String te * @return textColor2 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTextColor2() { @@ -508,7 +508,7 @@ public String getTextColor2() { } - @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTextColor2(@jakarta.annotation.Nullable String textColor2) { this.textColor2 = textColor2; @@ -525,7 +525,7 @@ public SubWhiteLabelingOptions resetToDefault(@jakarta.annotation.Nullable Boole * @return resetToDefault */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESET_TO_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_RESET_TO_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getResetToDefault() { @@ -533,7 +533,7 @@ public Boolean getResetToDefault() { } - @JsonProperty(JSON_PROPERTY_RESET_TO_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_RESET_TO_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setResetToDefault(@jakarta.annotation.Nullable Boolean resetToDefault) { this.resetToDefault = resetToDefault; @@ -918,10 +918,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java b/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java index 26ce7492..ea7b1c20 100644 --- a/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java +++ b/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java @@ -37,7 +37,7 @@ TeamAddMemberRequest.JSON_PROPERTY_EMAIL_ADDRESS, TeamAddMemberRequest.JSON_PROPERTY_ROLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamAddMemberRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -119,7 +119,7 @@ public TeamAddMemberRequest accountId(@jakarta.annotation.Nullable String accoun * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -127,7 +127,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -144,7 +144,7 @@ public TeamAddMemberRequest emailAddress(@jakarta.annotation.Nullable String ema * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -152,7 +152,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -169,7 +169,7 @@ public TeamAddMemberRequest role(@jakarta.annotation.Nullable RoleEnum role) { * @return role */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public RoleEnum getRole() { @@ -177,7 +177,7 @@ public RoleEnum getRole() { } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRole(@jakarta.annotation.Nullable RoleEnum role) { this.role = role; @@ -310,10 +310,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java b/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java index f5b0e92a..2198edf1 100644 --- a/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ TeamCreateRequest.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamCreateRequest { public static final String JSON_PROPERTY_NAME = "name"; @@ -70,7 +70,7 @@ public TeamCreateRequest name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -78,7 +78,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java b/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java index 8d2bf789..0328e492 100644 --- a/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java @@ -40,7 +40,7 @@ TeamGetInfoResponse.JSON_PROPERTY_TEAM, TeamGetInfoResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamGetInfoResponse { public static final String JSON_PROPERTY_TEAM = "team"; @@ -79,7 +79,7 @@ public TeamGetInfoResponse team(@jakarta.annotation.Nonnull TeamInfoResponse tea * @return team */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEAM) + @JsonProperty(value = JSON_PROPERTY_TEAM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TeamInfoResponse getTeam() { @@ -87,7 +87,7 @@ public TeamInfoResponse getTeam() { } - @JsonProperty(JSON_PROPERTY_TEAM) + @JsonProperty(value = JSON_PROPERTY_TEAM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTeam(@jakarta.annotation.Nonnull TeamInfoResponse team) { this.team = team; @@ -112,7 +112,7 @@ public TeamGetInfoResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamGetResponse.java b/src/main/java/com/dropbox/sign/model/TeamGetResponse.java index 957c890d..a010db8a 100644 --- a/src/main/java/com/dropbox/sign/model/TeamGetResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamGetResponse.java @@ -40,7 +40,7 @@ TeamGetResponse.JSON_PROPERTY_TEAM, TeamGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamGetResponse { public static final String JSON_PROPERTY_TEAM = "team"; @@ -79,7 +79,7 @@ public TeamGetResponse team(@jakarta.annotation.Nonnull TeamResponse team) { * @return team */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEAM) + @JsonProperty(value = JSON_PROPERTY_TEAM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TeamResponse getTeam() { @@ -87,7 +87,7 @@ public TeamResponse getTeam() { } - @JsonProperty(JSON_PROPERTY_TEAM) + @JsonProperty(value = JSON_PROPERTY_TEAM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTeam(@jakarta.annotation.Nonnull TeamResponse team) { this.team = team; @@ -112,7 +112,7 @@ public TeamGetResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java b/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java index 39282f5f..1581b478 100644 --- a/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java @@ -40,7 +40,7 @@ TeamInfoResponse.JSON_PROPERTY_NUM_MEMBERS, TeamInfoResponse.JSON_PROPERTY_NUM_SUB_TEAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamInfoResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; @@ -91,7 +91,7 @@ public TeamInfoResponse teamId(@jakarta.annotation.Nullable String teamId) { * @return teamId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { @@ -99,7 +99,7 @@ public String getTeamId() { } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; @@ -116,7 +116,7 @@ public TeamInfoResponse teamParent(@jakarta.annotation.Nullable TeamParentRespon * @return teamParent */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEAM_PARENT) + @JsonProperty(value = JSON_PROPERTY_TEAM_PARENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TeamParentResponse getTeamParent() { @@ -124,7 +124,7 @@ public TeamParentResponse getTeamParent() { } - @JsonProperty(JSON_PROPERTY_TEAM_PARENT) + @JsonProperty(value = JSON_PROPERTY_TEAM_PARENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamParent(@jakarta.annotation.Nullable TeamParentResponse teamParent) { this.teamParent = teamParent; @@ -141,7 +141,7 @@ public TeamInfoResponse name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -149,7 +149,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -166,7 +166,7 @@ public TeamInfoResponse numMembers(@jakarta.annotation.Nullable Integer numMembe * @return numMembers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUM_MEMBERS) + @JsonProperty(value = JSON_PROPERTY_NUM_MEMBERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumMembers() { @@ -174,7 +174,7 @@ public Integer getNumMembers() { } - @JsonProperty(JSON_PROPERTY_NUM_MEMBERS) + @JsonProperty(value = JSON_PROPERTY_NUM_MEMBERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumMembers(@jakarta.annotation.Nullable Integer numMembers) { this.numMembers = numMembers; @@ -191,7 +191,7 @@ public TeamInfoResponse numSubTeams(@jakarta.annotation.Nullable Integer numSubT * @return numSubTeams */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUM_SUB_TEAMS) + @JsonProperty(value = JSON_PROPERTY_NUM_SUB_TEAMS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumSubTeams() { @@ -199,7 +199,7 @@ public Integer getNumSubTeams() { } - @JsonProperty(JSON_PROPERTY_NUM_SUB_TEAMS) + @JsonProperty(value = JSON_PROPERTY_NUM_SUB_TEAMS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumSubTeams(@jakarta.annotation.Nullable Integer numSubTeams) { this.numSubTeams = numSubTeams; @@ -374,10 +374,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java b/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java index 1e1b4f1f..9047115e 100644 --- a/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java @@ -40,7 +40,7 @@ TeamInviteResponse.JSON_PROPERTY_REDEEMED_AT, TeamInviteResponse.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamInviteResponse { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -95,7 +95,7 @@ public TeamInviteResponse emailAddress(@jakarta.annotation.Nullable String email * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -103,7 +103,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -120,7 +120,7 @@ public TeamInviteResponse teamId(@jakarta.annotation.Nullable String teamId) { * @return teamId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { @@ -128,7 +128,7 @@ public String getTeamId() { } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; @@ -145,7 +145,7 @@ public TeamInviteResponse role(@jakarta.annotation.Nullable String role) { * @return role */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRole() { @@ -153,7 +153,7 @@ public String getRole() { } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRole(@jakarta.annotation.Nullable String role) { this.role = role; @@ -170,7 +170,7 @@ public TeamInviteResponse sentAt(@jakarta.annotation.Nullable Integer sentAt) { * @return sentAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SENT_AT) + @JsonProperty(value = JSON_PROPERTY_SENT_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSentAt() { @@ -178,7 +178,7 @@ public Integer getSentAt() { } - @JsonProperty(JSON_PROPERTY_SENT_AT) + @JsonProperty(value = JSON_PROPERTY_SENT_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSentAt(@jakarta.annotation.Nullable Integer sentAt) { this.sentAt = sentAt; @@ -195,7 +195,7 @@ public TeamInviteResponse redeemedAt(@jakarta.annotation.Nullable Integer redeem * @return redeemedAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REDEEMED_AT) + @JsonProperty(value = JSON_PROPERTY_REDEEMED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getRedeemedAt() { @@ -203,7 +203,7 @@ public Integer getRedeemedAt() { } - @JsonProperty(JSON_PROPERTY_REDEEMED_AT) + @JsonProperty(value = JSON_PROPERTY_REDEEMED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRedeemedAt(@jakarta.annotation.Nullable Integer redeemedAt) { this.redeemedAt = redeemedAt; @@ -220,7 +220,7 @@ public TeamInviteResponse expiresAt(@jakarta.annotation.Nullable Integer expires * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -228,7 +228,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -424,10 +424,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java b/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java index 4e1eb25a..23378b44 100644 --- a/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java @@ -40,7 +40,7 @@ TeamInvitesResponse.JSON_PROPERTY_TEAM_INVITES, TeamInvitesResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamInvitesResponse { public static final String JSON_PROPERTY_TEAM_INVITES = "team_invites"; @@ -87,7 +87,7 @@ public TeamInvitesResponse addTeamInvitesItem(TeamInviteResponse teamInvitesItem * @return teamInvites */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEAM_INVITES) + @JsonProperty(value = JSON_PROPERTY_TEAM_INVITES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTeamInvites() { @@ -95,7 +95,7 @@ public List getTeamInvites() { } - @JsonProperty(JSON_PROPERTY_TEAM_INVITES) + @JsonProperty(value = JSON_PROPERTY_TEAM_INVITES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTeamInvites(@jakarta.annotation.Nonnull List teamInvites) { this.teamInvites = teamInvites; @@ -120,7 +120,7 @@ public TeamInvitesResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -128,7 +128,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -240,10 +240,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java b/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java index b454ffb6..f01a496d 100644 --- a/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java @@ -37,7 +37,7 @@ TeamMemberResponse.JSON_PROPERTY_EMAIL_ADDRESS, TeamMemberResponse.JSON_PROPERTY_ROLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamMemberResponse { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -80,7 +80,7 @@ public TeamMemberResponse accountId(@jakarta.annotation.Nullable String accountI * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -88,7 +88,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -105,7 +105,7 @@ public TeamMemberResponse emailAddress(@jakarta.annotation.Nullable String email * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -113,7 +113,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -130,7 +130,7 @@ public TeamMemberResponse role(@jakarta.annotation.Nullable String role) { * @return role */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRole() { @@ -138,7 +138,7 @@ public String getRole() { } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRole(@jakarta.annotation.Nullable String role) { this.role = role; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java b/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java index 181e65e4..7d9766c6 100644 --- a/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java @@ -42,7 +42,7 @@ TeamMembersResponse.JSON_PROPERTY_LIST_INFO, TeamMembersResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamMembersResponse { public static final String JSON_PROPERTY_TEAM_MEMBERS = "team_members"; @@ -93,7 +93,7 @@ public TeamMembersResponse addTeamMembersItem(TeamMemberResponse teamMembersItem * @return teamMembers */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEAM_MEMBERS) + @JsonProperty(value = JSON_PROPERTY_TEAM_MEMBERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTeamMembers() { @@ -101,7 +101,7 @@ public List getTeamMembers() { } - @JsonProperty(JSON_PROPERTY_TEAM_MEMBERS) + @JsonProperty(value = JSON_PROPERTY_TEAM_MEMBERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTeamMembers(@jakarta.annotation.Nonnull List teamMembers) { this.teamMembers = teamMembers; @@ -118,7 +118,7 @@ public TeamMembersResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -126,7 +126,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -151,7 +151,7 @@ public TeamMembersResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -159,7 +159,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -292,10 +292,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamParentResponse.java b/src/main/java/com/dropbox/sign/model/TeamParentResponse.java index 5928538d..cb091ebd 100644 --- a/src/main/java/com/dropbox/sign/model/TeamParentResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamParentResponse.java @@ -36,7 +36,7 @@ TeamParentResponse.JSON_PROPERTY_TEAM_ID, TeamParentResponse.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamParentResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; @@ -75,7 +75,7 @@ public TeamParentResponse teamId(@jakarta.annotation.Nullable String teamId) { * @return teamId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { @@ -83,7 +83,7 @@ public String getTeamId() { } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; @@ -100,7 +100,7 @@ public TeamParentResponse name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -108,7 +108,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java b/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java index f48daa1a..acf4bb67 100644 --- a/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java +++ b/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java @@ -39,7 +39,7 @@ TeamRemoveMemberRequest.JSON_PROPERTY_NEW_TEAM_ID, TeamRemoveMemberRequest.JSON_PROPERTY_NEW_ROLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamRemoveMemberRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -129,7 +129,7 @@ public TeamRemoveMemberRequest accountId(@jakarta.annotation.Nullable String acc * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -137,7 +137,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -154,7 +154,7 @@ public TeamRemoveMemberRequest emailAddress(@jakarta.annotation.Nullable String * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -162,7 +162,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -179,7 +179,7 @@ public TeamRemoveMemberRequest newOwnerEmailAddress(@jakarta.annotation.Nullable * @return newOwnerEmailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEW_OWNER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_NEW_OWNER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNewOwnerEmailAddress() { @@ -187,7 +187,7 @@ public String getNewOwnerEmailAddress() { } - @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(@jakarta.annotation.Nullable String newOwnerEmailAddress) { this.newOwnerEmailAddress = newOwnerEmailAddress; @@ -204,7 +204,7 @@ public TeamRemoveMemberRequest newTeamId(@jakarta.annotation.Nullable String new * @return newTeamId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEW_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_NEW_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNewTeamId() { @@ -212,7 +212,7 @@ public String getNewTeamId() { } - @JsonProperty(JSON_PROPERTY_NEW_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_NEW_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNewTeamId(@jakarta.annotation.Nullable String newTeamId) { this.newTeamId = newTeamId; @@ -229,7 +229,7 @@ public TeamRemoveMemberRequest newRole(@jakarta.annotation.Nullable NewRoleEnum * @return newRole */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEW_ROLE) + @JsonProperty(value = JSON_PROPERTY_NEW_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public NewRoleEnum getNewRole() { @@ -237,7 +237,7 @@ public NewRoleEnum getNewRole() { } - @JsonProperty(JSON_PROPERTY_NEW_ROLE) + @JsonProperty(value = JSON_PROPERTY_NEW_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNewRole(@jakarta.annotation.Nullable NewRoleEnum newRole) { this.newRole = newRole; @@ -412,10 +412,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamResponse.java b/src/main/java/com/dropbox/sign/model/TeamResponse.java index 37128c92..e93a8434 100644 --- a/src/main/java/com/dropbox/sign/model/TeamResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamResponse.java @@ -41,7 +41,7 @@ TeamResponse.JSON_PROPERTY_INVITED_ACCOUNTS, TeamResponse.JSON_PROPERTY_INVITED_EMAILS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamResponse { public static final String JSON_PROPERTY_NAME = "name"; @@ -88,7 +88,7 @@ public TeamResponse name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -96,7 +96,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -121,7 +121,7 @@ public TeamResponse addAccountsItem(AccountResponse accountsItem) { * @return accounts */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAccounts() { @@ -129,7 +129,7 @@ public List getAccounts() { } - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; @@ -154,7 +154,7 @@ public TeamResponse addInvitedAccountsItem(AccountResponse invitedAccountsItem) * @return invitedAccounts */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INVITED_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_INVITED_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInvitedAccounts() { @@ -162,7 +162,7 @@ public List getInvitedAccounts() { } - @JsonProperty(JSON_PROPERTY_INVITED_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_INVITED_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInvitedAccounts(@jakarta.annotation.Nullable List invitedAccounts) { this.invitedAccounts = invitedAccounts; @@ -187,7 +187,7 @@ public TeamResponse addInvitedEmailsItem(String invitedEmailsItem) { * @return invitedEmails */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INVITED_EMAILS) + @JsonProperty(value = JSON_PROPERTY_INVITED_EMAILS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInvitedEmails() { @@ -195,7 +195,7 @@ public List getInvitedEmails() { } - @JsonProperty(JSON_PROPERTY_INVITED_EMAILS) + @JsonProperty(value = JSON_PROPERTY_INVITED_EMAILS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInvitedEmails(@jakarta.annotation.Nullable List invitedEmails) { this.invitedEmails = invitedEmails; @@ -349,10 +349,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java b/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java index 1330e7c6..bfd4e4b6 100644 --- a/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java +++ b/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java @@ -42,7 +42,7 @@ TeamSubTeamsResponse.JSON_PROPERTY_LIST_INFO, TeamSubTeamsResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamSubTeamsResponse { public static final String JSON_PROPERTY_SUB_TEAMS = "sub_teams"; @@ -93,7 +93,7 @@ public TeamSubTeamsResponse addSubTeamsItem(SubTeamResponse subTeamsItem) { * @return subTeams */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUB_TEAMS) + @JsonProperty(value = JSON_PROPERTY_SUB_TEAMS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSubTeams() { @@ -101,7 +101,7 @@ public List getSubTeams() { } - @JsonProperty(JSON_PROPERTY_SUB_TEAMS) + @JsonProperty(value = JSON_PROPERTY_SUB_TEAMS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSubTeams(@jakarta.annotation.Nonnull List subTeams) { this.subTeams = subTeams; @@ -118,7 +118,7 @@ public TeamSubTeamsResponse listInfo(@jakarta.annotation.Nonnull ListInfoRespons * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -126,7 +126,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -151,7 +151,7 @@ public TeamSubTeamsResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -159,7 +159,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -292,10 +292,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java b/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java index 100923cd..523bf902 100644 --- a/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java +++ b/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ TeamUpdateRequest.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamUpdateRequest { public static final String JSON_PROPERTY_NAME = "name"; @@ -70,7 +70,7 @@ public TeamUpdateRequest name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -78,7 +78,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java b/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java index 71356ac3..67b15607 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java @@ -37,7 +37,7 @@ TemplateAddUserRequest.JSON_PROPERTY_EMAIL_ADDRESS, TemplateAddUserRequest.JSON_PROPERTY_SKIP_NOTIFICATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateAddUserRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -80,7 +80,7 @@ public TemplateAddUserRequest accountId(@jakarta.annotation.Nullable String acco * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -88,7 +88,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -105,7 +105,7 @@ public TemplateAddUserRequest emailAddress(@jakarta.annotation.Nullable String e * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -113,7 +113,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -130,7 +130,7 @@ public TemplateAddUserRequest skipNotification(@jakarta.annotation.Nullable Bool * @return skipNotification */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SKIP_NOTIFICATION) + @JsonProperty(value = JSON_PROPERTY_SKIP_NOTIFICATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipNotification() { @@ -138,7 +138,7 @@ public Boolean getSkipNotification() { } - @JsonProperty(JSON_PROPERTY_SKIP_NOTIFICATION) + @JsonProperty(value = JSON_PROPERTY_SKIP_NOTIFICATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipNotification(@jakarta.annotation.Nullable Boolean skipNotification) { this.skipNotification = skipNotification; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java index 816e4743..ff283442 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java @@ -73,7 +73,7 @@ TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateEmbeddedDraftRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -208,7 +208,7 @@ public TemplateCreateEmbeddedDraftRequest clientId(@jakarta.annotation.Nonnull S * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -216,7 +216,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -241,7 +241,7 @@ public TemplateCreateEmbeddedDraftRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -249,7 +249,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -274,7 +274,7 @@ public TemplateCreateEmbeddedDraftRequest addFileUrlsItem(String fileUrlsItem) { * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -282,7 +282,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -299,7 +299,7 @@ public TemplateCreateEmbeddedDraftRequest allowCcs(@jakarta.annotation.Nullable * @return allowCcs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowCcs() { @@ -307,7 +307,7 @@ public Boolean getAllowCcs() { } - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; @@ -324,7 +324,7 @@ public TemplateCreateEmbeddedDraftRequest allowReassign(@jakarta.annotation.Null * @return allowReassign */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { @@ -332,7 +332,7 @@ public Boolean getAllowReassign() { } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -357,7 +357,7 @@ public TemplateCreateEmbeddedDraftRequest addAttachmentsItem(SubAttachment attac * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -365,7 +365,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -390,7 +390,7 @@ public TemplateCreateEmbeddedDraftRequest addCcRolesItem(String ccRolesItem) { * @return ccRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcRoles() { @@ -398,7 +398,7 @@ public List getCcRoles() { } - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; @@ -415,7 +415,7 @@ public TemplateCreateEmbeddedDraftRequest editorOptions(@jakarta.annotation.Null * @return editorOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { @@ -423,7 +423,7 @@ public SubEditorOptions getEditorOptions() { } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -440,7 +440,7 @@ public TemplateCreateEmbeddedDraftRequest fieldOptions(@jakarta.annotation.Nulla * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -448,7 +448,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -465,7 +465,7 @@ public TemplateCreateEmbeddedDraftRequest forceSignerRoles(@jakarta.annotation.N * @return forceSignerRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSignerRoles() { @@ -473,7 +473,7 @@ public Boolean getForceSignerRoles() { } - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; @@ -490,7 +490,7 @@ public TemplateCreateEmbeddedDraftRequest forceSubjectMessage(@jakarta.annotatio * @return forceSubjectMessage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSubjectMessage() { @@ -498,7 +498,7 @@ public Boolean getForceSubjectMessage() { } - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; @@ -523,7 +523,7 @@ public TemplateCreateEmbeddedDraftRequest addFormFieldGroupsItem(SubFormFieldGro * @return formFieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { @@ -531,7 +531,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -556,7 +556,7 @@ public TemplateCreateEmbeddedDraftRequest addFormFieldRulesItem(SubFormFieldRule * @return formFieldRules */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { @@ -564,7 +564,7 @@ public List getFormFieldRules() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; @@ -589,7 +589,7 @@ public TemplateCreateEmbeddedDraftRequest addFormFieldsPerDocumentItem(SubFormFi * @return formFieldsPerDocument */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { @@ -597,7 +597,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -622,7 +622,7 @@ public TemplateCreateEmbeddedDraftRequest addMergeFieldsItem(SubMergeField merge * @return mergeFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getMergeFields() { @@ -630,7 +630,7 @@ public List getMergeFields() { } - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; @@ -647,7 +647,7 @@ public TemplateCreateEmbeddedDraftRequest message(@jakarta.annotation.Nullable S * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -655,7 +655,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -680,7 +680,7 @@ public TemplateCreateEmbeddedDraftRequest putMetadataItem(String key, Object met * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -688,7 +688,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -705,7 +705,7 @@ public TemplateCreateEmbeddedDraftRequest showPreview(@jakarta.annotation.Nullab * @return showPreview */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowPreview() { @@ -713,7 +713,7 @@ public Boolean getShowPreview() { } - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; @@ -730,7 +730,7 @@ public TemplateCreateEmbeddedDraftRequest showProgressStepper(@jakarta.annotatio * @return showProgressStepper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { @@ -738,7 +738,7 @@ public Boolean getShowProgressStepper() { } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -763,7 +763,7 @@ public TemplateCreateEmbeddedDraftRequest addSignerRolesItem(SubTemplateRole sig * @return signerRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignerRoles() { @@ -771,7 +771,7 @@ public List getSignerRoles() { } - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerRoles(@jakarta.annotation.Nullable List signerRoles) { this.signerRoles = signerRoles; @@ -788,7 +788,7 @@ public TemplateCreateEmbeddedDraftRequest skipMeNow(@jakarta.annotation.Nullable * @return skipMeNow */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipMeNow() { @@ -796,7 +796,7 @@ public Boolean getSkipMeNow() { } - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; @@ -813,7 +813,7 @@ public TemplateCreateEmbeddedDraftRequest subject(@jakarta.annotation.Nullable S * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -821,7 +821,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -838,7 +838,7 @@ public TemplateCreateEmbeddedDraftRequest testMode(@jakarta.annotation.Nullable * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -846,7 +846,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -863,7 +863,7 @@ public TemplateCreateEmbeddedDraftRequest title(@jakarta.annotation.Nullable Str * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -871,7 +871,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -888,7 +888,7 @@ public TemplateCreateEmbeddedDraftRequest usePreexistingFields(@jakarta.annotati * @return usePreexistingFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUsePreexistingFields() { @@ -896,7 +896,7 @@ public Boolean getUsePreexistingFields() { } - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; @@ -913,7 +913,7 @@ public TemplateCreateEmbeddedDraftRequest ignoreTextTagsExtractionErrors(@jakart * @return ignoreTextTagsExtractionErrors */ @jakarta.annotation.Nullable - @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 Boolean getIgnoreTextTagsExtractionErrors() { @@ -921,7 +921,7 @@ public Boolean getIgnoreTextTagsExtractionErrors() { } - @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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; @@ -1537,10 +1537,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java index 3a1c18ad..109009f7 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java @@ -40,7 +40,7 @@ TemplateCreateEmbeddedDraftResponse.JSON_PROPERTY_TEMPLATE, TemplateCreateEmbeddedDraftResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateEmbeddedDraftResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; @@ -79,7 +79,7 @@ public TemplateCreateEmbeddedDraftResponse template(@jakarta.annotation.Nonnull * @return template */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TemplateCreateEmbeddedDraftResponseTemplate getTemplate() { @@ -87,7 +87,7 @@ public TemplateCreateEmbeddedDraftResponseTemplate getTemplate() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplate(@jakarta.annotation.Nonnull TemplateCreateEmbeddedDraftResponseTemplate template) { this.template = template; @@ -112,7 +112,7 @@ public TemplateCreateEmbeddedDraftResponse addWarningsItem(WarningResponse warni * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java index d40592de..63036942 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java @@ -41,7 +41,7 @@ TemplateCreateEmbeddedDraftResponseTemplate.JSON_PROPERTY_EXPIRES_AT, TemplateCreateEmbeddedDraftResponseTemplate.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateEmbeddedDraftResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; @@ -89,7 +89,7 @@ public TemplateCreateEmbeddedDraftResponseTemplate templateId(@jakarta.annotatio * @return templateId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTemplateId() { @@ -97,7 +97,7 @@ public String getTemplateId() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; @@ -114,7 +114,7 @@ public TemplateCreateEmbeddedDraftResponseTemplate editUrl(@jakarta.annotation.N * @return editUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDIT_URL) + @JsonProperty(value = JSON_PROPERTY_EDIT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEditUrl() { @@ -122,7 +122,7 @@ public String getEditUrl() { } - @JsonProperty(JSON_PROPERTY_EDIT_URL) + @JsonProperty(value = JSON_PROPERTY_EDIT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditUrl(@jakarta.annotation.Nullable String editUrl) { this.editUrl = editUrl; @@ -139,7 +139,7 @@ public TemplateCreateEmbeddedDraftResponseTemplate expiresAt(@jakarta.annotation * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -147,7 +147,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -175,7 +175,7 @@ public TemplateCreateEmbeddedDraftResponseTemplate addWarningsItem(WarningRespon */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -184,7 +184,7 @@ public List getWarnings() { @Deprecated - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -338,10 +338,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java b/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java index b5cedf1d..2691abd5 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java @@ -65,7 +65,7 @@ TemplateCreateRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS, TemplateCreateRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", 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"; @@ -180,7 +180,7 @@ public TemplateCreateRequest addFormFieldsPerDocumentItem(SubFormFieldsPerDocume * @return formFieldsPerDocument */ @jakarta.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() { @@ -188,7 +188,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nonnull List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -213,7 +213,7 @@ public TemplateCreateRequest addSignerRolesItem(SubTemplateRole signerRolesItem) * @return signerRoles */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSignerRoles() { @@ -221,7 +221,7 @@ public List getSignerRoles() { } - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignerRoles(@jakarta.annotation.Nonnull List signerRoles) { this.signerRoles = signerRoles; @@ -246,7 +246,7 @@ public TemplateCreateRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -254,7 +254,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -279,7 +279,7 @@ public TemplateCreateRequest addFileUrlsItem(String fileUrlsItem) { * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -287,7 +287,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -304,7 +304,7 @@ public TemplateCreateRequest allowReassign(@jakarta.annotation.Nullable Boolean * @return allowReassign */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { @@ -312,7 +312,7 @@ public Boolean getAllowReassign() { } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -337,7 +337,7 @@ public TemplateCreateRequest addAttachmentsItem(SubAttachment attachmentsItem) { * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -345,7 +345,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -370,7 +370,7 @@ public TemplateCreateRequest addCcRolesItem(String ccRolesItem) { * @return ccRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcRoles() { @@ -378,7 +378,7 @@ public List getCcRoles() { } - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; @@ -395,7 +395,7 @@ public TemplateCreateRequest clientId(@jakarta.annotation.Nullable String client * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -403,7 +403,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -420,7 +420,7 @@ public TemplateCreateRequest fieldOptions(@jakarta.annotation.Nullable SubFieldO * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -428,7 +428,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -453,7 +453,7 @@ public TemplateCreateRequest addFormFieldGroupsItem(SubFormFieldGroup formFieldG * @return formFieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { @@ -461,7 +461,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -486,7 +486,7 @@ public TemplateCreateRequest addFormFieldRulesItem(SubFormFieldRule formFieldRul * @return formFieldRules */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { @@ -494,7 +494,7 @@ public List getFormFieldRules() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; @@ -519,7 +519,7 @@ public TemplateCreateRequest addMergeFieldsItem(SubMergeField mergeFieldsItem) { * @return mergeFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getMergeFields() { @@ -527,7 +527,7 @@ public List getMergeFields() { } - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; @@ -544,7 +544,7 @@ public TemplateCreateRequest message(@jakarta.annotation.Nullable String message * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -552,7 +552,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -577,7 +577,7 @@ public TemplateCreateRequest putMetadataItem(String key, Object metadataItem) { * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -585,7 +585,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -602,7 +602,7 @@ public TemplateCreateRequest subject(@jakarta.annotation.Nullable String subject * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -610,7 +610,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -627,7 +627,7 @@ public TemplateCreateRequest testMode(@jakarta.annotation.Nullable Boolean testM * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -635,7 +635,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -652,7 +652,7 @@ public TemplateCreateRequest title(@jakarta.annotation.Nullable String title) { * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -660,7 +660,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -677,7 +677,7 @@ public TemplateCreateRequest usePreexistingFields(@jakarta.annotation.Nullable B * @return usePreexistingFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUsePreexistingFields() { @@ -685,7 +685,7 @@ public Boolean getUsePreexistingFields() { } - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; @@ -702,7 +702,7 @@ public TemplateCreateRequest ignoreTextTagsExtractionErrors(@jakarta.annotation. * @return ignoreTextTagsExtractionErrors */ @jakarta.annotation.Nullable - @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 Boolean getIgnoreTextTagsExtractionErrors() { @@ -710,7 +710,7 @@ public Boolean getIgnoreTextTagsExtractionErrors() { } - @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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; @@ -1179,10 +1179,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java b/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java index 03910025..ed47cfa2 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java @@ -40,7 +40,7 @@ TemplateCreateResponse.JSON_PROPERTY_TEMPLATE, TemplateCreateResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; @@ -79,7 +79,7 @@ public TemplateCreateResponse template(@jakarta.annotation.Nonnull TemplateCreat * @return template */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TemplateCreateResponseTemplate getTemplate() { @@ -87,7 +87,7 @@ public TemplateCreateResponseTemplate getTemplate() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplate(@jakarta.annotation.Nonnull TemplateCreateResponseTemplate template) { this.template = template; @@ -112,7 +112,7 @@ public TemplateCreateResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java b/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java index 2222fc73..9b797dd1 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java +++ b/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ TemplateCreateResponseTemplate.JSON_PROPERTY_TEMPLATE_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; @@ -70,7 +70,7 @@ public TemplateCreateResponseTemplate templateId(@jakarta.annotation.Nullable St * @return templateId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTemplateId() { @@ -78,7 +78,7 @@ public String getTemplateId() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java b/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java index 248ae9fa..f15b146d 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java +++ b/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java @@ -40,7 +40,7 @@ TemplateGetResponse.JSON_PROPERTY_TEMPLATE, TemplateGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateGetResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; @@ -79,7 +79,7 @@ public TemplateGetResponse template(@jakarta.annotation.Nonnull TemplateResponse * @return template */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TemplateResponse getTemplate() { @@ -87,7 +87,7 @@ public TemplateResponse getTemplate() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplate(@jakarta.annotation.Nonnull TemplateResponse template) { this.template = template; @@ -112,7 +112,7 @@ public TemplateGetResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateListResponse.java b/src/main/java/com/dropbox/sign/model/TemplateListResponse.java index 4569dbaf..4ffe7e8a 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateListResponse.java +++ b/src/main/java/com/dropbox/sign/model/TemplateListResponse.java @@ -42,7 +42,7 @@ TemplateListResponse.JSON_PROPERTY_LIST_INFO, TemplateListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateListResponse { public static final String JSON_PROPERTY_TEMPLATES = "templates"; @@ -93,7 +93,7 @@ public TemplateListResponse addTemplatesItem(TemplateResponse templatesItem) { * @return templates */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATES) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplates() { @@ -101,7 +101,7 @@ public List getTemplates() { } - @JsonProperty(JSON_PROPERTY_TEMPLATES) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplates(@jakarta.annotation.Nonnull List templates) { this.templates = templates; @@ -118,7 +118,7 @@ public TemplateListResponse listInfo(@jakarta.annotation.Nonnull ListInfoRespons * @return listInfo */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { @@ -126,7 +126,7 @@ public ListInfoResponse getListInfo() { } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -151,7 +151,7 @@ public TemplateListResponse addWarningsItem(WarningResponse warningsItem) { * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -159,7 +159,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -292,10 +292,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java b/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java index bce53ad8..f6972eb5 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java @@ -36,7 +36,7 @@ TemplateRemoveUserRequest.JSON_PROPERTY_ACCOUNT_ID, TemplateRemoveUserRequest.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateRemoveUserRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -75,7 +75,7 @@ public TemplateRemoveUserRequest accountId(@jakarta.annotation.Nullable String a * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -83,7 +83,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -100,7 +100,7 @@ public TemplateRemoveUserRequest emailAddress(@jakarta.annotation.Nullable Strin * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -108,7 +108,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponse.java b/src/main/java/com/dropbox/sign/model/TemplateResponse.java index 1796c999..f6c7f48e 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponse.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponse.java @@ -61,7 +61,7 @@ TemplateResponse.JSON_PROPERTY_ACCOUNTS, TemplateResponse.JSON_PROPERTY_ATTACHMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponse { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; @@ -158,7 +158,7 @@ public TemplateResponse templateId(@jakarta.annotation.Nullable String templateI * @return templateId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTemplateId() { @@ -166,7 +166,7 @@ public String getTemplateId() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; @@ -183,7 +183,7 @@ public TemplateResponse title(@jakarta.annotation.Nullable String title) { * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -191,7 +191,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -208,7 +208,7 @@ public TemplateResponse message(@jakarta.annotation.Nullable String message) { * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -216,7 +216,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -233,7 +233,7 @@ public TemplateResponse updatedAt(@jakarta.annotation.Nullable Integer updatedAt * @return updatedAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUpdatedAt() { @@ -241,7 +241,7 @@ public Integer getUpdatedAt() { } - @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUpdatedAt(@jakarta.annotation.Nullable Integer updatedAt) { this.updatedAt = updatedAt; @@ -258,7 +258,7 @@ public TemplateResponse isEmbedded(@jakarta.annotation.Nullable Boolean isEmbedd * @return isEmbedded */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_IS_EMBEDDED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEmbedded() { @@ -266,7 +266,7 @@ public Boolean getIsEmbedded() { } - @JsonProperty(JSON_PROPERTY_IS_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_IS_EMBEDDED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEmbedded(@jakarta.annotation.Nullable Boolean isEmbedded) { this.isEmbedded = isEmbedded; @@ -283,7 +283,7 @@ public TemplateResponse isCreator(@jakarta.annotation.Nullable Boolean isCreator * @return isCreator */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_CREATOR) + @JsonProperty(value = JSON_PROPERTY_IS_CREATOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsCreator() { @@ -291,7 +291,7 @@ public Boolean getIsCreator() { } - @JsonProperty(JSON_PROPERTY_IS_CREATOR) + @JsonProperty(value = JSON_PROPERTY_IS_CREATOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsCreator(@jakarta.annotation.Nullable Boolean isCreator) { this.isCreator = isCreator; @@ -308,7 +308,7 @@ public TemplateResponse canEdit(@jakarta.annotation.Nullable Boolean canEdit) { * @return canEdit */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAN_EDIT) + @JsonProperty(value = JSON_PROPERTY_CAN_EDIT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getCanEdit() { @@ -316,7 +316,7 @@ public Boolean getCanEdit() { } - @JsonProperty(JSON_PROPERTY_CAN_EDIT) + @JsonProperty(value = JSON_PROPERTY_CAN_EDIT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCanEdit(@jakarta.annotation.Nullable Boolean canEdit) { this.canEdit = canEdit; @@ -333,7 +333,7 @@ public TemplateResponse isLocked(@jakarta.annotation.Nullable Boolean isLocked) * @return isLocked */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsLocked() { @@ -341,7 +341,7 @@ public Boolean getIsLocked() { } - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; @@ -366,7 +366,7 @@ public TemplateResponse putMetadataItem(String key, Object metadataItem) { * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -374,7 +374,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -399,7 +399,7 @@ public TemplateResponse addSignerRolesItem(TemplateResponseSignerRole signerRole * @return signerRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignerRoles() { @@ -407,7 +407,7 @@ public List getSignerRoles() { } - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerRoles(@jakarta.annotation.Nullable List signerRoles) { this.signerRoles = signerRoles; @@ -432,7 +432,7 @@ public TemplateResponse addCcRolesItem(TemplateResponseCCRole ccRolesItem) { * @return ccRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcRoles() { @@ -440,7 +440,7 @@ public List getCcRoles() { } - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; @@ -465,7 +465,7 @@ public TemplateResponse addDocumentsItem(TemplateResponseDocument documentsItem) * @return documents */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOCUMENTS) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDocuments() { @@ -473,7 +473,7 @@ public List getDocuments() { } - @JsonProperty(JSON_PROPERTY_DOCUMENTS) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDocuments(@jakarta.annotation.Nullable List documents) { this.documents = documents; @@ -501,7 +501,7 @@ public TemplateResponse addCustomFieldsItem(TemplateResponseDocumentCustomFieldB */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -510,7 +510,7 @@ public List getCustomFields() { @Deprecated - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -538,7 +538,7 @@ public TemplateResponse addNamedFormFieldsItem(TemplateResponseDocumentFormField */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMED_FORM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_NAMED_FORM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamedFormFields() { @@ -547,7 +547,7 @@ public List getNamedFormFields() { @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(@jakarta.annotation.Nullable List namedFormFields) { this.namedFormFields = namedFormFields; @@ -572,7 +572,7 @@ public TemplateResponse addAccountsItem(TemplateResponseAccount accountsItem) { * @return accounts */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAccounts() { @@ -580,7 +580,7 @@ public List getAccounts() { } - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; @@ -605,7 +605,7 @@ public TemplateResponse addAttachmentsItem(SignatureRequestResponseAttachment at * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -613,7 +613,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -1019,10 +1019,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java b/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java index 0e9d517f..514ec676 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java @@ -41,7 +41,7 @@ TemplateResponseAccount.JSON_PROPERTY_IS_PAID_HF, TemplateResponseAccount.JSON_PROPERTY_QUOTAS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseAccount { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -96,7 +96,7 @@ public TemplateResponseAccount accountId(@jakarta.annotation.Nullable String acc * @return accountId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { @@ -104,7 +104,7 @@ public String getAccountId() { } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; @@ -121,7 +121,7 @@ public TemplateResponseAccount emailAddress(@jakarta.annotation.Nullable String * @return emailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { @@ -129,7 +129,7 @@ public String getEmailAddress() { } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -146,7 +146,7 @@ public TemplateResponseAccount isLocked(@jakarta.annotation.Nullable Boolean isL * @return isLocked */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsLocked() { @@ -154,7 +154,7 @@ public Boolean getIsLocked() { } - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; @@ -171,7 +171,7 @@ public TemplateResponseAccount isPaidHs(@jakarta.annotation.Nullable Boolean isP * @return isPaidHs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_PAID_HS) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsPaidHs() { @@ -179,7 +179,7 @@ public Boolean getIsPaidHs() { } - @JsonProperty(JSON_PROPERTY_IS_PAID_HS) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsPaidHs(@jakarta.annotation.Nullable Boolean isPaidHs) { this.isPaidHs = isPaidHs; @@ -196,7 +196,7 @@ public TemplateResponseAccount isPaidHf(@jakarta.annotation.Nullable Boolean isP * @return isPaidHf */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_PAID_HF) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsPaidHf() { @@ -204,7 +204,7 @@ public Boolean getIsPaidHf() { } - @JsonProperty(JSON_PROPERTY_IS_PAID_HF) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsPaidHf(@jakarta.annotation.Nullable Boolean isPaidHf) { this.isPaidHf = isPaidHf; @@ -221,7 +221,7 @@ public TemplateResponseAccount quotas(@jakarta.annotation.Nullable TemplateRespo * @return quotas */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUOTAS) + @JsonProperty(value = JSON_PROPERTY_QUOTAS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseAccountQuota getQuotas() { @@ -229,7 +229,7 @@ public TemplateResponseAccountQuota getQuotas() { } - @JsonProperty(JSON_PROPERTY_QUOTAS) + @JsonProperty(value = JSON_PROPERTY_QUOTAS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuotas(@jakarta.annotation.Nullable TemplateResponseAccountQuota quotas) { this.quotas = quotas; @@ -425,10 +425,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java b/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java index 8c0615b7..3c29a4f7 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java @@ -38,7 +38,7 @@ TemplateResponseAccountQuota.JSON_PROPERTY_DOCUMENTS_LEFT, TemplateResponseAccountQuota.JSON_PROPERTY_SMS_VERIFICATIONS_LEFT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseAccountQuota { public static final String JSON_PROPERTY_TEMPLATES_LEFT = "templates_left"; @@ -85,7 +85,7 @@ public TemplateResponseAccountQuota templatesLeft(@jakarta.annotation.Nullable I * @return templatesLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTemplatesLeft() { @@ -93,7 +93,7 @@ public Integer getTemplatesLeft() { } - @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplatesLeft(@jakarta.annotation.Nullable Integer templatesLeft) { this.templatesLeft = templatesLeft; @@ -110,7 +110,7 @@ public TemplateResponseAccountQuota apiSignatureRequestsLeft(@jakarta.annotation * @return apiSignatureRequestsLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getApiSignatureRequestsLeft() { @@ -118,7 +118,7 @@ public Integer getApiSignatureRequestsLeft() { } - @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(@jakarta.annotation.Nullable Integer apiSignatureRequestsLeft) { this.apiSignatureRequestsLeft = apiSignatureRequestsLeft; @@ -135,7 +135,7 @@ public TemplateResponseAccountQuota documentsLeft(@jakarta.annotation.Nullable I * @return documentsLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getDocumentsLeft() { @@ -143,7 +143,7 @@ public Integer getDocumentsLeft() { } - @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDocumentsLeft(@jakarta.annotation.Nullable Integer documentsLeft) { this.documentsLeft = documentsLeft; @@ -160,7 +160,7 @@ public TemplateResponseAccountQuota smsVerificationsLeft(@jakarta.annotation.Nul * @return smsVerificationsLeft */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) + @JsonProperty(value = JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSmsVerificationsLeft() { @@ -168,7 +168,7 @@ public Integer getSmsVerificationsLeft() { } - @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) + @JsonProperty(value = JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsVerificationsLeft(@jakarta.annotation.Nullable Integer smsVerificationsLeft) { this.smsVerificationsLeft = smsVerificationsLeft; @@ -322,10 +322,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java b/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java index 9c25e529..ce5f230c 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java @@ -35,7 +35,7 @@ @JsonPropertyOrder({ TemplateResponseCCRole.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseCCRole { public static final String JSON_PROPERTY_NAME = "name"; @@ -70,7 +70,7 @@ public TemplateResponseCCRole name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -78,7 +78,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -169,10 +169,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java index 2ea3ac11..40b465b3 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java @@ -46,7 +46,7 @@ TemplateResponseDocument.JSON_PROPERTY_CUSTOM_FIELDS, TemplateResponseDocument.JSON_PROPERTY_STATIC_FIELDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseDocument { public static final String JSON_PROPERTY_NAME = "name"; @@ -101,7 +101,7 @@ public TemplateResponseDocument name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -109,7 +109,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -126,7 +126,7 @@ public TemplateResponseDocument index(@jakarta.annotation.Nullable Integer index * @return index */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDEX) + @JsonProperty(value = JSON_PROPERTY_INDEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getIndex() { @@ -134,7 +134,7 @@ public Integer getIndex() { } - @JsonProperty(JSON_PROPERTY_INDEX) + @JsonProperty(value = JSON_PROPERTY_INDEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndex(@jakarta.annotation.Nullable Integer index) { this.index = index; @@ -159,7 +159,7 @@ public TemplateResponseDocument addFieldGroupsItem(TemplateResponseDocumentField * @return fieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFieldGroups() { @@ -167,7 +167,7 @@ public List getFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldGroups(@jakarta.annotation.Nullable List fieldGroups) { this.fieldGroups = fieldGroups; @@ -192,7 +192,7 @@ public TemplateResponseDocument addFormFieldsItem(TemplateResponseDocumentFormFi * @return formFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFields() { @@ -200,7 +200,7 @@ public List getFormFields() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFields(@jakarta.annotation.Nullable List formFields) { this.formFields = formFields; @@ -225,7 +225,7 @@ public TemplateResponseDocument addCustomFieldsItem(TemplateResponseDocumentCust * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -233,7 +233,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -258,7 +258,7 @@ public TemplateResponseDocument addStaticFieldsItem(TemplateResponseDocumentStat * @return staticFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATIC_FIELDS) + @JsonProperty(value = JSON_PROPERTY_STATIC_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getStaticFields() { @@ -266,7 +266,7 @@ public List getStaticFields() { } - @JsonProperty(JSON_PROPERTY_STATIC_FIELDS) + @JsonProperty(value = JSON_PROPERTY_STATIC_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStaticFields(@jakarta.annotation.Nullable List staticFields) { this.staticFields = staticFields; @@ -462,10 +462,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java index 80e1e9c3..940ca4d3 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java @@ -47,7 +47,7 @@ TemplateResponseDocumentCustomFieldBase.JSON_PROPERTY_REQUIRED, TemplateResponseDocumentCustomFieldBase.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -127,7 +127,7 @@ public TemplateResponseDocumentCustomFieldBase type(@jakarta.annotation.Nonnull * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -135,7 +135,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -152,7 +152,7 @@ public TemplateResponseDocumentCustomFieldBase apiId(@jakarta.annotation.Nullabl * @return apiId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { @@ -160,7 +160,7 @@ public String getApiId() { } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; @@ -177,7 +177,7 @@ public TemplateResponseDocumentCustomFieldBase name(@jakarta.annotation.Nullable * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -185,7 +185,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -206,7 +206,7 @@ public TemplateResponseDocumentCustomFieldBase signer(Integer signer) { * @return signer */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigner() { @@ -214,7 +214,7 @@ public String getSigner() { } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigner(@jakarta.annotation.Nullable String signer) { this.signer = signer; @@ -235,7 +235,7 @@ public TemplateResponseDocumentCustomFieldBase x(@jakarta.annotation.Nullable In * @return x */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getX() { @@ -243,7 +243,7 @@ public Integer getX() { } - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setX(@jakarta.annotation.Nullable Integer x) { this.x = x; @@ -260,7 +260,7 @@ public TemplateResponseDocumentCustomFieldBase y(@jakarta.annotation.Nullable In * @return y */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getY() { @@ -268,7 +268,7 @@ public Integer getY() { } - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setY(@jakarta.annotation.Nullable Integer y) { this.y = y; @@ -285,7 +285,7 @@ public TemplateResponseDocumentCustomFieldBase width(@jakarta.annotation.Nullabl * @return width */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getWidth() { @@ -293,7 +293,7 @@ public Integer getWidth() { } - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWidth(@jakarta.annotation.Nullable Integer width) { this.width = width; @@ -310,7 +310,7 @@ public TemplateResponseDocumentCustomFieldBase height(@jakarta.annotation.Nullab * @return height */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getHeight() { @@ -318,7 +318,7 @@ public Integer getHeight() { } - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeight(@jakarta.annotation.Nullable Integer height) { this.height = height; @@ -335,7 +335,7 @@ public TemplateResponseDocumentCustomFieldBase required(@jakarta.annotation.Null * @return required */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { @@ -343,7 +343,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; @@ -360,7 +360,7 @@ public TemplateResponseDocumentCustomFieldBase group(@jakarta.annotation.Nullabl * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -368,7 +368,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -648,10 +648,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java index 40a4564a..46c9f8bb 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentCustomFieldCheckbox.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentCustomFieldCheckbox type(@jakarta.annotation.Nonn * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java index e5666932..670c8ed7 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java @@ -44,7 +44,7 @@ TemplateResponseDocumentCustomFieldText.JSON_PROPERTY_ORIGINAL_FONT_SIZE, TemplateResponseDocumentCustomFieldText.JSON_PROPERTY_FONT_FAMILY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -100,7 +100,7 @@ public TemplateResponseDocumentCustomFieldText type(@jakarta.annotation.Nonnull * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -108,7 +108,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -125,7 +125,7 @@ public TemplateResponseDocumentCustomFieldText avgTextLength(@jakarta.annotation * @return avgTextLength */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseFieldAvgTextLength getAvgTextLength() { @@ -133,7 +133,7 @@ public TemplateResponseFieldAvgTextLength getAvgTextLength() { } - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAvgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; @@ -150,7 +150,7 @@ public TemplateResponseDocumentCustomFieldText isMultiline(@jakarta.annotation.N * @return isMultiline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsMultiline() { @@ -158,7 +158,7 @@ public Boolean getIsMultiline() { } - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; @@ -175,7 +175,7 @@ public TemplateResponseDocumentCustomFieldText originalFontSize(@jakarta.annotat * @return originalFontSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOriginalFontSize() { @@ -183,7 +183,7 @@ public Integer getOriginalFontSize() { } - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; @@ -200,7 +200,7 @@ public TemplateResponseDocumentCustomFieldText fontFamily(@jakarta.annotation.Nu * @return fontFamily */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFontFamily() { @@ -208,7 +208,7 @@ public String getFontFamily() { } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; @@ -386,10 +386,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java index bffee5bb..ee98cac4 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java @@ -37,7 +37,7 @@ TemplateResponseDocumentFieldGroup.JSON_PROPERTY_NAME, TemplateResponseDocumentFieldGroup.JSON_PROPERTY_RULE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseDocumentFieldGroup { public static final String JSON_PROPERTY_NAME = "name"; @@ -76,7 +76,7 @@ public TemplateResponseDocumentFieldGroup name(@jakarta.annotation.Nullable Stri * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -84,7 +84,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -101,7 +101,7 @@ public TemplateResponseDocumentFieldGroup rule(@jakarta.annotation.Nullable Temp * @return rule */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RULE) + @JsonProperty(value = JSON_PROPERTY_RULE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseDocumentFieldGroupRule getRule() { @@ -109,7 +109,7 @@ public TemplateResponseDocumentFieldGroupRule getRule() { } - @JsonProperty(JSON_PROPERTY_RULE) + @JsonProperty(value = JSON_PROPERTY_RULE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRule(@jakarta.annotation.Nullable TemplateResponseDocumentFieldGroupRule rule) { this.rule = rule; @@ -221,10 +221,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java index 8842e29d..b0481820 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java @@ -36,7 +36,7 @@ TemplateResponseDocumentFieldGroupRule.JSON_PROPERTY_REQUIREMENT, TemplateResponseDocumentFieldGroupRule.JSON_PROPERTY_GROUP_LABEL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseDocumentFieldGroupRule { public static final String JSON_PROPERTY_REQUIREMENT = "requirement"; @@ -75,7 +75,7 @@ public TemplateResponseDocumentFieldGroupRule requirement(@jakarta.annotation.Nu * @return requirement */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUIREMENT) + @JsonProperty(value = JSON_PROPERTY_REQUIREMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequirement() { @@ -83,7 +83,7 @@ public String getRequirement() { } - @JsonProperty(JSON_PROPERTY_REQUIREMENT) + @JsonProperty(value = JSON_PROPERTY_REQUIREMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequirement(@jakarta.annotation.Nullable String requirement) { this.requirement = requirement; @@ -100,7 +100,7 @@ public TemplateResponseDocumentFieldGroupRule groupLabel(@jakarta.annotation.Nul * @return groupLabel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP_LABEL) + @JsonProperty(value = JSON_PROPERTY_GROUP_LABEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroupLabel() { @@ -108,7 +108,7 @@ public String getGroupLabel() { } - @JsonProperty(JSON_PROPERTY_GROUP_LABEL) + @JsonProperty(value = JSON_PROPERTY_GROUP_LABEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupLabel(@jakarta.annotation.Nullable String groupLabel) { this.groupLabel = groupLabel; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java index 6256087c..9384e4d6 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java @@ -46,7 +46,7 @@ TemplateResponseDocumentFormFieldBase.JSON_PROPERTY_HEIGHT, TemplateResponseDocumentFormFieldBase.JSON_PROPERTY_REQUIRED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -128,7 +128,7 @@ public TemplateResponseDocumentFormFieldBase type(@jakarta.annotation.Nonnull St * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -136,7 +136,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -153,7 +153,7 @@ public TemplateResponseDocumentFormFieldBase apiId(@jakarta.annotation.Nullable * @return apiId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { @@ -161,7 +161,7 @@ public String getApiId() { } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; @@ -178,7 +178,7 @@ public TemplateResponseDocumentFormFieldBase name(@jakarta.annotation.Nullable S * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -186,7 +186,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -207,7 +207,7 @@ public TemplateResponseDocumentFormFieldBase signer(Integer signer) { * @return signer */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigner() { @@ -215,7 +215,7 @@ public String getSigner() { } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigner(@jakarta.annotation.Nullable String signer) { this.signer = signer; @@ -236,7 +236,7 @@ public TemplateResponseDocumentFormFieldBase x(@jakarta.annotation.Nullable Inte * @return x */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getX() { @@ -244,7 +244,7 @@ public Integer getX() { } - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setX(@jakarta.annotation.Nullable Integer x) { this.x = x; @@ -261,7 +261,7 @@ public TemplateResponseDocumentFormFieldBase y(@jakarta.annotation.Nullable Inte * @return y */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getY() { @@ -269,7 +269,7 @@ public Integer getY() { } - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setY(@jakarta.annotation.Nullable Integer y) { this.y = y; @@ -286,7 +286,7 @@ public TemplateResponseDocumentFormFieldBase width(@jakarta.annotation.Nullable * @return width */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getWidth() { @@ -294,7 +294,7 @@ public Integer getWidth() { } - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWidth(@jakarta.annotation.Nullable Integer width) { this.width = width; @@ -311,7 +311,7 @@ public TemplateResponseDocumentFormFieldBase height(@jakarta.annotation.Nullable * @return height */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getHeight() { @@ -319,7 +319,7 @@ public Integer getHeight() { } - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeight(@jakarta.annotation.Nullable Integer height) { this.height = height; @@ -336,7 +336,7 @@ public TemplateResponseDocumentFormFieldBase required(@jakarta.annotation.Nullab * @return required */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { @@ -344,7 +344,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; @@ -603,10 +603,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java index 81b0ce16..b74b5446 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldCheckbox.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldCheckbox.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public TemplateResponseDocumentFormFieldCheckbox type(@jakarta.annotation.Nonnul * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -109,7 +109,7 @@ public TemplateResponseDocumentFormFieldCheckbox group(@jakarta.annotation.Nulla * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -117,7 +117,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java index b59e545d..35c47433 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldDateSigned.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldDateSigned.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public TemplateResponseDocumentFormFieldDateSigned type(@jakarta.annotation.Nonn * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -109,7 +109,7 @@ public TemplateResponseDocumentFormFieldDateSigned group(@jakarta.annotation.Nul * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -117,7 +117,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java index f02ea38e..7af99ada 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java @@ -43,7 +43,7 @@ TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_GROUP, TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_OPTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -91,7 +91,7 @@ public TemplateResponseDocumentFormFieldDropdown type(@jakarta.annotation.Nonnul * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -99,7 +99,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -116,7 +116,7 @@ public TemplateResponseDocumentFormFieldDropdown group(@jakarta.annotation.Nulla * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -124,7 +124,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -149,7 +149,7 @@ public TemplateResponseDocumentFormFieldDropdown addOptionsItem(String optionsIt * @return options */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOptions() { @@ -157,7 +157,7 @@ public List getOptions() { } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(@jakarta.annotation.Nullable List options) { this.options = options; @@ -293,10 +293,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java index 5a917fa3..2fddb9e9 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java @@ -45,7 +45,7 @@ TemplateResponseDocumentFormFieldHyperlink.JSON_PROPERTY_FONT_FAMILY, TemplateResponseDocumentFormFieldHyperlink.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -105,7 +105,7 @@ public TemplateResponseDocumentFormFieldHyperlink type(@jakarta.annotation.Nonnu * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -113,7 +113,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -130,7 +130,7 @@ public TemplateResponseDocumentFormFieldHyperlink avgTextLength(@jakarta.annotat * @return avgTextLength */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseFieldAvgTextLength getAvgTextLength() { @@ -138,7 +138,7 @@ public TemplateResponseFieldAvgTextLength getAvgTextLength() { } - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAvgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; @@ -155,7 +155,7 @@ public TemplateResponseDocumentFormFieldHyperlink isMultiline(@jakarta.annotatio * @return isMultiline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsMultiline() { @@ -163,7 +163,7 @@ public Boolean getIsMultiline() { } - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; @@ -180,7 +180,7 @@ public TemplateResponseDocumentFormFieldHyperlink originalFontSize(@jakarta.anno * @return originalFontSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOriginalFontSize() { @@ -188,7 +188,7 @@ public Integer getOriginalFontSize() { } - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; @@ -205,7 +205,7 @@ public TemplateResponseDocumentFormFieldHyperlink fontFamily(@jakarta.annotation * @return fontFamily */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFontFamily() { @@ -213,7 +213,7 @@ public String getFontFamily() { } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; @@ -230,7 +230,7 @@ public TemplateResponseDocumentFormFieldHyperlink group(@jakarta.annotation.Null * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -238,7 +238,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -437,10 +437,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java index 336e0163..060ae7cd 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldInitials.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldInitials.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public TemplateResponseDocumentFormFieldInitials type(@jakarta.annotation.Nonnul * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -109,7 +109,7 @@ public TemplateResponseDocumentFormFieldInitials group(@jakarta.annotation.Nulla * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -117,7 +117,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java index 7a41f8e9..5c1631b2 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldRadio.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldRadio.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public TemplateResponseDocumentFormFieldRadio type(@jakarta.annotation.Nonnull S * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -109,7 +109,7 @@ public TemplateResponseDocumentFormFieldRadio group(@jakarta.annotation.Nonnull * @return group */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroup() { @@ -117,7 +117,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroup(@jakarta.annotation.Nonnull String group) { this.group = group; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java index 17b167c7..fb70aabe 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldSignature.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldSignature.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -84,7 +84,7 @@ public TemplateResponseDocumentFormFieldSignature type(@jakarta.annotation.Nonnu * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -92,7 +92,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -109,7 +109,7 @@ public TemplateResponseDocumentFormFieldSignature group(@jakarta.annotation.Null * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -117,7 +117,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java index 47567e1b..5c0cd6e9 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java @@ -48,7 +48,7 @@ TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL, TemplateResponseDocumentFormFieldText.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -171,7 +171,7 @@ public TemplateResponseDocumentFormFieldText type(@jakarta.annotation.Nonnull St * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -179,7 +179,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -196,7 +196,7 @@ public TemplateResponseDocumentFormFieldText avgTextLength(@jakarta.annotation.N * @return avgTextLength */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseFieldAvgTextLength getAvgTextLength() { @@ -204,7 +204,7 @@ public TemplateResponseFieldAvgTextLength getAvgTextLength() { } - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAvgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; @@ -221,7 +221,7 @@ public TemplateResponseDocumentFormFieldText isMultiline(@jakarta.annotation.Nul * @return isMultiline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsMultiline() { @@ -229,7 +229,7 @@ public Boolean getIsMultiline() { } - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; @@ -246,7 +246,7 @@ public TemplateResponseDocumentFormFieldText originalFontSize(@jakarta.annotatio * @return originalFontSize */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOriginalFontSize() { @@ -254,7 +254,7 @@ public Integer getOriginalFontSize() { } - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; @@ -271,7 +271,7 @@ public TemplateResponseDocumentFormFieldText fontFamily(@jakarta.annotation.Null * @return fontFamily */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFontFamily() { @@ -279,7 +279,7 @@ public String getFontFamily() { } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; @@ -296,7 +296,7 @@ public TemplateResponseDocumentFormFieldText validationType(@jakarta.annotation. * @return validationType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ValidationTypeEnum getValidationType() { @@ -304,7 +304,7 @@ public ValidationTypeEnum getValidationType() { } - @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationType(@jakarta.annotation.Nullable ValidationTypeEnum validationType) { this.validationType = validationType; @@ -321,7 +321,7 @@ public TemplateResponseDocumentFormFieldText validationCustomRegex(@jakarta.anno * @return validationCustomRegex */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValidationCustomRegex() { @@ -329,7 +329,7 @@ public String getValidationCustomRegex() { } - @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationCustomRegex(@jakarta.annotation.Nullable String validationCustomRegex) { this.validationCustomRegex = validationCustomRegex; @@ -346,7 +346,7 @@ public TemplateResponseDocumentFormFieldText validationCustomRegexFormatLabel(@j * @return validationCustomRegexFormatLabel */ @jakarta.annotation.Nullable - @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 String getValidationCustomRegexFormatLabel() { @@ -354,7 +354,7 @@ public String getValidationCustomRegexFormatLabel() { } - @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(@jakarta.annotation.Nullable String validationCustomRegexFormatLabel) { this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel; @@ -371,7 +371,7 @@ public TemplateResponseDocumentFormFieldText group(@jakarta.annotation.Nullable * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -379,7 +379,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -641,10 +641,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java index 06bb9773..6bfde33b 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java @@ -47,7 +47,7 @@ TemplateResponseDocumentStaticFieldBase.JSON_PROPERTY_REQUIRED, TemplateResponseDocumentStaticFieldBase.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -133,7 +133,7 @@ public TemplateResponseDocumentStaticFieldBase type(@jakarta.annotation.Nonnull * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -141,7 +141,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -158,7 +158,7 @@ public TemplateResponseDocumentStaticFieldBase apiId(@jakarta.annotation.Nullabl * @return apiId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { @@ -166,7 +166,7 @@ public String getApiId() { } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; @@ -183,7 +183,7 @@ public TemplateResponseDocumentStaticFieldBase name(@jakarta.annotation.Nullable * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -191,7 +191,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -208,7 +208,7 @@ public TemplateResponseDocumentStaticFieldBase signer(@jakarta.annotation.Nullab * @return signer */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigner() { @@ -216,7 +216,7 @@ public String getSigner() { } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigner(@jakarta.annotation.Nullable String signer) { this.signer = signer; @@ -233,7 +233,7 @@ public TemplateResponseDocumentStaticFieldBase x(@jakarta.annotation.Nullable In * @return x */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getX() { @@ -241,7 +241,7 @@ public Integer getX() { } - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setX(@jakarta.annotation.Nullable Integer x) { this.x = x; @@ -258,7 +258,7 @@ public TemplateResponseDocumentStaticFieldBase y(@jakarta.annotation.Nullable In * @return y */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getY() { @@ -266,7 +266,7 @@ public Integer getY() { } - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setY(@jakarta.annotation.Nullable Integer y) { this.y = y; @@ -283,7 +283,7 @@ public TemplateResponseDocumentStaticFieldBase width(@jakarta.annotation.Nullabl * @return width */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getWidth() { @@ -291,7 +291,7 @@ public Integer getWidth() { } - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWidth(@jakarta.annotation.Nullable Integer width) { this.width = width; @@ -308,7 +308,7 @@ public TemplateResponseDocumentStaticFieldBase height(@jakarta.annotation.Nullab * @return height */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getHeight() { @@ -316,7 +316,7 @@ public Integer getHeight() { } - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeight(@jakarta.annotation.Nullable Integer height) { this.height = height; @@ -333,7 +333,7 @@ public TemplateResponseDocumentStaticFieldBase required(@jakarta.annotation.Null * @return required */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { @@ -341,7 +341,7 @@ public Boolean getRequired() { } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; @@ -358,7 +358,7 @@ public TemplateResponseDocumentStaticFieldBase group(@jakarta.annotation.Nullabl * @return group */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { @@ -366,7 +366,7 @@ public String getGroup() { } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; @@ -646,10 +646,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java index 81c46c3c..ad372473 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldCheckbox.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentStaticFieldCheckbox type(@jakarta.annotation.Nonn * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java index 7afedcd0..5d50dd4f 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldDateSigned.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentStaticFieldDateSigned type(@jakarta.annotation.No * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java index 41e42462..cc04574b 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldDropdown.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentStaticFieldDropdown type(@jakarta.annotation.Nonn * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java index bea9d842..e93f5494 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldHyperlink.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentStaticFieldHyperlink type(@jakarta.annotation.Non * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java index 1ec5db41..63760c95 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldInitials.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentStaticFieldInitials type(@jakarta.annotation.Nonn * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java index b1401f4c..d844cc88 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldRadio.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentStaticFieldRadio type(@jakarta.annotation.Nonnull * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java index f72de56c..d79427df 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldSignature.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentStaticFieldSignature type(@jakarta.annotation.Non * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java index 4d313af5..7ce018bd 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldText.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -79,7 +79,7 @@ public TemplateResponseDocumentStaticFieldText type(@jakarta.annotation.Nonnull * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { @@ -87,7 +87,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; @@ -181,10 +181,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } static { diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java b/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java index e87ce403..377e88b3 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java @@ -36,7 +36,7 @@ TemplateResponseFieldAvgTextLength.JSON_PROPERTY_NUM_LINES, TemplateResponseFieldAvgTextLength.JSON_PROPERTY_NUM_CHARS_PER_LINE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseFieldAvgTextLength { public static final String JSON_PROPERTY_NUM_LINES = "num_lines"; @@ -75,7 +75,7 @@ public TemplateResponseFieldAvgTextLength numLines(@jakarta.annotation.Nullable * @return numLines */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUM_LINES) + @JsonProperty(value = JSON_PROPERTY_NUM_LINES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumLines() { @@ -83,7 +83,7 @@ public Integer getNumLines() { } - @JsonProperty(JSON_PROPERTY_NUM_LINES) + @JsonProperty(value = JSON_PROPERTY_NUM_LINES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumLines(@jakarta.annotation.Nullable Integer numLines) { this.numLines = numLines; @@ -100,7 +100,7 @@ public TemplateResponseFieldAvgTextLength numCharsPerLine(@jakarta.annotation.Nu * @return numCharsPerLine */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUM_CHARS_PER_LINE) + @JsonProperty(value = JSON_PROPERTY_NUM_CHARS_PER_LINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumCharsPerLine() { @@ -108,7 +108,7 @@ public Integer getNumCharsPerLine() { } - @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(@jakarta.annotation.Nullable Integer numCharsPerLine) { this.numCharsPerLine = numCharsPerLine; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java b/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java index 6e5e2127..c8f411cc 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java +++ b/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java @@ -36,7 +36,7 @@ TemplateResponseSignerRole.JSON_PROPERTY_NAME, TemplateResponseSignerRole.JSON_PROPERTY_ORDER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseSignerRole { public static final String JSON_PROPERTY_NAME = "name"; @@ -75,7 +75,7 @@ public TemplateResponseSignerRole name(@jakarta.annotation.Nullable String name) * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -83,7 +83,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -100,7 +100,7 @@ public TemplateResponseSignerRole order(@jakarta.annotation.Nullable Integer ord * @return order */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { @@ -108,7 +108,7 @@ public Integer getOrder() { } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java b/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java index 8e7f33fb..fc04fda1 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java +++ b/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java @@ -43,7 +43,7 @@ TemplateUpdateFilesRequest.JSON_PROPERTY_SUBJECT, TemplateUpdateFilesRequest.JSON_PROPERTY_TEST_MODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateUpdateFilesRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -98,7 +98,7 @@ public TemplateUpdateFilesRequest clientId(@jakarta.annotation.Nullable String c * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -106,7 +106,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -131,7 +131,7 @@ public TemplateUpdateFilesRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -139,7 +139,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -164,7 +164,7 @@ public TemplateUpdateFilesRequest addFileUrlsItem(String fileUrlsItem) { * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -172,7 +172,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -189,7 +189,7 @@ public TemplateUpdateFilesRequest message(@jakarta.annotation.Nullable String me * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -197,7 +197,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -214,7 +214,7 @@ public TemplateUpdateFilesRequest subject(@jakarta.annotation.Nullable String su * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -222,7 +222,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -239,7 +239,7 @@ public TemplateUpdateFilesRequest testMode(@jakarta.annotation.Nullable Boolean * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -247,7 +247,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -443,10 +443,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java b/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java index 2cddd3e0..dceeea3f 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java +++ b/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java @@ -36,7 +36,7 @@ @JsonPropertyOrder({ TemplateUpdateFilesResponse.JSON_PROPERTY_TEMPLATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateUpdateFilesResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; @@ -71,7 +71,7 @@ public TemplateUpdateFilesResponse template(@jakarta.annotation.Nonnull Template * @return template */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TemplateUpdateFilesResponseTemplate getTemplate() { @@ -79,7 +79,7 @@ public TemplateUpdateFilesResponseTemplate getTemplate() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplate(@jakarta.annotation.Nonnull TemplateUpdateFilesResponseTemplate template) { this.template = template; @@ -170,10 +170,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java b/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java index 3dc17d81..618ee158 100644 --- a/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java +++ b/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java @@ -39,7 +39,7 @@ TemplateUpdateFilesResponseTemplate.JSON_PROPERTY_TEMPLATE_ID, TemplateUpdateFilesResponseTemplate.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateUpdateFilesResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; @@ -79,7 +79,7 @@ public TemplateUpdateFilesResponseTemplate templateId(@jakarta.annotation.Nullab * @return templateId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTemplateId() { @@ -87,7 +87,7 @@ public String getTemplateId() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; @@ -115,7 +115,7 @@ public TemplateUpdateFilesResponseTemplate addWarningsItem(WarningResponse warni */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -124,7 +124,7 @@ public List getWarnings() { @Deprecated - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -236,10 +236,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java index 7c24adca..5c152763 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java @@ -85,7 +85,7 @@ UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftCreateEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -299,7 +299,7 @@ public UnclaimedDraftCreateEmbeddedRequest clientId(@jakarta.annotation.Nonnull * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -307,7 +307,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -324,7 +324,7 @@ public UnclaimedDraftCreateEmbeddedRequest requesterEmailAddress(@jakarta.annota * @return requesterEmailAddress */ @jakarta.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() { @@ -332,7 +332,7 @@ public String getRequesterEmailAddress() { } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequesterEmailAddress(@jakarta.annotation.Nonnull String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -357,7 +357,7 @@ public UnclaimedDraftCreateEmbeddedRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -365,7 +365,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -390,7 +390,7 @@ public UnclaimedDraftCreateEmbeddedRequest addFileUrlsItem(String fileUrlsItem) * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -398,7 +398,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -415,7 +415,7 @@ public UnclaimedDraftCreateEmbeddedRequest allowCcs(@jakarta.annotation.Nullable * @return allowCcs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowCcs() { @@ -423,7 +423,7 @@ public Boolean getAllowCcs() { } - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; @@ -440,7 +440,7 @@ public UnclaimedDraftCreateEmbeddedRequest allowDecline(@jakarta.annotation.Null * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -448,7 +448,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -465,7 +465,7 @@ public UnclaimedDraftCreateEmbeddedRequest allowReassign(@jakarta.annotation.Nul * @return allowReassign */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { @@ -473,7 +473,7 @@ public Boolean getAllowReassign() { } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -498,7 +498,7 @@ public UnclaimedDraftCreateEmbeddedRequest addAttachmentsItem(SubAttachment atta * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -506,7 +506,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -531,7 +531,7 @@ public UnclaimedDraftCreateEmbeddedRequest addCcEmailAddressesItem(String ccEmai * @return ccEmailAddresses */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { @@ -539,7 +539,7 @@ public List getCcEmailAddresses() { } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -564,7 +564,7 @@ public UnclaimedDraftCreateEmbeddedRequest addCustomFieldsItem(SubCustomField cu * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -572,7 +572,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -589,7 +589,7 @@ public UnclaimedDraftCreateEmbeddedRequest editorOptions(@jakarta.annotation.Nul * @return editorOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { @@ -597,7 +597,7 @@ public SubEditorOptions getEditorOptions() { } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -614,7 +614,7 @@ public UnclaimedDraftCreateEmbeddedRequest fieldOptions(@jakarta.annotation.Null * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -622,7 +622,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -639,7 +639,7 @@ public UnclaimedDraftCreateEmbeddedRequest forceSignerPage(@jakarta.annotation.N * @return forceSignerPage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_PAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSignerPage() { @@ -647,7 +647,7 @@ public Boolean getForceSignerPage() { } - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_PAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSignerPage(@jakarta.annotation.Nullable Boolean forceSignerPage) { this.forceSignerPage = forceSignerPage; @@ -664,7 +664,7 @@ public UnclaimedDraftCreateEmbeddedRequest forceSubjectMessage(@jakarta.annotati * @return forceSubjectMessage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSubjectMessage() { @@ -672,7 +672,7 @@ public Boolean getForceSubjectMessage() { } - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; @@ -697,7 +697,7 @@ public UnclaimedDraftCreateEmbeddedRequest addFormFieldGroupsItem(SubFormFieldGr * @return formFieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { @@ -705,7 +705,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -730,7 +730,7 @@ public UnclaimedDraftCreateEmbeddedRequest addFormFieldRulesItem(SubFormFieldRul * @return formFieldRules */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { @@ -738,7 +738,7 @@ public List getFormFieldRules() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; @@ -763,7 +763,7 @@ public UnclaimedDraftCreateEmbeddedRequest addFormFieldsPerDocumentItem(SubFormF * @return formFieldsPerDocument */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { @@ -771,7 +771,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -788,7 +788,7 @@ public UnclaimedDraftCreateEmbeddedRequest hideTextTags(@jakarta.annotation.Null * @return hideTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { @@ -796,7 +796,7 @@ public Boolean getHideTextTags() { } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -813,7 +813,7 @@ public UnclaimedDraftCreateEmbeddedRequest holdRequest(@jakarta.annotation.Nulla * @return holdRequest */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) + @JsonProperty(value = JSON_PROPERTY_HOLD_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHoldRequest() { @@ -821,7 +821,7 @@ public Boolean getHoldRequest() { } - @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) + @JsonProperty(value = JSON_PROPERTY_HOLD_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHoldRequest(@jakarta.annotation.Nullable Boolean holdRequest) { this.holdRequest = holdRequest; @@ -838,7 +838,7 @@ public UnclaimedDraftCreateEmbeddedRequest isForEmbeddedSigning(@jakarta.annotat * @return isForEmbeddedSigning */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsForEmbeddedSigning() { @@ -846,7 +846,7 @@ public Boolean getIsForEmbeddedSigning() { } - @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(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; @@ -863,7 +863,7 @@ public UnclaimedDraftCreateEmbeddedRequest message(@jakarta.annotation.Nullable * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -871,7 +871,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -896,7 +896,7 @@ public UnclaimedDraftCreateEmbeddedRequest putMetadataItem(String key, Object me * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -904,7 +904,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -921,7 +921,7 @@ public UnclaimedDraftCreateEmbeddedRequest requestingRedirectUrl(@jakarta.annota * @return requestingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequestingRedirectUrl() { @@ -929,7 +929,7 @@ public String getRequestingRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; @@ -946,7 +946,7 @@ public UnclaimedDraftCreateEmbeddedRequest showPreview(@jakarta.annotation.Nulla * @return showPreview */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowPreview() { @@ -954,7 +954,7 @@ public Boolean getShowPreview() { } - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; @@ -971,7 +971,7 @@ public UnclaimedDraftCreateEmbeddedRequest showProgressStepper(@jakarta.annotati * @return showProgressStepper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { @@ -979,7 +979,7 @@ public Boolean getShowProgressStepper() { } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -1004,7 +1004,7 @@ public UnclaimedDraftCreateEmbeddedRequest addSignersItem(SubUnclaimedDraftSigne * @return signers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { @@ -1012,7 +1012,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; @@ -1029,7 +1029,7 @@ public UnclaimedDraftCreateEmbeddedRequest signingOptions(@jakarta.annotation.Nu * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -1037,7 +1037,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -1054,7 +1054,7 @@ public UnclaimedDraftCreateEmbeddedRequest signingRedirectUrl(@jakarta.annotatio * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -1062,7 +1062,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -1079,7 +1079,7 @@ public UnclaimedDraftCreateEmbeddedRequest skipMeNow(@jakarta.annotation.Nullabl * @return skipMeNow */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipMeNow() { @@ -1087,7 +1087,7 @@ public Boolean getSkipMeNow() { } - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; @@ -1104,7 +1104,7 @@ public UnclaimedDraftCreateEmbeddedRequest subject(@jakarta.annotation.Nullable * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -1112,7 +1112,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -1129,7 +1129,7 @@ public UnclaimedDraftCreateEmbeddedRequest testMode(@jakarta.annotation.Nullable * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -1137,7 +1137,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -1154,7 +1154,7 @@ public UnclaimedDraftCreateEmbeddedRequest type(@jakarta.annotation.Nullable Typ * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -1162,7 +1162,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; @@ -1179,7 +1179,7 @@ public UnclaimedDraftCreateEmbeddedRequest usePreexistingFields(@jakarta.annotat * @return usePreexistingFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUsePreexistingFields() { @@ -1187,7 +1187,7 @@ public Boolean getUsePreexistingFields() { } - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; @@ -1204,7 +1204,7 @@ public UnclaimedDraftCreateEmbeddedRequest useTextTags(@jakarta.annotation.Nulla * @return useTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { @@ -1212,7 +1212,7 @@ public Boolean getUseTextTags() { } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -1229,7 +1229,7 @@ public UnclaimedDraftCreateEmbeddedRequest ignoreTextTagsExtractionErrors(@jakar * @return ignoreTextTagsExtractionErrors */ @jakarta.annotation.Nullable - @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 Boolean getIgnoreTextTagsExtractionErrors() { @@ -1237,7 +1237,7 @@ public Boolean getIgnoreTextTagsExtractionErrors() { } - @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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; @@ -1254,7 +1254,7 @@ public UnclaimedDraftCreateEmbeddedRequest populateAutoFillFields(@jakarta.annot * @return populateAutoFillFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { @@ -1262,7 +1262,7 @@ public Boolean getPopulateAutoFillFields() { } - @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(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -1279,7 +1279,7 @@ public UnclaimedDraftCreateEmbeddedRequest expiresAt(@jakarta.annotation.Nullabl * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -1287,7 +1287,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -2134,10 +2134,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java index 3e598be9..1ba498ce 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java @@ -75,7 +75,7 @@ UnclaimedDraftCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, UnclaimedDraftCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_ALLOW_CCS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -226,7 +226,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest clientId(@jakarta.annotat * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -234,7 +234,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -251,7 +251,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest requesterEmailAddress(@ja * @return requesterEmailAddress */ @jakarta.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() { @@ -259,7 +259,7 @@ public String getRequesterEmailAddress() { } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequesterEmailAddress(@jakarta.annotation.Nonnull String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -284,7 +284,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addTemplateIdsItem(String * @return templateIds */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { @@ -292,7 +292,7 @@ public List getTemplateIds() { } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -309,7 +309,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowDecline(@jakarta.ann * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -317,7 +317,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -334,7 +334,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowReassign(@jakarta.an * @return allowReassign */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { @@ -342,7 +342,7 @@ public Boolean getAllowReassign() { } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -367,7 +367,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addCcsItem(SubCC ccsItem) * @return ccs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { @@ -375,7 +375,7 @@ public List getCcs() { } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; @@ -400,7 +400,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addCustomFieldsItem(SubCu * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -408,7 +408,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -425,7 +425,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest editorOptions(@jakarta.an * @return editorOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { @@ -433,7 +433,7 @@ public SubEditorOptions getEditorOptions() { } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -450,7 +450,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest fieldOptions(@jakarta.ann * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -458,7 +458,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -483,7 +483,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addFilesItem(File filesIt * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -491,7 +491,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -516,7 +516,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addFileUrlsItem(String fi * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -524,7 +524,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -541,7 +541,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest forceSignerRoles(@jakarta * @return forceSignerRoles */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSignerRoles() { @@ -549,7 +549,7 @@ public Boolean getForceSignerRoles() { } - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; @@ -566,7 +566,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest forceSubjectMessage(@jaka * @return forceSubjectMessage */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSubjectMessage() { @@ -574,7 +574,7 @@ public Boolean getForceSubjectMessage() { } - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; @@ -591,7 +591,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest holdRequest(@jakarta.anno * @return holdRequest */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) + @JsonProperty(value = JSON_PROPERTY_HOLD_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHoldRequest() { @@ -599,7 +599,7 @@ public Boolean getHoldRequest() { } - @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) + @JsonProperty(value = JSON_PROPERTY_HOLD_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHoldRequest(@jakarta.annotation.Nullable Boolean holdRequest) { this.holdRequest = holdRequest; @@ -616,7 +616,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest isForEmbeddedSigning(@jak * @return isForEmbeddedSigning */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsForEmbeddedSigning() { @@ -624,7 +624,7 @@ public Boolean getIsForEmbeddedSigning() { } - @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(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; @@ -641,7 +641,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest message(@jakarta.annotati * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -649,7 +649,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -674,7 +674,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest putMetadataItem(String ke * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -682,7 +682,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -699,7 +699,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest previewOnly(@jakarta.anno * @return previewOnly */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) + @JsonProperty(value = JSON_PROPERTY_PREVIEW_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPreviewOnly() { @@ -707,7 +707,7 @@ public Boolean getPreviewOnly() { } - @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) + @JsonProperty(value = JSON_PROPERTY_PREVIEW_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPreviewOnly(@jakarta.annotation.Nullable Boolean previewOnly) { this.previewOnly = previewOnly; @@ -724,7 +724,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest requestingRedirectUrl(@ja * @return requestingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequestingRedirectUrl() { @@ -732,7 +732,7 @@ public String getRequestingRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; @@ -749,7 +749,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest showPreview(@jakarta.anno * @return showPreview */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowPreview() { @@ -757,7 +757,7 @@ public Boolean getShowPreview() { } - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; @@ -774,7 +774,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest showProgressStepper(@jaka * @return showProgressStepper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { @@ -782,7 +782,7 @@ public Boolean getShowProgressStepper() { } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -807,7 +807,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addSignersItem(SubUnclaim * @return signers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { @@ -815,7 +815,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; @@ -832,7 +832,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest signingOptions(@jakarta.a * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -840,7 +840,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -857,7 +857,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest signingRedirectUrl(@jakar * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -865,7 +865,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -882,7 +882,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest skipMeNow(@jakarta.annota * @return skipMeNow */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipMeNow() { @@ -890,7 +890,7 @@ public Boolean getSkipMeNow() { } - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; @@ -907,7 +907,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest subject(@jakarta.annotati * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -915,7 +915,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -932,7 +932,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest testMode(@jakarta.annotat * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -940,7 +940,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -957,7 +957,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest title(@jakarta.annotation * @return title */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { @@ -965,7 +965,7 @@ public String getTitle() { } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; @@ -982,7 +982,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest populateAutoFillFields(@j * @return populateAutoFillFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { @@ -990,7 +990,7 @@ public Boolean getPopulateAutoFillFields() { } - @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(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; @@ -1007,7 +1007,7 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowCcs(@jakarta.annotat * @return allowCcs */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowCcs() { @@ -1015,7 +1015,7 @@ public Boolean getAllowCcs() { } - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; @@ -1715,10 +1715,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java index 28d13250..7c8c488b 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java @@ -72,7 +72,7 @@ UnclaimedDraftCreateRequest.JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, UnclaimedDraftCreateRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftCreateRequest { /** @@ -238,7 +238,7 @@ public UnclaimedDraftCreateRequest type(@jakarta.annotation.Nonnull TypeEnum typ * @return type */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TypeEnum getType() { @@ -246,7 +246,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; @@ -271,7 +271,7 @@ public UnclaimedDraftCreateRequest addFilesItem(File filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -279,7 +279,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; @@ -304,7 +304,7 @@ public UnclaimedDraftCreateRequest addFileUrlsItem(String fileUrlsItem) { * @return fileUrls */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { @@ -312,7 +312,7 @@ public List getFileUrls() { } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -329,7 +329,7 @@ public UnclaimedDraftCreateRequest allowDecline(@jakarta.annotation.Nullable Boo * @return allowDecline */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { @@ -337,7 +337,7 @@ public Boolean getAllowDecline() { } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -362,7 +362,7 @@ public UnclaimedDraftCreateRequest addAttachmentsItem(SubAttachment attachmentsI * @return attachments */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { @@ -370,7 +370,7 @@ public List getAttachments() { } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; @@ -395,7 +395,7 @@ public UnclaimedDraftCreateRequest addCcEmailAddressesItem(String ccEmailAddress * @return ccEmailAddresses */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { @@ -403,7 +403,7 @@ public List getCcEmailAddresses() { } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -420,7 +420,7 @@ public UnclaimedDraftCreateRequest clientId(@jakarta.annotation.Nullable String * @return clientId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { @@ -428,7 +428,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; @@ -453,7 +453,7 @@ public UnclaimedDraftCreateRequest addCustomFieldsItem(SubCustomField customFiel * @return customFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { @@ -461,7 +461,7 @@ public List getCustomFields() { } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; @@ -478,7 +478,7 @@ public UnclaimedDraftCreateRequest fieldOptions(@jakarta.annotation.Nullable Sub * @return fieldOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { @@ -486,7 +486,7 @@ public SubFieldOptions getFieldOptions() { } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -511,7 +511,7 @@ public UnclaimedDraftCreateRequest addFormFieldGroupsItem(SubFormFieldGroup form * @return formFieldGroups */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { @@ -519,7 +519,7 @@ public List getFormFieldGroups() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; @@ -544,7 +544,7 @@ public UnclaimedDraftCreateRequest addFormFieldRulesItem(SubFormFieldRule formFi * @return formFieldRules */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { @@ -552,7 +552,7 @@ public List getFormFieldRules() { } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; @@ -577,7 +577,7 @@ public UnclaimedDraftCreateRequest addFormFieldsPerDocumentItem(SubFormFieldsPer * @return formFieldsPerDocument */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { @@ -585,7 +585,7 @@ public List getFormFieldsPerDocument() { } - @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(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; @@ -602,7 +602,7 @@ public UnclaimedDraftCreateRequest hideTextTags(@jakarta.annotation.Nullable Boo * @return hideTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { @@ -610,7 +610,7 @@ public Boolean getHideTextTags() { } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -627,7 +627,7 @@ public UnclaimedDraftCreateRequest message(@jakarta.annotation.Nullable String m * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -635,7 +635,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; @@ -660,7 +660,7 @@ public UnclaimedDraftCreateRequest putMetadataItem(String key, Object metadataIt * @return metadata */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { @@ -668,7 +668,7 @@ public Map getMetadata() { } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -685,7 +685,7 @@ public UnclaimedDraftCreateRequest showProgressStepper(@jakarta.annotation.Nulla * @return showProgressStepper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { @@ -693,7 +693,7 @@ public Boolean getShowProgressStepper() { } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -718,7 +718,7 @@ public UnclaimedDraftCreateRequest addSignersItem(SubUnclaimedDraftSigner signer * @return signers */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { @@ -726,7 +726,7 @@ public List getSigners() { } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; @@ -743,7 +743,7 @@ public UnclaimedDraftCreateRequest signingOptions(@jakarta.annotation.Nullable S * @return signingOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { @@ -751,7 +751,7 @@ public SubSigningOptions getSigningOptions() { } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -768,7 +768,7 @@ public UnclaimedDraftCreateRequest signingRedirectUrl(@jakarta.annotation.Nullab * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -776,7 +776,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -793,7 +793,7 @@ public UnclaimedDraftCreateRequest subject(@jakarta.annotation.Nullable String s * @return subject */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { @@ -801,7 +801,7 @@ public String getSubject() { } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; @@ -818,7 +818,7 @@ public UnclaimedDraftCreateRequest testMode(@jakarta.annotation.Nullable Boolean * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -826,7 +826,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -843,7 +843,7 @@ public UnclaimedDraftCreateRequest usePreexistingFields(@jakarta.annotation.Null * @return usePreexistingFields */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUsePreexistingFields() { @@ -851,7 +851,7 @@ public Boolean getUsePreexistingFields() { } - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; @@ -868,7 +868,7 @@ public UnclaimedDraftCreateRequest useTextTags(@jakarta.annotation.Nullable Bool * @return useTextTags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { @@ -876,7 +876,7 @@ public Boolean getUseTextTags() { } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -893,7 +893,7 @@ public UnclaimedDraftCreateRequest ignoreTextTagsExtractionErrors(@jakarta.annot * @return ignoreTextTagsExtractionErrors */ @jakarta.annotation.Nullable - @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 Boolean getIgnoreTextTagsExtractionErrors() { @@ -901,7 +901,7 @@ public Boolean getIgnoreTextTagsExtractionErrors() { } - @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(@jakarta.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { this.ignoreTextTagsExtractionErrors = ignoreTextTagsExtractionErrors; @@ -918,7 +918,7 @@ public UnclaimedDraftCreateRequest expiresAt(@jakarta.annotation.Nullable Intege * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -926,7 +926,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1521,10 +1521,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java index 48eabe48..df2e852a 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java @@ -40,7 +40,7 @@ UnclaimedDraftCreateResponse.JSON_PROPERTY_UNCLAIMED_DRAFT, UnclaimedDraftCreateResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftCreateResponse { public static final String JSON_PROPERTY_UNCLAIMED_DRAFT = "unclaimed_draft"; @@ -79,7 +79,7 @@ public UnclaimedDraftCreateResponse unclaimedDraft(@jakarta.annotation.Nonnull U * @return unclaimedDraft */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_UNCLAIMED_DRAFT) + @JsonProperty(value = JSON_PROPERTY_UNCLAIMED_DRAFT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public UnclaimedDraftResponse getUnclaimedDraft() { @@ -87,7 +87,7 @@ public UnclaimedDraftResponse getUnclaimedDraft() { } - @JsonProperty(JSON_PROPERTY_UNCLAIMED_DRAFT) + @JsonProperty(value = JSON_PROPERTY_UNCLAIMED_DRAFT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setUnclaimedDraft(@jakarta.annotation.Nonnull UnclaimedDraftResponse unclaimedDraft) { this.unclaimedDraft = unclaimedDraft; @@ -112,7 +112,7 @@ public UnclaimedDraftCreateResponse addWarningsItem(WarningResponse warningsItem * @return warnings */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { @@ -120,7 +120,7 @@ public List getWarnings() { } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java index 62459fde..290e6c02 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java @@ -43,7 +43,7 @@ UnclaimedDraftEditAndResendRequest.JSON_PROPERTY_SIGNING_REDIRECT_URL, UnclaimedDraftEditAndResendRequest.JSON_PROPERTY_TEST_MODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftEditAndResendRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -106,7 +106,7 @@ public UnclaimedDraftEditAndResendRequest clientId(@jakarta.annotation.Nonnull S * @return clientId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { @@ -114,7 +114,7 @@ public String getClientId() { } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -131,7 +131,7 @@ public UnclaimedDraftEditAndResendRequest editorOptions(@jakarta.annotation.Null * @return editorOptions */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { @@ -139,7 +139,7 @@ public SubEditorOptions getEditorOptions() { } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -156,7 +156,7 @@ public UnclaimedDraftEditAndResendRequest isForEmbeddedSigning(@jakarta.annotati * @return isForEmbeddedSigning */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsForEmbeddedSigning() { @@ -164,7 +164,7 @@ public Boolean getIsForEmbeddedSigning() { } - @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(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; @@ -181,7 +181,7 @@ public UnclaimedDraftEditAndResendRequest requesterEmailAddress(@jakarta.annotat * @return requesterEmailAddress */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequesterEmailAddress() { @@ -189,7 +189,7 @@ public String getRequesterEmailAddress() { } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -206,7 +206,7 @@ public UnclaimedDraftEditAndResendRequest requestingRedirectUrl(@jakarta.annotat * @return requestingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequestingRedirectUrl() { @@ -214,7 +214,7 @@ public String getRequestingRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; @@ -231,7 +231,7 @@ public UnclaimedDraftEditAndResendRequest showProgressStepper(@jakarta.annotatio * @return showProgressStepper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { @@ -239,7 +239,7 @@ public Boolean getShowProgressStepper() { } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -256,7 +256,7 @@ public UnclaimedDraftEditAndResendRequest signingRedirectUrl(@jakarta.annotation * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -264,7 +264,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -281,7 +281,7 @@ public UnclaimedDraftEditAndResendRequest testMode(@jakarta.annotation.Nullable * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -289,7 +289,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -527,10 +527,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java b/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java index b5152809..b5b2097e 100644 --- a/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java +++ b/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java @@ -40,7 +40,7 @@ UnclaimedDraftResponse.JSON_PROPERTY_EXPIRES_AT, UnclaimedDraftResponse.JSON_PROPERTY_TEST_MODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUEST_ID = "signature_request_id"; @@ -95,7 +95,7 @@ public UnclaimedDraftResponse signatureRequestId(@jakarta.annotation.Nullable St * @return signatureRequestId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureRequestId() { @@ -103,7 +103,7 @@ public String getSignatureRequestId() { } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; @@ -120,7 +120,7 @@ public UnclaimedDraftResponse claimUrl(@jakarta.annotation.Nullable String claim * @return claimUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLAIM_URL) + @JsonProperty(value = JSON_PROPERTY_CLAIM_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClaimUrl() { @@ -128,7 +128,7 @@ public String getClaimUrl() { } - @JsonProperty(JSON_PROPERTY_CLAIM_URL) + @JsonProperty(value = JSON_PROPERTY_CLAIM_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClaimUrl(@jakarta.annotation.Nullable String claimUrl) { this.claimUrl = claimUrl; @@ -145,7 +145,7 @@ public UnclaimedDraftResponse signingRedirectUrl(@jakarta.annotation.Nullable St * @return signingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { @@ -153,7 +153,7 @@ public String getSigningRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -170,7 +170,7 @@ public UnclaimedDraftResponse requestingRedirectUrl(@jakarta.annotation.Nullable * @return requestingRedirectUrl */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequestingRedirectUrl() { @@ -178,7 +178,7 @@ public String getRequestingRedirectUrl() { } - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; @@ -195,7 +195,7 @@ public UnclaimedDraftResponse expiresAt(@jakarta.annotation.Nullable Integer exp * @return expiresAt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { @@ -203,7 +203,7 @@ public Integer getExpiresAt() { } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -220,7 +220,7 @@ public UnclaimedDraftResponse testMode(@jakarta.annotation.Nullable Boolean test * @return testMode */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { @@ -228,7 +228,7 @@ public Boolean getTestMode() { } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -424,10 +424,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/src/main/java/com/dropbox/sign/model/WarningResponse.java b/src/main/java/com/dropbox/sign/model/WarningResponse.java index d8e314cb..00864c85 100644 --- a/src/main/java/com/dropbox/sign/model/WarningResponse.java +++ b/src/main/java/com/dropbox/sign/model/WarningResponse.java @@ -36,7 +36,7 @@ WarningResponse.JSON_PROPERTY_WARNING_MSG, WarningResponse.JSON_PROPERTY_WARNING_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown=true) public class WarningResponse { public static final String JSON_PROPERTY_WARNING_MSG = "warning_msg"; @@ -75,7 +75,7 @@ public WarningResponse warningMsg(@jakarta.annotation.Nonnull String warningMsg) * @return warningMsg */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WARNING_MSG) + @JsonProperty(value = JSON_PROPERTY_WARNING_MSG, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getWarningMsg() { @@ -83,7 +83,7 @@ public String getWarningMsg() { } - @JsonProperty(JSON_PROPERTY_WARNING_MSG) + @JsonProperty(value = JSON_PROPERTY_WARNING_MSG, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setWarningMsg(@jakarta.annotation.Nonnull String warningMsg) { this.warningMsg = warningMsg; @@ -100,7 +100,7 @@ public WarningResponse warningName(@jakarta.annotation.Nonnull String warningNam * @return warningName */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WARNING_NAME) + @JsonProperty(value = JSON_PROPERTY_WARNING_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getWarningName() { @@ -108,7 +108,7 @@ public String getWarningName() { } - @JsonProperty(JSON_PROPERTY_WARNING_NAME) + @JsonProperty(value = JSON_PROPERTY_WARNING_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setWarningName(@jakarta.annotation.Nonnull String warningName) { this.warningName = warningName; @@ -220,10 +220,7 @@ private int getListSize(Object obj) throws Exception { * (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 "); } } diff --git a/templates/ApiClient.mustache b/templates/ApiClient.mustache index 9cf548d4..c38f59dc 100644 --- a/templates/ApiClient.mustache +++ b/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/templates/Configuration.mustache b/templates/Configuration.mustache index 61b08ab6..814e579d 100644 --- a/templates/Configuration.mustache +++ b/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/templates/JavaTimeFormatter.mustache b/templates/JavaTimeFormatter.mustache index f3fb34e5..e96325c4 100644 --- a/templates/JavaTimeFormatter.mustache +++ b/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/templates/Pair.mustache b/templates/Pair.mustache index ed767ce7..fc7d0568 100644 --- a/templates/Pair.mustache +++ b/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/templates/RFC3339DateFormat.mustache b/templates/RFC3339DateFormat.mustache index d35040f0..f18474db 100644 --- a/templates/RFC3339DateFormat.mustache +++ b/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/templates/ServerConfiguration.mustache b/templates/ServerConfiguration.mustache index 72840042..4c94d0bd 100644 --- a/templates/ServerConfiguration.mustache +++ b/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/templates/ServerVariable.mustache b/templates/ServerVariable.mustache index 41246a7a..f8261c44 100644 --- a/templates/ServerVariable.mustache +++ b/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/templates/StringUtil.mustache b/templates/StringUtil.mustache index e3d5d6e9..31af8371 100644 --- a/templates/StringUtil.mustache +++ b/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/templates/api.mustache b/templates/api.mustache index 8ce0ae1c..fcc4fe64 100644 --- a/templates/api.mustache +++ b/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/templates/apiException.mustache b/templates/apiException.mustache index 89448672..93e28ec8 100644 --- a/templates/apiException.mustache +++ b/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/templates/auth/ApiKeyAuth.mustache b/templates/auth/ApiKeyAuth.mustache index 991ae235..8703bedd 100644 --- a/templates/auth/ApiKeyAuth.mustache +++ b/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/templates/auth/Authentication.mustache b/templates/auth/Authentication.mustache index 033de98d..78bddeba 100644 --- a/templates/auth/Authentication.mustache +++ b/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/templates/auth/HttpBasicAuth.mustache b/templates/auth/HttpBasicAuth.mustache index b5c72de6..be2863d6 100644 --- a/templates/auth/HttpBasicAuth.mustache +++ b/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/templates/auth/HttpBearerAuth.mustache b/templates/auth/HttpBearerAuth.mustache index 6ed21107..5290e3fb 100644 --- a/templates/auth/HttpBearerAuth.mustache +++ b/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/templates/auth/OAuth.mustache b/templates/auth/OAuth.mustache index 5cb98e7c..a500f67c 100644 --- a/templates/auth/OAuth.mustache +++ b/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/templates/auth/OAuthFlow.mustache b/templates/auth/OAuthFlow.mustache index 7a425266..8dd1cad4 100644 --- a/templates/auth/OAuthFlow.mustache +++ b/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/templates/beanValidation.mustache b/templates/beanValidation.mustache index 47f7109e..f1b3a007 100644 --- a/templates/beanValidation.mustache +++ b/templates/beanValidation.mustache @@ -3,13 +3,6 @@ @NotNull {{/isReadOnly}} {{/required}} -{{#isContainer}} -{{^isPrimitiveType}} -{{^isEnum}} - @Valid -{{/isEnum}} -{{/isPrimitiveType}} -{{/isContainer}} {{^isContainer}} {{^isPrimitiveType}} @Valid diff --git a/templates/beanValidationCore.mustache b/templates/beanValidationCore.mustache index ff4ffe26..f10acf51 100644 --- a/templates/beanValidationCore.mustache +++ b/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/templates/build.gradle.mustache b/templates/build.gradle.mustache index 6557a7c7..b9ed9b7e 100644 --- a/templates/build.gradle.mustache +++ b/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/templates/dropbox-EventCallbackHelper.mustache b/templates/dropbox-EventCallbackHelper.mustache index d9e55681..07794ba3 100644 --- a/templates/dropbox-EventCallbackHelper.mustache +++ b/templates/dropbox-EventCallbackHelper.mustache @@ -8,6 +8,7 @@ import org.apache.commons.codec.digest.HmacAlgorithms; import org.apache.commons.codec.digest.HmacUtils; {{>generatedAnnotation}} + public class EventCallbackHelper { public static final String EVENT_TYPE_ACCOUNT_CALLBACK = "account_callback"; diff --git a/templates/gradle-wrapper.properties.mustache b/templates/gradle-wrapper.properties.mustache index b82aa23a..4f5eb9dc 100644 --- a/templates/gradle-wrapper.properties.mustache +++ b/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/templates/jackson_annotations.mustache b/templates/jackson_annotations.mustache index 4fbaf983..08b43352 100644 --- a/templates/jackson_annotations.mustache +++ b/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/templates/javaBuilder.mustache b/templates/javaBuilder.mustache index 4a0e102b..a60997a1 100644 --- a/templates/javaBuilder.mustache +++ b/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/templates/libraries/jersey3/AbstractOpenApiSchema.mustache b/templates/libraries/jersey3/AbstractOpenApiSchema.mustache index d92c85e2..4ad93f1c 100644 --- a/templates/libraries/jersey3/AbstractOpenApiSchema.mustache +++ b/templates/libraries/jersey3/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/templates/libraries/jersey3/ApiClient.mustache b/templates/libraries/jersey3/ApiClient.mustache index 026a4941..9ce52470 100644 --- a/templates/libraries/jersey3/ApiClient.mustache +++ b/templates/libraries/jersey3/ApiClient.mustache @@ -19,7 +19,12 @@ import com.github.scribejava.core.model.OAuth2AccessToken; import org.glassfish.jersey.client.ClientConfig; import org.glassfish.jersey.client.ClientProperties; import org.glassfish.jersey.client.HttpUrlConnectorProvider; +{{^useJackson3}} import org.glassfish.jersey.jackson.JacksonFeature; +{{/useJackson3}} +{{#useJackson3}} +import tools.jackson.jakarta.rs.json.JacksonJsonProvider; +{{/useJackson3}} import org.glassfish.jersey.media.multipart.FormDataBodyPart; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import org.glassfish.jersey.media.multipart.MultiPart; @@ -29,6 +34,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 +42,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; @@ -54,6 +61,7 @@ import java.util.List; import java.util.Arrays; import java.util.ArrayList; import java.util.Date; +import java.util.Locale; import java.util.stream.Collectors; import java.util.stream.Stream; {{#jsr310}} @@ -87,14 +95,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 +187,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 +385,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); @@ -708,6 +717,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; @@ -987,6 +997,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). @@ -1038,11 +1083,11 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * Adds the object with the provided key to the MultiPart. * Based on the object type sets Content-Disposition and Content-Type. * - * @param obj Object + * @param value Object * @param key Key of the object * @param multiPart MultiPart to add the form param to */ - private void addParamToMultipart(Object value, String key, MultiPart multiPart) { + protected void addParamToMultipart(Object value, String key, MultiPart multiPart) { if (value instanceof File) { File file = (File) value; FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key) @@ -1208,6 +1253,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @param authNames The authentications to apply * @param returnType The return type into which to deserialize the response * @param isBodyNullable True if the body is nullable + * @param errorTypes Mapping of error codes to types into which to deserialize the response * @return The response body in type of string * @throws ApiException API exception */ @@ -1224,7 +1270,9 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { String contentType, String[] authNames, GenericType returnType, - boolean isBodyNullable) + boolean isBodyNullable, + Map errorTypes + ) throws ApiException { String targetURL; @@ -1235,6 +1283,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { if (index < 0 || index >= serverConfigurations.size()) { throw new ArrayIndexOutOfBoundsException( String.format( + Locale.ROOT, "Invalid index %d when selecting the host settings. Must be less than %d", index, serverConfigurations.size())); } @@ -1246,6 +1295,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) { @@ -1276,27 +1346,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) { @@ -1309,11 +1358,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) { @@ -1329,6 +1376,8 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { } {{/hasOAuthMethods}} + final int statusCode = response.getStatusInfo().getStatusCode(); + Map> responseHeaders = buildResponseHeaders(response); if (statusCode == Status.NO_CONTENT.getStatusCode()) { @@ -1348,6 +1397,8 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { {{^useCustomTemplateCode}} if (response.hasEntity()) { try { + // call bufferEntity, so that a subsequent call to `readEntity` in `deserialize` doesn't fail + response.bufferEntity(); respBody = String.valueOf(response.readEntity(String.class)); message = respBody; } catch (RuntimeException e) { @@ -1355,7 +1406,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { } } throw new ApiException( - response.getStatus(), message, buildResponseHeaders(response), respBody); + response.getStatus(), message, buildResponseHeaders(response), respBody, deserializeErrorEntity(errorTypes, response)); {{/useCustomTemplateCode}} {{#useCustomTemplateCode}} if (response.hasEntity()) { @@ -1385,8 +1436,32 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { } } } + + /** + * Deserialize the response body into an error entity based on HTTP status code. + * Looks up the error type from the errorTypes map using the response status code, + * or falls back to the "default" error type if no match is found. + * + * @param errorTypes Map of status code strings to GenericType for deserialization + * @param response The HTTP response + * @return The deserialized error entity, or null if not found or deserialization fails + */ + private Object deserializeErrorEntity(Map errorTypes, Response response) { + if (errorTypes == null) { + return null; + } + GenericType errorType = errorTypes.get(String.valueOf(response.getStatus())); + if (errorType == null) { + errorType = errorTypes.get("0"); // "0" is the "default" response + } + try { + return deserialize(response, errorType); + } catch (Exception e) { + return null; + } + } - 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); @@ -1411,8 +1486,48 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { */ @Deprecated public ApiResponse invokeAPI(String path, String method, List queryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String accept, String contentType, String[] authNames, GenericType returnType, boolean isBodyNullable) throws ApiException { - return invokeAPI(null, path, method, queryParams, body, headerParams, cookieParams, formParams, accept, contentType, authNames, returnType, isBodyNullable); + return invokeAPI(null, path, method, queryParams, body, headerParams, cookieParams, formParams, accept, contentType, authNames, returnType, isBodyNullable, null/*TODO SME manage*/); + } +{{#useCustomTemplateCode}} + + /** + * Invoke API by sending HTTP request with the given options, without error types. + * + * @param Type + * @param operation The qualified name of the operation + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "POST", "PUT", "HEAD" and "DELETE" + * @param queryParams The query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param cookieParams The cookie parameters + * @param formParams The form parameters + * @param accept The request's Accept header + * @param contentType The request's Content-Type header + * @param authNames The authentications to apply + * @param returnType The return type into which to deserialize the response + * @param isBodyNullable True if the body is nullable + * @return The response body in type of string + * @throws ApiException API exception + */ + public ApiResponse invokeAPI( + String operation, + String path, + String method, + List queryParams, + Object body, + Map headerParams, + Map cookieParams, + Map formParams, + String accept, + String contentType, + String[] authNames, + GenericType returnType, + boolean isBodyNullable) + throws ApiException { + return invokeAPI(operation, path, method, queryParams, body, headerParams, cookieParams, formParams, accept, contentType, authNames, returnType, isBodyNullable, null); } +{{/useCustomTemplateCode}} /** * Build the Client used to make HTTP requests. @@ -1420,8 +1535,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); @@ -1438,10 +1555,20 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { ClientConfig clientConfig = new ClientConfig(); clientConfig.register(MultiPartFeature.class); clientConfig.register(json); + {{^useJackson3}} clientConfig.register(JacksonFeature.class); + {{/useJackson3}} + {{#useJackson3}} + clientConfig.register(new JacksonJsonProvider((tools.jackson.databind.json.JsonMapper) json.getMapper())); + {{/useJackson3}} 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 +1578,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 +1591,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 +1632,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { sslContext.init(null, trustAllCerts, new SecureRandom()); clientBuilder.sslContext(sslContext); } +{{/generateInsecureTlsHook}} /** *

Build the response headers.

@@ -1544,4 +1673,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/templates/libraries/jersey3/JSON.mustache b/templates/libraries/jersey3/JSON.mustache index 613a4a27..06cd0115 100644 --- a/templates/libraries/jersey3/JSON.mustache +++ b/templates/libraries/jersey3/JSON.mustache @@ -3,14 +3,23 @@ package {{invokerPackage}}; import com.fasterxml.jackson.annotation.*; -import com.fasterxml.jackson.databind.*; -import com.fasterxml.jackson.databind.json.JsonMapper; +import {{jacksonPackage}}.databind.*; +import {{jacksonPackage}}.databind.json.JsonMapper; +{{^useJackson3}} {{#openApiNullable}} import org.openapitools.jackson.nullable.JsonNullableModule; {{/openApiNullable}} import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +{{/useJackson3}} +{{#useJackson3}} +import tools.jackson.databind.cfg.DateTimeFeature; +import tools.jackson.databind.cfg.EnumFeature; +{{#openApiNullable}} +import org.openapitools.jackson.nullable.JsonNullableJackson3Module; +{{/openApiNullable}} +{{/useJackson3}} {{#joda}} -import com.fasterxml.jackson.datatype.joda.JodaModule; +import {{jacksonPackage}}.datatype.joda.JodaModule; {{/joda}} import java.text.DateFormat; @@ -22,10 +31,12 @@ import {{javaxPackage}}.ws.rs.core.GenericType; import {{javaxPackage}}.ws.rs.ext.ContextResolver; {{>generatedAnnotation}} + public class JSON implements ContextResolver { private ObjectMapper mapper; public JSON() { + {{^useJackson3}} mapper = JsonMapper.builder() .serializationInclusion(JsonInclude.Include.NON_NULL) .configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false) @@ -42,7 +53,33 @@ public class JSON implements ContextResolver { {{#openApiNullable}} .addModule(new JsonNullableModule()) {{/openApiNullable}} + .addModule(new RFC3339JavaTimeModule()) .build(); + {{/useJackson3}} + {{#useJackson3}} + JsonMapper.Builder jsonMapperBuilder = JsonMapper.builder() + .changeDefaultPropertyInclusion(v -> v.withValueInclusion(JsonInclude.Include.NON_NULL)) + .disable(MapperFeature.ALLOW_COERCION_OF_SCALARS) + {{#failOnUnknownProperties}} + .enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + {{/failOnUnknownProperties}} + {{^failOnUnknownProperties}} + .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + {{/failOnUnknownProperties}} + .enable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE) + .disable(DateTimeFeature.WRITE_DATES_AS_TIMESTAMPS) + .enable(EnumFeature.WRITE_ENUMS_USING_TO_STRING) + .enable(EnumFeature.READ_ENUMS_USING_TO_STRING) + .defaultDateFormat(new RFC3339DateFormat()); + {{#joda}} + jsonMapperBuilder.addModule(new JodaModule()); + {{/joda}} + {{#openApiNullable}} + jsonMapperBuilder.addModule(new JsonNullableJackson3Module()); + {{/openApiNullable}} + jsonMapperBuilder.addModule(new RFC3339JavaTimeModule()); + mapper = jsonMapperBuilder.build(); + {{/useJackson3}} } /** @@ -50,7 +87,12 @@ public class JSON implements ContextResolver { * @param dateFormat Date format */ public void setDateFormat(DateFormat dateFormat) { + {{^useJackson3}} mapper.setDateFormat(dateFormat); + {{/useJackson3}} + {{#useJackson3}} + mapper = ((JsonMapper) mapper).rebuild().defaultDateFormat(dateFormat).build(); + {{/useJackson3}} } @Override diff --git a/templates/libraries/jersey3/anyof_model.mustache b/templates/libraries/jersey3/anyof_model.mustache index 46c2cdc3..b4779949 100644 --- a/templates/libraries/jersey3/anyof_model.mustache +++ b/templates/libraries/jersey3/anyof_model.mustache @@ -1,24 +1,33 @@ import {{javaxPackage}}.ws.rs.core.GenericType; import {{javaxPackage}}.ws.rs.core.Response; +{{^useJackson3}} import java.io.IOException; +{{/useJackson3}} import java.util.logging.Level; import java.util.logging.Logger; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; +{{^useJackson3}} import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; +{{/useJackson3}} +{{#useJackson3}} +import tools.jackson.core.JacksonException; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.SerializationContext; +{{/useJackson3}} +import {{jacksonPackage}}.core.JsonGenerator; +import {{jacksonPackage}}.core.JsonParser; +import {{jacksonPackage}}.core.type.TypeReference; +import {{jacksonPackage}}.databind.DeserializationContext; +import {{jacksonPackage}}.databind.JsonNode; +import {{jacksonPackage}}.databind.annotation.JsonDeserialize; +import {{jacksonPackage}}.databind.annotation.JsonSerialize; +import {{jacksonPackage}}.databind.deser.std.StdDeserializer; +import {{jacksonPackage}}.databind.ser.std.StdSerializer; import {{invokerPackage}}.JSON; {{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{>xmlAnnotation}} @@ -37,8 +46,13 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } @Override - public void serialize({{classname}} value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + public void serialize({{classname}} value, JsonGenerator jgen, {{^useJackson3}}SerializerProvider provider{{/useJackson3}}{{#useJackson3}}SerializationContext serializationContext{{/useJackson3}}) throws {{^useJackson3}}IOException, JsonProcessingException{{/useJackson3}}{{#useJackson3}}JacksonException{{/useJackson3}} { +{{^useJackson3}} jgen.writeObject(value.getActualInstance()); +{{/useJackson3}} +{{#useJackson3}} + serializationContext.writeValue(jgen, value.getActualInstance()); +{{/useJackson3}} } } @@ -52,8 +66,8 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } @Override - public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); + public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws {{^useJackson3}}IOException, JsonProcessingException{{/useJackson3}}{{#useJackson3}}JacksonException{{/useJackson3}} { + JsonNode tree = ctxt.readTree(jp); Object deserialized = null; {{#discriminator}} @@ -62,7 +76,12 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im // When the OAS schema includes a discriminator, use the discriminator value to // discriminate the anyOf schemas. // Get the discriminator mapping value to get the class. +{{^useJackson3}} deserialized = tree.traverse(jp.getCodec()).readValueAs(cls); +{{/useJackson3}} +{{#useJackson3}} + deserialized = ctxt.readTreeAsValue(tree, ctxt.constructType(cls)); +{{/useJackson3}} {{classname}} ret = new {{classname}}(); ret.setActualInstance(deserialized); return ret; @@ -74,16 +93,31 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im try { {{^isArray}} {{^isMap}} +{{^useJackson3}} deserialized = tree.traverse(jp.getCodec()).readValueAs({{{dataType}}}.class); +{{/useJackson3}} +{{#useJackson3}} + deserialized = ctxt.readTreeAsValue(tree, {{{dataType}}}.class); +{{/useJackson3}} {{/isMap}} {{/isArray}} {{#isArray}} final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; +{{^useJackson3}} deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); +{{/useJackson3}} +{{#useJackson3}} + deserialized = ctxt.readTreeAsValue(tree, ctxt.getTypeFactory().constructType(ref)); +{{/useJackson3}} {{/isArray}} {{#isMap}} final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; +{{^useJackson3}} deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); +{{/useJackson3}} +{{#useJackson3}} + deserialized = ctxt.readTreeAsValue(tree, ctxt.getTypeFactory().constructType(ref)); +{{/useJackson3}} {{/isMap}} {{classname}} ret = new {{classname}}(); ret.setActualInstance(deserialized); @@ -95,19 +129,34 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{/anyOf}} {{/composedSchemas}} - throw new IOException(String.format("Failed deserialization for {{classname}}: no match found")); +{{^useJackson3}} + throw new IOException("Failed deserialization for {{classname}}: no match found"); +{{/useJackson3}} +{{#useJackson3}} + throw DatabindException.from(jp, "Failed deserialization for {{classname}}: no match found"); +{{/useJackson3}} } /** * Handle deserialization of the 'null' value. */ @Override +{{^useJackson3}} public {{classname}} getNullValue(DeserializationContext ctxt) throws JsonMappingException { +{{/useJackson3}} +{{#useJackson3}} + public {{classname}} getNullValue(DeserializationContext ctxt) { +{{/useJackson3}} {{#isNullable}} return null; {{/isNullable}} {{^isNullable}} +{{^useJackson3}} throw new JsonMappingException(ctxt.getParser(), "{{classname}} cannot be null"); +{{/useJackson3}} +{{#useJackson3}} + throw DatabindException.from(ctxt.getParser(), "{{classname}} cannot be null"); +{{/useJackson3}} {{/isNullable}} } } @@ -119,6 +168,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 +268,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/templates/libraries/jersey3/api.mustache b/templates/libraries/jersey3/api.mustache index 85a1af44..097541ae 100644 --- a/templates/libraries/jersey3/api.mustache +++ b/templates/libraries/jersey3/api.mustache @@ -12,8 +12,8 @@ import {{javaxPackage}}.ws.rs.core.GenericType; {{/imports}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} import java.util.ArrayList; @@ -23,6 +23,7 @@ import java.util.List; import java.util.Map; {{>generatedAnnotation}} + {{#operations}} public class {{classname}} { private ApiClient apiClient; @@ -60,7 +61,7 @@ public class {{classname}} { * {{notes}} * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/{{operationIdCamelCase}}Example.java {{#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 {{.}} @@ -87,7 +88,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}} @@ -102,7 +103,7 @@ public class {{classname}} { * {{notes}} * Example: https://github.com/hellosign/dropbox-sign-java/blob/main/examples/{{operationIdCamelCase}}Example.java {{#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 @@ -127,7 +128,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) { @@ -148,7 +149,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}} @@ -216,13 +217,21 @@ public class {{classname}} { {{#hasAuthMethods}} String[] localVarAuthNames = {{=% %=}}new String[] {%#authMethods%"%name%"%^-last%, %/-last%%/authMethods%};%={{ }}=% {{/hasAuthMethods}} +{{^useCustomTemplateCode}} + final Map localVarErrorTypes = new HashMap(); + {{#responses}} + {{#dataType}} + localVarErrorTypes.put("{{code}}", new GenericType<{{{dataType}}}>() {}); + {{/dataType}} + {{/responses}} +{{/useCustomTemplateCode}} {{#returnType}} GenericType<{{{returnType}}}> localVarReturnType = new GenericType<{{{returnType}}}>() {}; {{/returnType}} {{^useCustomTemplateCode}} return apiClient.invokeAPI("{{classname}}.{{operationId}}", {{#hasPathParams}}localVarPath{{/hasPathParams}}{{^hasPathParams}}"{{{path}}}"{{/hasPathParams}}, "{{httpMethod}}", {{#queryParams}}{{#-first}}localVarQueryParams{{/-first}}{{/queryParams}}{{^queryParams}}new ArrayList<>(){{/queryParams}}, {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}, {{#headerParams}}{{#-first}}localVarHeaderParams{{/-first}}{{/headerParams}}{{^headerParams}}new LinkedHashMap<>(){{/headerParams}}, {{#cookieParams}}{{#-first}}localVarCookieParams{{/-first}}{{/cookieParams}}{{^cookieParams}}new LinkedHashMap<>(){{/cookieParams}}, {{#formParams}}{{#-first}}localVarFormParams{{/-first}}{{/formParams}}{{^formParams}}new LinkedHashMap<>(){{/formParams}}, localVarAccept, localVarContentType, - {{#hasAuthMethods}}localVarAuthNames{{/hasAuthMethods}}{{^hasAuthMethods}}null{{/hasAuthMethods}}, {{#returnType}}localVarReturnType{{/returnType}}{{^returnType}}null{{/returnType}}, {{#bodyParam}}{{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{/bodyParam}}{{^bodyParam}}false{{/bodyParam}}); + {{#hasAuthMethods}}localVarAuthNames{{/hasAuthMethods}}{{^hasAuthMethods}}null{{/hasAuthMethods}}, {{#returnType}}localVarReturnType{{/returnType}}{{^returnType}}null{{/returnType}}, {{#bodyParam}}{{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{/bodyParam}}{{^bodyParam}}false{{/bodyParam}}, localVarErrorTypes); {{/useCustomTemplateCode}} {{#useCustomTemplateCode}} return apiClient.invokeAPI( @@ -246,10 +255,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}} @@ -259,10 +269,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; } @@ -331,7 +341,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/templates/libraries/jersey3/apiException.mustache b/templates/libraries/jersey3/apiException.mustache index 70c2af50..8f637d91 100644 --- a/templates/libraries/jersey3/apiException.mustache +++ b/templates/libraries/jersey3/apiException.mustache @@ -16,12 +16,14 @@ 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; private int code = 0; private Map> responseHeaders = null; private String responseBody = null; + private transient Object errorEntity = null; {{#useCustomTemplateCode}} private ErrorResponse errorResponse; {{/useCustomTemplateCode}} @@ -78,10 +80,16 @@ public class ApiException extends{{#useRuntimeException}} RuntimeException {{/us this.responseBody = responseBody; } + public ApiException(int code, String message, Map> responseHeaders, String responseBody, Object errorEntity) { + this(code, message, responseHeaders, responseBody); + this.errorEntity = errorEntity; + } + {{#useCustomTemplateCode}} public ApiException(int code, String message, Map> responseHeaders, String responseBody, ErrorResponse errorResponse) { this(code, message, responseHeaders, responseBody); this.errorResponse = errorResponse; + this.errorEntity = errorResponse; } {{/useCustomTemplateCode}} @@ -111,6 +119,15 @@ public class ApiException extends{{#useRuntimeException}} RuntimeException {{/us public String getResponseBody() { return responseBody; } + + /** + * Get the deserialized error entity (or null if this error doesn't have a model associated). + * + * @return Deserialized error entity + */ + public Object getErrorEntity() { + return errorEntity; + } {{#useCustomTemplateCode}} public ErrorResponse getErrorResponse() { diff --git a/templates/libraries/jersey3/api_test.mustache b/templates/libraries/jersey3/api_test.mustache index 7b8214bd..926ba0a8 100644 --- a/templates/libraries/jersey3/api_test.mustache +++ b/templates/libraries/jersey3/api_test.mustache @@ -17,8 +17,8 @@ import java.util.List; import java.util.Map; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/templates/libraries/jersey3/auth/ApiKeyAuth.mustache b/templates/libraries/jersey3/auth/ApiKeyAuth.mustache index 1731f936..82576065 100644 --- a/templates/libraries/jersey3/auth/ApiKeyAuth.mustache +++ b/templates/libraries/jersey3/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/templates/libraries/jersey3/auth/Authentication.mustache b/templates/libraries/jersey3/auth/Authentication.mustache index 46d9c1ab..169e3abd 100644 --- a/templates/libraries/jersey3/auth/Authentication.mustache +++ b/templates/libraries/jersey3/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/templates/libraries/jersey3/auth/HttpBasicAuth.mustache b/templates/libraries/jersey3/auth/HttpBasicAuth.mustache index 13cecfa9..2a8774b6 100644 --- a/templates/libraries/jersey3/auth/HttpBasicAuth.mustache +++ b/templates/libraries/jersey3/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/templates/libraries/jersey3/auth/HttpBearerAuth.mustache b/templates/libraries/jersey3/auth/HttpBearerAuth.mustache index 110a11ea..cb78e479 100644 --- a/templates/libraries/jersey3/auth/HttpBearerAuth.mustache +++ b/templates/libraries/jersey3/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/templates/libraries/jersey3/auth/OAuth.mustache b/templates/libraries/jersey3/auth/OAuth.mustache index 6617522e..4725badf 100644 --- a/templates/libraries/jersey3/auth/OAuth.mustache +++ b/templates/libraries/jersey3/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/templates/libraries/jersey3/build.gradle.mustache b/templates/libraries/jersey3/build.gradle.mustache index a154937e..626432ac 100644 --- a/templates/libraries/jersey3/build.gradle.mustache +++ b/templates/libraries/jersey3/build.gradle.mustache @@ -44,6 +44,45 @@ repositories { mavenCentral() } +ext { + swagger_annotations_version = "1.6.5" + {{^useJackson3}} + jackson_version = "2.21.6" + jackson_annotations_version = "2.21" + jackson_databind_version = "2.21.6" + {{/useJackson3}} + {{#useJackson3}} + jackson3_version = "3.1.6" + jackson_annotations_version = "2.21" + {{/useJackson3}} + {{#openApiNullable}} + jackson_databind_nullable_version = "0.2.12" + {{/openApiNullable}} +{{^useCustomTemplateCode}} + jakarta_annotation_version = "3.0.0" +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} + jakarta_annotation_version = "2.1.0" +{{/useCustomTemplateCode}} + {{#useBeanValidation}} + bean_validation_version = "3.1.1" + {{/useBeanValidation}} + jersey_version = "3.0.4" + 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 +142,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_17 + targetCompatibility = JavaVersion.VERSION_17 + } publishing { publications { @@ -117,7 +158,7 @@ if(hasProperty('target') && target == 'android') { } task execute(type:JavaExec) { - main = System.getProperty('mainClass') + mainClass = System.getProperty('mainClass') classpath = sourceSets.main.runtimeClasspath } } @@ -159,51 +200,41 @@ 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 = "2.1.0" - {{#useBeanValidation}} - bean_validation_version = "3.0.2" - {{/useBeanValidation}} - jersey_version = "3.0.4" - 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 { implementation "io.swagger:swagger-annotations:$swagger_annotations_version" implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" implementation "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version" + {{^useJackson3}} implementation "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version" + {{/useJackson3}} implementation "org.glassfish.jersey.connectors:jersey-apache-connector:$jersey_version" + {{^useJackson3}} 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" + {{/useJackson3}} + {{#useJackson3}} + implementation "tools.jackson.core:jackson-core:$jackson3_version" + implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_annotations_version" + implementation "tools.jackson.core:jackson-databind:$jackson3_version" + implementation "tools.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:$jackson3_version" + {{/useJackson3}} {{#openApiNullable}} implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version" {{/openApiNullable}} {{#joda}} + {{^useJackson3}} implementation "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jackson_version" + {{/useJackson3}} + {{#useJackson3}} + implementation "tools.jackson.datatype:jackson-datatype-joda:$jackson3_version" + {{/useJackson3}} {{/joda}} + {{^useJackson3}} implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" + {{/useJackson3}} {{#hasOAuthMethods}} implementation "com.github.scribejava:scribejava-apis:$scribejava_apis_version" {{/hasOAuthMethods}} @@ -217,7 +248,6 @@ dependencies { {{#useReflectionEqualsHashCode}} implementation "org.apache.commons:commons-lang3:$commons_lang3_version" {{/useReflectionEqualsHashCode}} - testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" {{#useCustomTemplateCode}} diff --git a/templates/libraries/jersey3/build.sbt.mustache b/templates/libraries/jersey3/build.sbt.mustache index 50d3b16d..69614e7c 100644 --- a/templates/libraries/jersey3/build.sbt.mustache +++ b/templates/libraries/jersey3/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" % "3.0.4", "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "3.0.4", "org.glassfish.jersey.connectors" % "jersey-apache-connector" % "3.0.4", - "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.1" % "compile", {{/joda}} - "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.17.1" % "compile", + "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.21.1" % "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/templates/libraries/jersey3/model.mustache b/templates/libraries/jersey3/model.mustache index 50985773..501d5ac9 100644 --- a/templates/libraries/jersey3/model.mustache +++ b/templates/libraries/jersey3/model.mustache @@ -42,8 +42,8 @@ import android.os.Parcelable; import android.os.Parcel; {{/parcelableModel}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#performBeanValidation}} import org.hibernate.validator.constraints.*; @@ -58,7 +58,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; {{#model}} {{#oneOf}} {{#-first}} -import com.fasterxml.jackson.core.type.TypeReference; +import {{jacksonPackage}}.core.type.TypeReference; {{/-first}} {{/oneOf}} diff --git a/templates/libraries/jersey3/model_doc.mustache b/templates/libraries/jersey3/model_doc.mustache index be1aedcf..f17263f0 100644 --- a/templates/libraries/jersey3/model_doc.mustache +++ b/templates/libraries/jersey3/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/templates/libraries/jersey3/oneof_model.mustache b/templates/libraries/jersey3/oneof_model.mustache index 5b60d074..0d289cc5 100644 --- a/templates/libraries/jersey3/oneof_model.mustache +++ b/templates/libraries/jersey3/oneof_model.mustache @@ -1,26 +1,37 @@ import {{javaxPackage}}.ws.rs.core.GenericType; import {{javaxPackage}}.ws.rs.core.Response; +{{^useJackson3}} import java.io.IOException; +{{/useJackson3}} import java.util.logging.Level; import java.util.logging.Logger; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonParser; +{{^useJackson3}} import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; +{{/useJackson3}} +{{#useJackson3}} +import tools.jackson.core.JacksonException; +import tools.jackson.databind.DatabindException; +import tools.jackson.databind.SerializationContext; +{{/useJackson3}} +import {{jacksonPackage}}.core.JsonGenerator; +import {{jacksonPackage}}.core.JsonParser; +import {{jacksonPackage}}.core.JsonToken; +import {{jacksonPackage}}.core.type.TypeReference; +import {{jacksonPackage}}.databind.DeserializationContext; +import {{jacksonPackage}}.databind.JsonNode; +{{^useJackson3}} +import com.fasterxml.jackson.databind.MapperFeature; +{{/useJackson3}} +import {{jacksonPackage}}.databind.annotation.JsonDeserialize; +import {{jacksonPackage}}.databind.annotation.JsonSerialize; +import {{jacksonPackage}}.databind.deser.std.StdDeserializer; +import {{jacksonPackage}}.databind.ser.std.StdSerializer; import {{invokerPackage}}.JSON; {{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{>xmlAnnotation}} @@ -39,8 +50,13 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } @Override - public void serialize({{classname}} value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + public void serialize({{classname}} value, JsonGenerator jgen, {{^useJackson3}}SerializerProvider provider{{/useJackson3}}{{#useJackson3}}SerializationContext serializationContext{{/useJackson3}}) throws {{^useJackson3}}IOException, JsonProcessingException{{/useJackson3}}{{#useJackson3}}JacksonException{{/useJackson3}} { +{{^useJackson3}} jgen.writeObject(value.getActualInstance()); +{{/useJackson3}} +{{#useJackson3}} + serializationContext.writeValue(jgen, value.getActualInstance()); +{{/useJackson3}} } } @@ -54,30 +70,50 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } @Override - public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); + public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws {{^useJackson3}}IOException, JsonProcessingException{{/useJackson3}}{{#useJackson3}}JacksonException{{/useJackson3}} { + JsonNode tree = ctxt.readTree(jp); Object deserialized = null; {{#useOneOfDiscriminatorLookup}} {{#discriminator}} {{classname}} new{{classname}} = new {{classname}}(); +{{^useJackson3}} Map result2 = tree.traverse(jp.getCodec()).readValueAs(new TypeReference>() {}); +{{/useJackson3}} +{{#useJackson3}} + Map result2 = ctxt.readTreeAsValue(tree, ctxt.getTypeFactory().constructType(new TypeReference>() {})); +{{/useJackson3}} String discriminatorValue = (String)result2.get("{{{propertyBaseName}}}"); switch (discriminatorValue) { {{#mappedModels}} case "{{{mappingName}}}": +{{^useJackson3}} deserialized = tree.traverse(jp.getCodec()).readValueAs({{{modelName}}}.class); +{{/useJackson3}} +{{#useJackson3}} + deserialized = ctxt.readTreeAsValue(tree, {{{modelName}}}.class); +{{/useJackson3}} new{{classname}}.setActualInstance(deserialized); 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}} {{/useOneOfDiscriminatorLookup}} +{{^useJackson3}} boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); +{{/useJackson3}} +{{#useJackson3}} + boolean typeCoercion = false; // MapperFeature.ALLOW_COERCION_OF_SCALARS was removed in Jackson 3 +{{/useJackson3}} int match = 0; +{{^useJackson3}} JsonToken token = tree.traverse(jp.getCodec()).nextToken(); +{{/useJackson3}} +{{#useJackson3}} + JsonToken token = tree.asToken(); +{{/useJackson3}} {{#composedSchemas}} {{#oneOf}} // deserialize {{{dataType}}}{{#isNullable}} (nullable){{/isNullable}} @@ -122,10 +158,20 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im if (attemptParsing) { {{#isMap}} final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; +{{^useJackson3}} deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); +{{/useJackson3}} +{{#useJackson3}} + deserialized = ctxt.readTreeAsValue(tree, ctxt.getTypeFactory().constructType(ref)); +{{/useJackson3}} {{/isMap}} {{^isMap}} +{{^useJackson3}} deserialized = tree.traverse(jp.getCodec()).readValueAs({{{dataType}}}.class); +{{/useJackson3}} +{{#useJackson3}} + deserialized = ctxt.readTreeAsValue(tree, {{{dataType}}}.class); +{{/useJackson3}} {{/isMap}} // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON @@ -137,7 +183,12 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#isArray}} if (token == JsonToken.START_ARRAY) { final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; +{{^useJackson3}} deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); +{{/useJackson3}} +{{#useJackson3}} + deserialized = ctxt.readTreeAsValue(tree, ctxt.getTypeFactory().constructType(ref)); +{{/useJackson3}} // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -157,19 +208,34 @@ 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)); +{{^useJackson3}} + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for {{classname}}: %d classes match result, expected 1", match)); +{{/useJackson3}} +{{#useJackson3}} + throw DatabindException.from(jp, String.format(java.util.Locale.ROOT, "Failed deserialization for {{classname}}: %d classes match result, expected 1", match)); +{{/useJackson3}} } /** * Handle deserialization of the 'null' value. */ @Override +{{^useJackson3}} public {{classname}} getNullValue(DeserializationContext ctxt) throws JsonMappingException { +{{/useJackson3}} +{{#useJackson3}} + public {{classname}} getNullValue(DeserializationContext ctxt) { +{{/useJackson3}} {{#isNullable}} return null; {{/isNullable}} {{^isNullable}} +{{^useJackson3}} throw new JsonMappingException(ctxt.getParser(), "{{classname}} cannot be null"); +{{/useJackson3}} +{{#useJackson3}} + throw DatabindException.from(ctxt.getParser(), "{{classname}} cannot be null"); +{{/useJackson3}} {{/isNullable}} } } @@ -181,6 +247,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 +347,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/templates/libraries/jersey3/pojo.mustache b/templates/libraries/jersey3/pojo.mustache index a73f8694..95c06405 100644 --- a/templates/libraries/jersey3/pojo.mustache +++ b/templates/libraries/jersey3/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,14 +73,14 @@ 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}} {{#deprecated}} @Deprecated {{/deprecated}} - private JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined(); + private JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}}; {{/isContainer}} {{^isContainer}} {{#deprecated}} @@ -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/templates/libraries/jersey3/pom.mustache b/templates/libraries/jersey3/pom.mustache index 23e2b05b..d9ea8719 100644 --- a/templates/libraries/jersey3/pom.mustache +++ b/templates/libraries/jersey3/pom.mustache @@ -160,8 +160,14 @@ maven-compiler-plugin 3.10.1 +{{^useCustomTemplateCode}} + 17 + 17 +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} 1.8 1.8 +{{/useCustomTemplateCode}} true 128m 512m @@ -184,8 +190,14 @@ +{{^useCustomTemplateCode}} + none + 17 +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} none 1.8 +{{/useCustomTemplateCode}} http.response.details @@ -321,13 +333,16 @@ jersey-media-multipart ${jersey-version}
+ {{^useJackson3}} org.glassfish.jersey.media jersey-media-json-jackson ${jersey-version} + {{/useJackson3}} + {{^useJackson3}} com.fasterxml.jackson.core jackson-core @@ -336,13 +351,37 @@ com.fasterxml.jackson.core jackson-annotations - ${jackson-version} + ${jackson-annotations-version} com.fasterxml.jackson.core jackson-databind ${jackson-databind-version} + {{/useJackson3}} + {{#useJackson3}} + + tools.jackson.core + jackson-core + ${jackson3-version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson-annotations-version} + + + tools.jackson.core + jackson-databind + ${jackson3-version} + + + + tools.jackson.jakarta.rs + jackson-jakarta-rs-json-provider + ${jackson3-version} + + {{/useJackson3}} {{#openApiNullable}} org.openapitools @@ -357,19 +396,46 @@ jersey-media-jaxb ${jersey-version} + {{^useJackson3}} + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + ${jackson-version} + + {{/useJackson3}} + {{#useJackson3}} + + + tools.jackson.dataformat + jackson-dataformat-xml + ${jackson3-version} + + {{/useJackson3}} {{/withXml}} {{#joda}} + {{^useJackson3}} com.fasterxml.jackson.datatype jackson-datatype-joda ${jackson-version} + {{/useJackson3}} + {{#useJackson3}} + + tools.jackson.datatype + jackson-datatype-joda + ${jackson3-version} + + {{/useJackson3}} {{/joda}} + {{^useJackson3}} com.fasterxml.jackson.datatype jackson-datatype-jsr310 ${jackson-version} + {{/useJackson3}} + {{#hasHttpSignatureMethods}} org.tomitribe @@ -437,12 +503,30 @@ {{#swagger2AnnotationLibrary}} 2.2.15 {{/swagger2AnnotationLibrary}} - 3.1.1 - 2.17.1 - 2.17.1 - 0.2.6 + 3.1.11 + {{^useJackson3}} + 2.21.6 + 2.21 + 2.21.6 + {{/useJackson3}} + {{#useJackson3}} + 3.1.6 + 2.21 + {{/useJackson3}} + 0.2.12 + {{#useJakartaEe}} +{{^useCustomTemplateCode}} + 3.0.0 +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} 2.1.1 - 3.0.2 +{{/useCustomTemplateCode}} + 3.1.1 + {{/useJakartaEe}} + {{^useJakartaEe}} + 1.3.5 + 2.0.2 + {{/useJakartaEe}} 5.10.0 {{#hasHttpSignatureMethods}} 1.8 diff --git a/templates/model.mustache b/templates/model.mustache index 55e6678d..0c3c6df5 100644 --- a/templates/model.mustache +++ b/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/templates/modelEnum.mustache b/templates/modelEnum.mustache index d1ba359d..b8431b9f 100644 --- a/templates/modelEnum.mustache +++ b/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/templates/modelInnerEnum.mustache b/templates/modelInnerEnum.mustache index f8752409..d2a6f4f1 100644 --- a/templates/modelInnerEnum.mustache +++ b/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/templates/nullable_var_annotations.mustache b/templates/nullable_var_annotations.mustache index 7dbaf402..7b13c89b 100644 --- a/templates/nullable_var_annotations.mustache +++ b/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/templates/oneof_interface.mustache b/templates/oneof_interface.mustache index d6727727..71888430 100644 --- a/templates/oneof_interface.mustache +++ b/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/templates/pojo.mustache b/templates/pojo.mustache index 09482dd6..b2e3ae60 100644 --- a/templates/pojo.mustache +++ b/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/templates/pom.mustache b/templates/pom.mustache index c46bc598..8d6d35de 100644 --- a/templates/pom.mustache +++ b/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/templates/typeInfoAnnotation.mustache b/templates/typeInfoAnnotation.mustache index 07f77c75..04f97320 100644 --- a/templates/typeInfoAnnotation.mustache +++ b/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({