From 023dfd3f0e63b7a390b19a30b431dd80a61c207d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 21 Nov 2024 09:06:36 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.441.1 --- .speakeasy/gen.lock | 17 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 15 +- README.md | 4 +- RELEASES.md | 11 ++ build.gradle | 7 +- ...ackStateData.md => CreateCallbackState.md} | 2 +- .../VaultCreateCallbackStateRequest.md | 14 +- docs/sdks/createcallback/README.md | 4 +- gradlew.bat | 184 +++++++++--------- .../com/apideck/unify/CreateCallback.java | 2 +- .../com/apideck/unify/SDKConfiguration.java | 4 +- ...tateData.java => CreateCallbackState.java} | 18 +- .../VaultCreateCallbackStateRequest.java | 40 ++-- 14 files changed, 169 insertions(+), 155 deletions(-) create mode 100644 RELEASES.md rename docs/models/components/{CreateCallbackStateData.md => CreateCallbackState.md} (97%) rename src/main/java/com/apideck/unify/models/components/{CreateCallbackStateData.java => CreateCallbackState.java} (86%) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e000f12..0ed1f89 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,20 @@ lockVersion: 2.0.0 id: 38254260-287a-40b6-9ac5-c2fcb654c9cc management: - docChecksum: 1fa9ac07d9488b4560106fd276a96436 + docChecksum: 4334ffef2795f1c48280e812833dd9d6 docVersion: 10.8.1 - speakeasyVersion: 1.441.0 - generationVersion: 2.460.1 - releaseVersion: 0.1.10 - configChecksum: c529a8b519a52d33d918c75b01ebc58e + speakeasyVersion: 1.441.1 + generationVersion: 2.461.2 + releaseVersion: 0.1.11 + configChecksum: 0d394cc616383dc04582e7feca08cdf8 + repoURL: https://github.com/apideck-libraries/sdk-java.git published: true features: java: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 constsAndDefaults: 0.1.1 - core: 3.32.0 + core: 3.32.1 deprecations: 2.81.1 downloadStreams: 0.1.1 flattening: 2.81.1 @@ -179,7 +180,7 @@ generatedFiles: - docs/models/components/CreateApplicationResponse.md - docs/models/components/CreateBillPaymentResponse.md - docs/models/components/CreateBillResponse.md - - docs/models/components/CreateCallbackStateData.md + - docs/models/components/CreateCallbackState.md - docs/models/components/CreateCallbackStateResponse.md - docs/models/components/CreateCallbackStateResponseData.md - docs/models/components/CreateCommentResponse.md @@ -1876,7 +1877,7 @@ generatedFiles: - src/main/java/com/apideck/unify/models/components/CreateApplicationResponse.java - src/main/java/com/apideck/unify/models/components/CreateBillPaymentResponse.java - src/main/java/com/apideck/unify/models/components/CreateBillResponse.java - - src/main/java/com/apideck/unify/models/components/CreateCallbackStateData.java + - src/main/java/com/apideck/unify/models/components/CreateCallbackState.java - src/main/java/com/apideck/unify/models/components/CreateCallbackStateResponse.java - src/main/java/com/apideck/unify/models/components/CreateCallbackStateResponseData.java - src/main/java/com/apideck/unify/models/components/CreateCommentResponse.java diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index b073ce1..5b6d25e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true java: - version: 0.1.10 + version: 0.1.11 additionalDependencies: [] additionalPlugins: [] artifactID: unify diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 3eb82aa..dc47b94 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,26 +1,27 @@ -speakeasyVersion: 1.441.0 +speakeasyVersion: 1.441.1 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:35808afc5f844ae2e41376c099e4c3a8814d758138546c8b94477abb687f0658 - sourceBlobDigest: sha256:1c38d5aab858a76916059a1957fa9342d82404952a32ae0f1920967230d9558b + sourceRevisionDigest: sha256:785baf18a95e4ada6d6fd933c1693d8dc6ed51965dddd46c0d266e1f36c864f3 + sourceBlobDigest: sha256:a248ccbdea4f8606afcaed86823f9e6e528a382fba0f616317d16ebda61acf5a tags: - latest + - speakeasy-sdk-regen-1732179763 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:35808afc5f844ae2e41376c099e4c3a8814d758138546c8b94477abb687f0658 - sourceBlobDigest: sha256:1c38d5aab858a76916059a1957fa9342d82404952a32ae0f1920967230d9558b + sourceRevisionDigest: sha256:785baf18a95e4ada6d6fd933c1693d8dc6ed51965dddd46c0d266e1f36c864f3 + sourceBlobDigest: sha256:a248ccbdea4f8606afcaed86823f9e6e528a382fba0f616317d16ebda61acf5a codeSamplesNamespace: apideck-oas-code-samples - codeSamplesRevisionDigest: sha256:cf1812157192f7c1de5cb8339d40947a0461d451d708cd0456cb55ce3755c6db + codeSamplesRevisionDigest: sha256:dccf01e89633bc1e21a30a5c930237861d8d74d047c7b03114537c926f6841f3 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest sources: Apideck-OAS: inputs: - - location: ../unify/speakeasy-spec.yml + - location: https://ci-spec-unify.s3.eu-central-1.amazonaws.com/speakeasy-spec.yml registry: location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas targets: diff --git a/README.md b/README.md index 6ede80e..beb0dce 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.apideck:unify:0.1.10' +implementation 'com.apideck:unify:0.1.11' ``` Maven: @@ -53,7 +53,7 @@ Maven: com.apideck unify - 0.1.10 + 0.1.11 ``` diff --git a/RELEASES.md b/RELEASES.md new file mode 100644 index 0000000..7dd5e28 --- /dev/null +++ b/RELEASES.md @@ -0,0 +1,11 @@ + + +## 2024-11-21 09:02:38 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.441.1 (2.461.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.1.11] . +### Releases +- [Maven Central v0.1.11] https://central.sonatype.com/artifact/com.apideck/unify/0.1.11 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index aa73cce..8b6ddbe 100644 --- a/build.gradle +++ b/build.gradle @@ -63,7 +63,7 @@ tasks.withType(Javadoc) { } group = "com.apideck" -version = "0.1.10" +version = "0.1.11" sourcesJar { archiveBaseName = "unify" @@ -101,7 +101,7 @@ publishing { maven(MavenPublication) { groupId = 'com.apideck' artifactId = 'unify' - version = '0.1.10' + version = '0.1.11' from components.java @@ -145,10 +145,11 @@ if (!project.hasProperty('skip.signing')) { } dependencies { + api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2' implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2' - implementation 'org.openapitools:jackson-databind-nullable:0.2.6' + api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'org.apache.httpcomponents:httpclient:4.5.14' implementation 'org.apache.httpcomponents:httpmime:4.5.14' implementation 'commons-io:commons-io:2.15.1' diff --git a/docs/models/components/CreateCallbackStateData.md b/docs/models/components/CreateCallbackState.md similarity index 97% rename from docs/models/components/CreateCallbackStateData.md rename to docs/models/components/CreateCallbackState.md index 6593890..3462cb7 100644 --- a/docs/models/components/CreateCallbackStateData.md +++ b/docs/models/components/CreateCallbackState.md @@ -1,4 +1,4 @@ -# CreateCallbackStateData +# CreateCallbackState ## Fields diff --git a/docs/models/operations/VaultCreateCallbackStateRequest.md b/docs/models/operations/VaultCreateCallbackStateRequest.md index 291f3bc..3fc6100 100644 --- a/docs/models/operations/VaultCreateCallbackStateRequest.md +++ b/docs/models/operations/VaultCreateCallbackStateRequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | -| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | -| `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | -| `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | -| `createCallbackStateData` | [CreateCallbackStateData](../../models/components/CreateCallbackStateData.md) | :heavy_check_mark: | Callback state data | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `customerId` | *Optional\* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *Optional\* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | +| `serviceId` | *String* | :heavy_check_mark: | Service ID of the resource to return | pipedrive | +| `unifiedApi` | *String* | :heavy_check_mark: | Unified API | crm | +| `createCallbackState` | [CreateCallbackState](../../models/components/CreateCallbackState.md) | :heavy_check_mark: | Callback state data | | \ No newline at end of file diff --git a/docs/sdks/createcallback/README.md b/docs/sdks/createcallback/README.md index 1323e66..76d6f65 100644 --- a/docs/sdks/createcallback/README.md +++ b/docs/sdks/createcallback/README.md @@ -18,7 +18,7 @@ This endpoint creates a callback state that can be used to issue requests to the package hello.world; import com.apideck.unify.Apideck; -import com.apideck.unify.models.components.CreateCallbackStateData; +import com.apideck.unify.models.components.CreateCallbackState; import com.apideck.unify.models.errors.BadRequestResponse; import com.apideck.unify.models.errors.NotFoundResponse; import com.apideck.unify.models.errors.PaymentRequiredResponse; @@ -41,7 +41,7 @@ public class Application { VaultCreateCallbackStateRequest req = VaultCreateCallbackStateRequest.builder() .serviceId("pipedrive") .unifiedApi("crm") - .createCallbackStateData(CreateCallbackStateData.builder() + .createCallbackState(CreateCallbackState.builder() .redirectUri("https://example.com/callback") .build()) .build(); diff --git a/gradlew.bat b/gradlew.bat index 93e3f59..6689b85 100755 --- a/gradlew.bat +++ b/gradlew.bat @@ -1,92 +1,92 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/src/main/java/com/apideck/unify/CreateCallback.java b/src/main/java/com/apideck/unify/CreateCallback.java index 1a4e563..edd066e 100644 --- a/src/main/java/com/apideck/unify/CreateCallback.java +++ b/src/main/java/com/apideck/unify/CreateCallback.java @@ -105,7 +105,7 @@ public VaultCreateCallbackStateResponse state( new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, - "createCallbackStateData", + "createCallbackState", "json", false); if (_serializedRequestBody == null) { diff --git a/src/main/java/com/apideck/unify/SDKConfiguration.java b/src/main/java/com/apideck/unify/SDKConfiguration.java index 75113b3..b2c2ba9 100644 --- a/src/main/java/com/apideck/unify/SDKConfiguration.java +++ b/src/main/java/com/apideck/unify/SDKConfiguration.java @@ -27,8 +27,8 @@ public Optional securitySource() { public int serverIdx = 0; private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "10.8.1"; - public static final String SDK_VERSION = "0.1.10"; - public static final String GEN_VERSION = "2.460.1"; + public static final String SDK_VERSION = "0.1.11"; + public static final String GEN_VERSION = "2.461.2"; private static final String BASE_PACKAGE = "com.apideck.unify"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/apideck/unify/models/components/CreateCallbackStateData.java b/src/main/java/com/apideck/unify/models/components/CreateCallbackState.java similarity index 86% rename from src/main/java/com/apideck/unify/models/components/CreateCallbackStateData.java rename to src/main/java/com/apideck/unify/models/components/CreateCallbackState.java index 29bfa17..42fd0b3 100644 --- a/src/main/java/com/apideck/unify/models/components/CreateCallbackStateData.java +++ b/src/main/java/com/apideck/unify/models/components/CreateCallbackState.java @@ -17,7 +17,7 @@ import java.util.Optional; -public class CreateCallbackStateData { +public class CreateCallbackState { /** * The redirect URI to be used after the connection is created. @@ -27,13 +27,13 @@ public class CreateCallbackStateData { private Optional redirectUri; @JsonCreator - public CreateCallbackStateData( + public CreateCallbackState( @JsonProperty("redirect_uri") Optional redirectUri) { Utils.checkNotNull(redirectUri, "redirectUri"); this.redirectUri = redirectUri; } - public CreateCallbackStateData() { + public CreateCallbackState() { this(Optional.empty()); } @@ -52,7 +52,7 @@ public final static Builder builder() { /** * The redirect URI to be used after the connection is created. */ - public CreateCallbackStateData withRedirectUri(String redirectUri) { + public CreateCallbackState withRedirectUri(String redirectUri) { Utils.checkNotNull(redirectUri, "redirectUri"); this.redirectUri = Optional.ofNullable(redirectUri); return this; @@ -61,7 +61,7 @@ public CreateCallbackStateData withRedirectUri(String redirectUri) { /** * The redirect URI to be used after the connection is created. */ - public CreateCallbackStateData withRedirectUri(Optional redirectUri) { + public CreateCallbackState withRedirectUri(Optional redirectUri) { Utils.checkNotNull(redirectUri, "redirectUri"); this.redirectUri = redirectUri; return this; @@ -75,7 +75,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateCallbackStateData other = (CreateCallbackStateData) o; + CreateCallbackState other = (CreateCallbackState) o; return Objects.deepEquals(this.redirectUri, other.redirectUri); } @@ -88,7 +88,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(CreateCallbackStateData.class, + return Utils.toString(CreateCallbackState.class, "redirectUri", redirectUri); } @@ -118,8 +118,8 @@ public Builder redirectUri(Optional redirectUri) { return this; } - public CreateCallbackStateData build() { - return new CreateCallbackStateData( + public CreateCallbackState build() { + return new CreateCallbackState( redirectUri); } } diff --git a/src/main/java/com/apideck/unify/models/operations/VaultCreateCallbackStateRequest.java b/src/main/java/com/apideck/unify/models/operations/VaultCreateCallbackStateRequest.java index 9b386bd..49ebd28 100644 --- a/src/main/java/com/apideck/unify/models/operations/VaultCreateCallbackStateRequest.java +++ b/src/main/java/com/apideck/unify/models/operations/VaultCreateCallbackStateRequest.java @@ -5,7 +5,7 @@ package com.apideck.unify.models.operations; -import com.apideck.unify.models.components.CreateCallbackStateData; +import com.apideck.unify.models.components.CreateCallbackState; import com.apideck.unify.utils.SpeakeasyMetadata; import com.apideck.unify.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -46,7 +46,7 @@ public class VaultCreateCallbackStateRequest { * Callback state data */ @SpeakeasyMetadata("request:mediaType=application/json") - private CreateCallbackStateData createCallbackStateData; + private CreateCallbackState createCallbackState; @JsonCreator public VaultCreateCallbackStateRequest( @@ -54,24 +54,24 @@ public VaultCreateCallbackStateRequest( Optional appId, String serviceId, String unifiedApi, - CreateCallbackStateData createCallbackStateData) { + CreateCallbackState createCallbackState) { Utils.checkNotNull(customerId, "customerId"); Utils.checkNotNull(appId, "appId"); Utils.checkNotNull(serviceId, "serviceId"); Utils.checkNotNull(unifiedApi, "unifiedApi"); - Utils.checkNotNull(createCallbackStateData, "createCallbackStateData"); + Utils.checkNotNull(createCallbackState, "createCallbackState"); this.customerId = customerId; this.appId = appId; this.serviceId = serviceId; this.unifiedApi = unifiedApi; - this.createCallbackStateData = createCallbackStateData; + this.createCallbackState = createCallbackState; } public VaultCreateCallbackStateRequest( String serviceId, String unifiedApi, - CreateCallbackStateData createCallbackStateData) { - this(Optional.empty(), Optional.empty(), serviceId, unifiedApi, createCallbackStateData); + CreateCallbackState createCallbackState) { + this(Optional.empty(), Optional.empty(), serviceId, unifiedApi, createCallbackState); } /** @@ -110,8 +110,8 @@ public String unifiedApi() { * Callback state data */ @JsonIgnore - public CreateCallbackStateData createCallbackStateData() { - return createCallbackStateData; + public CreateCallbackState createCallbackState() { + return createCallbackState; } public final static Builder builder() { @@ -175,9 +175,9 @@ public VaultCreateCallbackStateRequest withUnifiedApi(String unifiedApi) { /** * Callback state data */ - public VaultCreateCallbackStateRequest withCreateCallbackStateData(CreateCallbackStateData createCallbackStateData) { - Utils.checkNotNull(createCallbackStateData, "createCallbackStateData"); - this.createCallbackStateData = createCallbackStateData; + public VaultCreateCallbackStateRequest withCreateCallbackState(CreateCallbackState createCallbackState) { + Utils.checkNotNull(createCallbackState, "createCallbackState"); + this.createCallbackState = createCallbackState; return this; } @@ -195,7 +195,7 @@ public boolean equals(java.lang.Object o) { Objects.deepEquals(this.appId, other.appId) && Objects.deepEquals(this.serviceId, other.serviceId) && Objects.deepEquals(this.unifiedApi, other.unifiedApi) && - Objects.deepEquals(this.createCallbackStateData, other.createCallbackStateData); + Objects.deepEquals(this.createCallbackState, other.createCallbackState); } @Override @@ -205,7 +205,7 @@ public int hashCode() { appId, serviceId, unifiedApi, - createCallbackStateData); + createCallbackState); } @Override @@ -215,7 +215,7 @@ public String toString() { "appId", appId, "serviceId", serviceId, "unifiedApi", unifiedApi, - "createCallbackStateData", createCallbackStateData); + "createCallbackState", createCallbackState); } public final static class Builder { @@ -228,7 +228,7 @@ public final static class Builder { private String unifiedApi; - private CreateCallbackStateData createCallbackStateData; + private CreateCallbackState createCallbackState; private Builder() { // force use of static builder() method @@ -291,9 +291,9 @@ public Builder unifiedApi(String unifiedApi) { /** * Callback state data */ - public Builder createCallbackStateData(CreateCallbackStateData createCallbackStateData) { - Utils.checkNotNull(createCallbackStateData, "createCallbackStateData"); - this.createCallbackStateData = createCallbackStateData; + public Builder createCallbackState(CreateCallbackState createCallbackState) { + Utils.checkNotNull(createCallbackState, "createCallbackState"); + this.createCallbackState = createCallbackState; return this; } @@ -303,7 +303,7 @@ public VaultCreateCallbackStateRequest build() { appId, serviceId, unifiedApi, - createCallbackStateData); + createCallbackState); } } }