From 6e7ba4287fea63802866e0dff4ffb854e28c5f7a Mon Sep 17 00:00:00 2001 From: Cameron Koegel <53310569+ckoegel@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:17:36 -0500 Subject: [PATCH] SWI-6496 Fix Media Tests (#159) * update to 7.9.0 * update media API * fix merge --- .openapi-generator/VERSION | 2 +- README.md | 4 +- build.gradle | 7 +- build.sbt | 5 +- custom_templates/api.mustache | 597 ++++++++++++++++++ openapi-config.yml | 1 + openapitools.json | 2 +- .../java/com/bandwidth/sdk/ApiClient.java | 34 +- .../java/com/bandwidth/sdk/ApiException.java | 2 +- .../java/com/bandwidth/sdk/Configuration.java | 2 +- src/main/java/com/bandwidth/sdk/JSON.java | 19 +- src/main/java/com/bandwidth/sdk/Pair.java | 2 +- .../bandwidth/sdk/ServerConfiguration.java | 15 +- .../com/bandwidth/sdk/ServerVariable.java | 15 +- .../java/com/bandwidth/sdk/StringUtil.java | 2 +- .../java/com/bandwidth/sdk/api/MediaApi.java | 27 +- .../com/bandwidth/sdk/auth/ApiKeyAuth.java | 2 +- .../com/bandwidth/sdk/auth/HttpBasicAuth.java | 2 - .../bandwidth/sdk/auth/HttpBearerAuth.java | 2 +- .../sdk/model/AbstractOpenApiSchema.java | 2 +- .../sdk/model/AccountStatistics.java | 47 +- .../bandwidth/sdk/model/AnswerCallback.java | 95 ++- .../sdk/model/BridgeCompleteCallback.java | 103 ++- .../model/BridgeTargetCompleteCallback.java | 91 ++- .../sdk/model/CallRecordingMetadata.java | 115 ++-- .../com/bandwidth/sdk/model/CallState.java | 111 ++-- .../sdk/model/CallTranscription.java | 55 +- .../sdk/model/CallTranscriptionMetadata.java | 51 +- .../sdk/model/CallTranscriptionResponse.java | 55 +- .../com/bandwidth/sdk/model/CodeRequest.java | 63 +- .../com/bandwidth/sdk/model/Conference.java | 71 +-- .../model/ConferenceCompletedCallback.java | 59 +- .../sdk/model/ConferenceCreatedCallback.java | 59 +- .../bandwidth/sdk/model/ConferenceMember.java | 63 +- .../model/ConferenceMemberExitCallback.java | 71 +-- .../model/ConferenceMemberJoinCallback.java | 71 +-- .../ConferenceRecordingAvailableCallback.java | 95 ++- .../model/ConferenceRecordingMetadata.java | 87 ++- .../sdk/model/ConferenceRedirectCallback.java | 59 +- .../com/bandwidth/sdk/model/CreateCall.java | 123 ++-- .../sdk/model/CreateCallResponse.java | 123 ++-- .../sdk/model/CreateLookupResponse.java | 47 +- .../sdk/model/CreateMessageRequestError.java | 51 +- .../bandwidth/sdk/model/DeferredResult.java | 47 +- .../sdk/model/DisconnectCallback.java | 107 ++-- .../com/bandwidth/sdk/model/Diversion.java | 67 +- .../com/bandwidth/sdk/model/DtmfCallback.java | 107 ++-- .../com/bandwidth/sdk/model/FieldError.java | 47 +- .../bandwidth/sdk/model/GatherCallback.java | 111 ++-- .../sdk/model/InboundMessageCallback.java | 59 +- .../model/InboundMessageCallbackMessage.java | 87 ++- .../bandwidth/sdk/model/InitiateCallback.java | 87 ++- .../bandwidth/sdk/model/ListMessageItem.java | 107 ++-- .../bandwidth/sdk/model/LookupRequest.java | 43 +- .../com/bandwidth/sdk/model/LookupResult.java | 75 ++- .../com/bandwidth/sdk/model/LookupStatus.java | 55 +- .../MachineDetectionCompleteCallback.java | 95 ++- .../model/MachineDetectionConfiguration.java | 99 ++- .../sdk/model/MachineDetectionResult.java | 47 +- .../java/com/bandwidth/sdk/model/Media.java | 51 +- .../java/com/bandwidth/sdk/model/Message.java | 91 ++- .../sdk/model/MessageDeliveredCallback.java | 59 +- .../MessageDeliveredCallbackMessage.java | 87 ++- .../sdk/model/MessageFailedCallback.java | 63 +- .../model/MessageFailedCallbackMessage.java | 87 ++- .../bandwidth/sdk/model/MessageRequest.java | 71 +-- .../sdk/model/MessageSendingCallback.java | 59 +- .../model/MessageSendingCallbackMessage.java | 87 ++- .../com/bandwidth/sdk/model/MessagesList.java | 51 +- .../sdk/model/MessagingCodeResponse.java | 43 +- .../sdk/model/MessagingRequestError.java | 47 +- .../sdk/model/MfaForbiddenRequestError.java | 43 +- .../bandwidth/sdk/model/MfaRequestError.java | 47 +- .../model/MfaUnauthorizedRequestError.java | 43 +- .../com/bandwidth/sdk/model/PageInfo.java | 55 +- .../sdk/model/RecordingAvailableCallback.java | 127 ++-- .../sdk/model/RecordingCompleteCallback.java | 127 ++-- .../model/RecordingTranscriptionMetadata.java | 55 +- .../sdk/model/RecordingTranscriptions.java | 43 +- .../bandwidth/sdk/model/RedirectCallback.java | 103 ++- .../com/bandwidth/sdk/model/StirShaken.java | 51 +- .../java/com/bandwidth/sdk/model/Tag.java | 47 +- .../sdk/model/TnLookupRequestError.java | 43 +- .../sdk/model/TranscribeRecording.java | 67 +- .../bandwidth/sdk/model/Transcription.java | 47 +- .../model/TranscriptionAvailableCallback.java | 123 ++-- .../sdk/model/TransferAnswerCallback.java | 99 ++- .../sdk/model/TransferCompleteCallback.java | 111 ++-- .../sdk/model/TransferDisconnectCallback.java | 119 ++-- .../com/bandwidth/sdk/model/UpdateCall.java | 79 ++- .../sdk/model/UpdateCallRecording.java | 43 +- .../bandwidth/sdk/model/UpdateConference.java | 75 ++- .../sdk/model/UpdateConferenceMember.java | 51 +- .../sdk/model/VerifyCodeRequest.java | 55 +- .../sdk/model/VerifyCodeResponse.java | 43 +- .../bandwidth/sdk/model/VoiceApiError.java | 51 +- .../sdk/model/VoiceCodeResponse.java | 43 +- 97 files changed, 3448 insertions(+), 2887 deletions(-) create mode 100644 custom_templates/api.mustache diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 93c8ddab..4bc5d618 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.6.0 +7.9.0 diff --git a/README.md b/README.md index 7a2b1594..a1254273 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Bandwidth - API version: 1.0.0 - - Generator version: 7.6.0 + - Generator version: 7.9.0 Bandwidth's Communication APIs @@ -85,7 +85,7 @@ import com.bandwidth.sdk.ApiClient; import com.bandwidth.sdk.ApiException; import com.bandwidth.sdk.Configuration; import com.bandwidth.sdk.auth.*; -import com.bandwidth.sdk.models.*; +import com.bandwidth.sdk.model.*; import com.bandwidth.sdk.api.CallsApi; public class Example { diff --git a/build.gradle b/build.gradle index 9f33620e..7e11e0b0 100644 --- a/build.gradle +++ b/build.gradle @@ -112,14 +112,13 @@ dependencies { implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.google.code.gson:gson:2.9.1' implementation 'io.gsonfire:gson-fire:1.9.0' - implementation 'javax.ws.rs:jsr311-api:1.1.1' - implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' + implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' implementation 'org.openapitools:jackson-databind-nullable:0.2.6' implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' testImplementation 'org.mockito:mockito-core:3.12.4' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' } javadoc { diff --git a/build.sbt b/build.sbt index c186322a..8ce42414 100644 --- a/build.sbt +++ b/build.sbt @@ -14,14 +14,13 @@ lazy val root = (project in file(".")). "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", "com.google.code.gson" % "gson" % "2.9.1", "org.apache.commons" % "commons-lang3" % "3.12.0", - "javax.ws.rs" % "jsr311-api" % "1.1.1", - "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1", + "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6", "org.openapitools" % "jackson-databind-nullable" % "0.2.6", "io.gsonfire" % "gson-fire" % "1.9.0" % "compile", "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", - "org.junit.jupiter" % "junit-jupiter-api" % "5.10.2" % "test", + "org.junit.jupiter" % "junit-jupiter-api" % "5.10.3" % "test", "com.novocode" % "junit-interface" % "0.10" % "test", "org.mockito" % "mockito-core" % "3.12.4" % "test" ) diff --git a/custom_templates/api.mustache b/custom_templates/api.mustache new file mode 100644 index 00000000..da2d1c2c --- /dev/null +++ b/custom_templates/api.mustache @@ -0,0 +1,597 @@ +{{>licenseInfo}} + +package {{package}}; + +import {{invokerPackage}}.ApiCallback; +import {{invokerPackage}}.ApiClient; +import {{invokerPackage}}.ApiException; +{{#dynamicOperations}} +import {{invokerPackage}}.ApiOperation; +{{/dynamicOperations}} +import {{invokerPackage}}.ApiResponse; +import {{invokerPackage}}.Configuration; +import {{invokerPackage}}.Pair; +import {{invokerPackage}}.ProgressRequestBody; +import {{invokerPackage}}.ProgressResponseBody; +{{#performBeanValidation}} +import {{invokerPackage}}.BeanValidationException; +{{/performBeanValidation}} + +import com.google.gson.reflect.TypeToken; +{{#dynamicOperations}} +import io.swagger.v3.oas.models.Operation; +import io.swagger.v3.oas.models.parameters.Parameter; +{{/dynamicOperations}} + +import java.io.IOException; + +{{#useBeanValidation}} +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; +{{/useBeanValidation}} +{{#performBeanValidation}} +import {{javaxPackage}}.validation.ConstraintViolation; +import {{javaxPackage}}.validation.Validation; +import {{javaxPackage}}.validation.ValidatorFactory; +import {{javaxPackage}}.validation.executable.ExecutableValidator; +import java.util.Set; +import java.lang.reflect.Method; +import java.lang.reflect.Type; +{{/performBeanValidation}} + +{{#imports}}import {{import}}; +{{/imports}} + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +{{#supportStreaming}} +import java.io.InputStream; +{{/supportStreaming}} + +{{#operations}} +public class {{classname}} { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public {{classname}}() { + this(Configuration.getDefaultApiClient()); + } + + public {{classname}}(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + {{#operation}} + {{^vendorExtensions.x-group-parameters}}/** + * Build call for {{operationId}}{{#allParams}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Call({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { {{#servers}}"{{{url}}}"{{^-last}}, {{/-last}}{{/servers}} }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; + + // create path and map variables + {{^dynamicOperations}} + String localVarPath = "{{{path}}}"{{#pathParams}} + .replace("{" + "{{baseName}}" + "}", localVarApiClient.escapeString({{#collectionFormat}}localVarApiClient.collectionPathParameterToString("{{{collectionFormat}}}", {{{paramName}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}.toString(){{/collectionFormat}})){{/pathParams}}; + {{/dynamicOperations}} + {{#dynamicOperations}} + ApiOperation apiOperation = localVarApiClient.getOperationLookupMap().get("{{{operationId}}}"); + if (apiOperation == null) { + throw new ApiException("Operation not found in OAS"); + } + Operation operation = apiOperation.getOperation(); + String localVarPath = apiOperation.getPath(); + Map paramMap = new HashMap<>(); + {{#allParams}} + {{^isFormParam}} + {{^isBodyParam}} + paramMap.put("{{baseName}}", {{paramName}}); + {{/isBodyParam}} + {{/isFormParam}} + {{/allParams}} + {{/dynamicOperations}} + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + {{#formParams}} + if ({{paramName}} != null) { + localVarFormParams.put("{{baseName}}", {{paramName}}); + } + + {{/formParams}} + {{^dynamicOperations}} + {{#queryParams}} + if ({{paramName}} != null) { + {{#isFreeFormObject}}localVarQueryParams.addAll(localVarApiClient.freeFormParameterToPairs({{paramName}}));{{/isFreeFormObject}}{{^isFreeFormObject}}{{#collectionFormat}}localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("{{{.}}}", {{/collectionFormat}}{{^collectionFormat}}localVarQueryParams.addAll(localVarApiClient.parameterToPair({{/collectionFormat}}"{{baseName}}", {{paramName}}));{{/isFreeFormObject}} + } + + {{/queryParams}} + {{#constantParams}} + {{#isQueryParam}} + // Set client side default value of Query Param "{{baseName}}". + localVarCollectionQueryParams.add(new Pair("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}})); + + {{/isQueryParam}} + {{/constantParams}} + {{#constantParams}} + {{#isHeaderParam}} + // Set client side default value of Header Param "{{baseName}}". + localVarHeaderParams.put("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}}); + + {{/isHeaderParam}} + {{/constantParams}} + {{#cookieParams}} + if ({{paramName}} != null) { + localVarCookieParams.put("{{baseName}}", localVarApiClient.parameterToString({{paramName}})); + } + + {{/cookieParams}} + {{#constantParams}} + {{#isCookieParam}} + // Set client side default value of Cookie Param "{{baseName}}". + localVarCookieParams.put("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}}); + + {{/isCookieParam}} + {{/constantParams}} + {{/dynamicOperations}} + {{#dynamicOperations}} + localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams); + + {{/dynamicOperations}} + final String[] localVarAccepts = { + {{#produces}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/produces}} + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + {{#consumes}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/consumes}} + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + {{#headerParams}} + + if ({{paramName}} != null) { + localVarHeaderParams.put("{{baseName}}", localVarApiClient.parameterToString({{paramName}})); + } + + {{/headerParams}} + + String[] localVarAuthNames = new String[] { {{#withAWSV4Signature}}"AWS4Auth"{{/withAWSV4Signature}}{{#authMethods}}{{#-first}}{{#withAWSV4Signature}}, {{/withAWSV4Signature}}{{/-first}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}} }; + return localVarApiClient.buildCall(basePath, localVarPath, {{^dynamicOperations}}"{{httpMethod}}"{{/dynamicOperations}}{{#dynamicOperations}}apiOperation.getMethod(){{/dynamicOperations}}, localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + @SuppressWarnings("rawtypes") + private okhttp3.Call {{operationId}}ValidateBeforeCall({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { + {{^performBeanValidation}} + {{#allParams}} + {{#required}} + // verify the required parameter '{{paramName}}' is set + if ({{paramName}} == null) { + throw new ApiException("Missing the required parameter '{{paramName}}' when calling {{operationId}}(Async)"); + } + + {{/required}} + {{/allParams}} + return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); + + {{/performBeanValidation}} + {{#performBeanValidation}} + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { {{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }; + Method method = this.getClass().getMethod("{{operationId}}WithHttpInfo"{{#allParams}}, {{#isArray}}java.util.List{{/isArray}}{{#isMap}}java.util.Map{{/isMap}}{{^isArray}}{{^isMap}}{{{dataType}}}{{/isMap}}{{/isArray}}.class{{/allParams}}); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + {{/performBeanValidation}} + } + + {{^vendorExtensions.x-group-parameters}} + /** + * {{summary}} + * {{notes}}{{#allParams}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}}{{#returnType}} + * @return {{.}}{{/returnType}} + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + {{#vendorExtensions.x-streaming}} + public {{#returnType}}InputStream {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + {{#returnType}}InputStream localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + return localVarResp;{{/returnType}} + } + {{/vendorExtensions.x-streaming}} + {{^vendorExtensions.x-streaming}} + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + {{#returnType}}ApiResponse<{{{.}}}> localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + return localVarResp.getData();{{/returnType}} + } + {{/vendorExtensions.x-streaming}} + {{/vendorExtensions.x-group-parameters}} + + {{^vendorExtensions.x-group-parameters}}/** + * {{summary}} + * {{notes}}{{#allParams}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} + * @return ApiResponse<{{returnType}}{{^returnType}}Void{{/returnType}}> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-streaming}} InputStream {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null); + {{#returnType}} + {{#errorObjectType}} + try { + Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + return localVarApiClient.executeStream(localVarCall, localVarReturnType); + } catch (ApiException e) { + e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken<{{{errorObjectType}}}>(){}.getType())); + throw e; + } + {{/errorObjectType}} + {{^errorObjectType}} + Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + return localVarApiClient.executeStream(localVarCall, localVarReturnType); + {{/errorObjectType}} + {{/returnType}} + } + {{/vendorExtensions.x-streaming}}{{^vendorExtensions.x-streaming}} ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null); + {{^returnType}} + return localVarApiClient.execute(localVarCall); + {{/returnType}} + {{#returnType}} + {{#errorObjectType}} + try { + Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } catch (ApiException e) { + e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken<{{{errorObjectType}}}>(){}.getType())); + throw e; + } + {{/errorObjectType}} + {{^errorObjectType}} + Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + {{/errorObjectType}} + {{/returnType}} + } + {{/vendorExtensions.x-streaming}} + + {{^vendorExtensions.x-group-parameters}}/** + * {{summary}} (asynchronously) + * {{notes}}{{#allParams}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback<{{{returnType}}}{{^returnType}}Void{{/returnType}}> _callback) throws ApiException { + + okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}_callback); + {{#returnType}}Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);{{/returnType}}{{^returnType}}localVarApiClient.executeAsync(localVarCall, _callback);{{/returnType}} + return localVarCall; + } + {{#vendorExtensions.x-group-parameters}} + + public class API{{operationId}}Request { + {{#requiredParams}} + private final {{{dataType}}} {{paramName}}; + {{/requiredParams}} + {{#optionalParams}} + private {{{dataType}}} {{paramName}}; + {{/optionalParams}} + + private API{{operationId}}Request({{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { + {{#requiredParams}} + this.{{paramName}} = {{paramName}}; + {{/requiredParams}} + } + + {{#optionalParams}} + /** + * Set {{paramName}} + * @param {{paramName}} {{description}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}) + * @return API{{operationId}}Request + */ + public API{{operationId}}Request {{paramName}}({{{dataType}}} {{paramName}}) { + this.{{paramName}} = {{paramName}}; + return this; + } + + {{/optionalParams}} + /** + * Build call for {{operationId}} + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); + } + + /** + * Execute {{operationId}} request{{#returnType}} + * @return {{.}}{{/returnType}} + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + {{^vendorExtensions.x-streaming}} + public {{{returnType}}}{{^returnType}}void{{/returnType}} execute() throws ApiException { + {{#returnType}}ApiResponse<{{{.}}}> localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + return localVarResp.getData();{{/returnType}} + } + {{/vendorExtensions.x-streaming}} + {{#vendorExtensions.x-streaming}} + public InputStream execute() throws ApiException { + return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + } + {{/vendorExtensions.x-streaming}} + + /** + * Execute {{operationId}} request with HTTP info returned + * @return ApiResponse<{{returnType}}{{^returnType}}Void{{/returnType}}> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + {{^vendorExtensions.x-streaming}} + public ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> executeWithHttpInfo() throws ApiException { + return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + } + {{/vendorExtensions.x-streaming}} + {{#vendorExtensions.x-streaming}} + public InputStream executeWithHttpInfo() throws ApiException { + return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + } + {{/vendorExtensions.x-streaming}} + + /** + * Execute {{operationId}} request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public okhttp3.Call executeAsync(final ApiCallback<{{{returnType}}}{{^returnType}}Void{{/returnType}}> _callback) throws ApiException { + return {{operationId}}Async({{#allParams}}{{paramName}}, {{/allParams}}_callback); + } + } + + /** + * {{summary}} + * {{notes}}{{#requiredParams}} + * @param {{paramName}} {{description}} (required){{/requiredParams}} + * @return API{{operationId}}Request + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public API{{operationId}}Request {{operationId}}({{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { + return new API{{operationId}}Request({{#requiredParams}}{{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}); + } + {{/vendorExtensions.x-group-parameters}} + {{/operation}} +} +{{/operations}} diff --git a/openapi-config.yml b/openapi-config.yml index ddbd9299..7ae18384 100644 --- a/openapi-config.yml +++ b/openapi-config.yml @@ -13,3 +13,4 @@ modelPackage: com.bandwidth.sdk.model library: okhttp-gson licenseName: MIT useEnumCaseInsensitive: true +templateDir: custom_templates diff --git a/openapitools.json b/openapitools.json index 5c50d6a2..f80faaa6 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.6.0" + "version": "7.9.0" } } diff --git a/src/main/java/com/bandwidth/sdk/ApiClient.java b/src/main/java/com/bandwidth/sdk/ApiClient.java index 35e36a6d..5307b00f 100644 --- a/src/main/java/com/bandwidth/sdk/ApiClient.java +++ b/src/main/java/com/bandwidth/sdk/ApiClient.java @@ -735,6 +735,30 @@ public List parameterToPairs(String collectionFormat, String name, Collect return params; } + /** + * Formats the specified free-form query parameters to a list of {@code Pair} objects. + * + * @param value The free-form query parameters. + * @return A list of {@code Pair} objects. + */ + public List freeFormParameterToPairs(Object value) { + List params = new ArrayList<>(); + + // preconditions + if (value == null || !(value instanceof Map )) { + return params; + } + + final Map valuesMap = (Map) value; + + for (Map.Entry entry : valuesMap.entrySet()) { + params.add(new Pair(entry.getKey(), parameterToString(entry.getValue()))); + } + + return params; + } + + /** * Formats the specified collection path parameter to a string value. * @@ -1173,10 +1197,6 @@ public Call buildCall(String baseUrl, String path, String method, List que * @throws com.bandwidth.sdk.ApiException If fail to serialize the request body object */ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams - List allQueryParams = new ArrayList(queryParams); - allQueryParams.addAll(collectionQueryParams); - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); // prepare HTTP request body @@ -1204,10 +1224,12 @@ public Request buildRequest(String baseUrl, String path, String method, List updatedQueryParams = new ArrayList<>(queryParams); + // update parameters with authentication settings - updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - final Request.Builder reqBuilder = new Request.Builder().url(url); + final Request.Builder reqBuilder = new Request.Builder().url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); processHeaderParams(headerParams, reqBuilder); processCookieParams(cookieParams, reqBuilder); diff --git a/src/main/java/com/bandwidth/sdk/ApiException.java b/src/main/java/com/bandwidth/sdk/ApiException.java index a1c6b060..bbd45785 100644 --- a/src/main/java/com/bandwidth/sdk/ApiException.java +++ b/src/main/java/com/bandwidth/sdk/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/bandwidth/sdk/Configuration.java b/src/main/java/com/bandwidth/sdk/Configuration.java index 612351ee..08715453 100644 --- a/src/main/java/com/bandwidth/sdk/Configuration.java +++ b/src/main/java/com/bandwidth/sdk/Configuration.java @@ -13,7 +13,7 @@ package com.bandwidth.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Configuration { public static final String VERSION = "10.1.0"; diff --git a/src/main/java/com/bandwidth/sdk/JSON.java b/src/main/java/com/bandwidth/sdk/JSON.java index 0659d01f..fce101a7 100644 --- a/src/main/java/com/bandwidth/sdk/JSON.java +++ b/src/main/java/com/bandwidth/sdk/JSON.java @@ -13,11 +13,11 @@ package com.bandwidth.sdk; -import com.fasterxml.jackson.databind.util.StdDateFormat; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonParseException; import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import com.google.gson.JsonElement; @@ -31,16 +31,14 @@ import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; +import java.text.ParsePosition; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.time.ZoneId; -import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.util.Date; import java.util.Locale; import java.util.Map; import java.util.HashMap; -import java.util.TimeZone; /* * A JSON utility class @@ -57,11 +55,6 @@ public class JSON { private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - private static final StdDateFormat sdf = new StdDateFormat() - .withTimeZone(TimeZone.getTimeZone(ZoneId.systemDefault())) - .withColonInTimeZone(true); - private static final DateTimeFormatter dtf = DateTimeFormatter.ISO_OFFSET_DATE_TIME; - @SuppressWarnings("unchecked") public static GsonBuilder createGson() { GsonFireBuilder fireBuilder = new GsonFireBuilder() @@ -409,7 +402,7 @@ public java.sql.Date read(JsonReader in) throws IOException { if (dateFormat != null) { return new java.sql.Date(dateFormat.parse(date).getTime()); } - return new java.sql.Date(sdf.parse(date).getTime()); + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); } catch (ParseException e) { throw new JsonParseException(e); } @@ -419,7 +412,7 @@ public java.sql.Date read(JsonReader in) throws IOException { /** * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, DateTimeFormatter will be used. + * If the dateFormat is null, ISO8601Utils will be used. */ public static class DateTypeAdapter extends TypeAdapter { @@ -444,7 +437,7 @@ public void write(JsonWriter out, Date date) throws IOException { if (dateFormat != null) { value = dateFormat.format(date); } else { - value = date.toInstant().atOffset(ZoneOffset.UTC).format(dtf); + value = ISO8601Utils.format(date, true); } out.value(value); } @@ -463,7 +456,7 @@ public Date read(JsonReader in) throws IOException { if (dateFormat != null) { return dateFormat.parse(date); } - return sdf.parse(date); + return ISO8601Utils.parse(date, new ParsePosition(0)); } catch (ParseException e) { throw new JsonParseException(e); } diff --git a/src/main/java/com/bandwidth/sdk/Pair.java b/src/main/java/com/bandwidth/sdk/Pair.java index bb9a088b..161813c1 100644 --- a/src/main/java/com/bandwidth/sdk/Pair.java +++ b/src/main/java/com/bandwidth/sdk/Pair.java @@ -13,7 +13,7 @@ package com.bandwidth.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/bandwidth/sdk/ServerConfiguration.java b/src/main/java/com/bandwidth/sdk/ServerConfiguration.java index b02050dc..756f34a3 100644 --- a/src/main/java/com/bandwidth/sdk/ServerConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/ServerConfiguration.java @@ -1,3 +1,16 @@ +/* + * Bandwidth + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.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.bandwidth.sdk; import java.util.Map; @@ -5,7 +18,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/com/bandwidth/sdk/ServerVariable.java b/src/main/java/com/bandwidth/sdk/ServerVariable.java index bc89b1ba..9786d338 100644 --- a/src/main/java/com/bandwidth/sdk/ServerVariable.java +++ b/src/main/java/com/bandwidth/sdk/ServerVariable.java @@ -1,3 +1,16 @@ +/* + * Bandwidth + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.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.bandwidth.sdk; import java.util.HashSet; @@ -5,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/com/bandwidth/sdk/StringUtil.java b/src/main/java/com/bandwidth/sdk/StringUtil.java index 6b85f153..6169441b 100644 --- a/src/main/java/com/bandwidth/sdk/StringUtil.java +++ b/src/main/java/com/bandwidth/sdk/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/bandwidth/sdk/api/MediaApi.java b/src/main/java/com/bandwidth/sdk/api/MediaApi.java index 33b0008a..6612638a 100644 --- a/src/main/java/com/bandwidth/sdk/api/MediaApi.java +++ b/src/main/java/com/bandwidth/sdk/api/MediaApi.java @@ -448,10 +448,6 @@ public okhttp3.Call listMediaCall(String accountId, String continuationToken, fi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (continuationToken != null) { - localVarHeaderParams.put("Continuation-Token", localVarApiClient.parameterToString(continuationToken)); - } - final String[] localVarAccepts = { "application/json" }; @@ -467,6 +463,11 @@ public okhttp3.Call listMediaCall(String accountId, String continuationToken, fi localVarHeaderParams.put("Content-Type", localVarContentType); } + if (continuationToken != null) { + localVarHeaderParams.put("Continuation-Token", localVarApiClient.parameterToString(continuationToken)); + } + + String[] localVarAuthNames = new String[] { "Basic" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @@ -615,14 +616,6 @@ public okhttp3.Call uploadMediaCall(String accountId, String mediaId, File body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (contentType != null) { - localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); - } - - if (cacheControl != null) { - localVarHeaderParams.put("Cache-Control", localVarApiClient.parameterToString(cacheControl)); - } - final String[] localVarAccepts = { "application/json" }; @@ -682,6 +675,16 @@ public okhttp3.Call uploadMediaCall(String accountId, String mediaId, File body, localVarHeaderParams.put("Content-Type", localVarContentType); } + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + + if (cacheControl != null) { + localVarHeaderParams.put("Cache-Control", localVarApiClient.parameterToString(cacheControl)); + } + + String[] localVarAuthNames = new String[] { "Basic" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } diff --git a/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java index a091f358..605123e4 100644 --- a/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java b/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java index d313b5b0..2f3bc4f8 100644 --- a/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java @@ -22,8 +22,6 @@ import java.util.Map; import java.util.List; -import java.io.UnsupportedEncodingException; - public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java index 4d95d13c..942a7a45 100644 --- a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java @@ -22,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java index 60cd0928..19e68c2b 100644 --- a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java @@ -21,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java index 70c75675..38a7a496 100644 --- a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java +++ b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * AccountStatistics */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AccountStatistics { public static final String SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE = "currentCallQueueSize"; @SerializedName(SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE) @@ -67,10 +66,10 @@ public AccountStatistics currentCallQueueSize(Integer currentCallQueueSize) { return this; } - /** + /** * The number of calls currently enqueued. * @return currentCallQueueSize - **/ + */ @javax.annotation.Nullable public Integer getCurrentCallQueueSize() { return currentCallQueueSize; @@ -86,10 +85,10 @@ public AccountStatistics maxCallQueueSize(Integer maxCallQueueSize) { return this; } - /** + /** * The maximum size of the queue before outgoing calls start being rejected. * @return maxCallQueueSize - **/ + */ @javax.annotation.Nullable public Integer getMaxCallQueueSize() { return maxCallQueueSize; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AccountStatistics - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AccountStatistics + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AccountStatistics.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -287,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AccountStatistics given an JSON string - * - * @param jsonString JSON string - * @return An instance of AccountStatistics - * @throws IOException if the JSON string is invalid with respect to AccountStatistics - */ + /** + * Create an instance of AccountStatistics given an JSON string + * + * @param jsonString JSON string + * @return An instance of AccountStatistics + * @throws IOException if the JSON string is invalid with respect to AccountStatistics + */ public static AccountStatistics fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AccountStatistics.class); } - /** - * Convert an instance of AccountStatistics to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AccountStatistics to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java index 837c8aa0..a57f18e7 100644 --- a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * The Answer event is sent to the answerUrl specified in the createCall request when an outbound call is answered. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -120,10 +119,10 @@ public AnswerCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -139,10 +138,10 @@ public AnswerCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -158,10 +157,10 @@ public AnswerCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -177,10 +176,10 @@ public AnswerCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -196,10 +195,10 @@ public AnswerCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -215,10 +214,10 @@ public AnswerCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -234,10 +233,10 @@ public AnswerCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -253,10 +252,10 @@ public AnswerCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -272,10 +271,10 @@ public AnswerCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -291,10 +290,10 @@ public AnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -310,10 +309,10 @@ public AnswerCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -329,10 +328,10 @@ public AnswerCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -348,10 +347,10 @@ public AnswerCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -367,10 +366,10 @@ public AnswerCallback machineDetectionResult(MachineDetectionResult machineDetec return this; } - /** + /** * Get machineDetectionResult * @return machineDetectionResult - **/ + */ @javax.annotation.Nullable public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; @@ -528,12 +527,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AnswerCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AnswerCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AnswerCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -647,22 +646,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AnswerCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of AnswerCallback - * @throws IOException if the JSON string is invalid with respect to AnswerCallback - */ + /** + * Create an instance of AnswerCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of AnswerCallback + * @throws IOException if the JSON string is invalid with respect to AnswerCallback + */ public static AnswerCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AnswerCallback.class); } - /** - * Convert an instance of AnswerCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AnswerCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java index 83671f6b..5fddd064 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * If the target call leaves the <Bridge>, then this callback is sent to the bridgeCompleteUrl, and the BXML returned in it is executed on the call. If this webhook is sent, the Bridge Target Complete webhook is NOT sent. This callback is also sent if any problem occurs that prevents the calls to be bridged. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BridgeCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -127,10 +126,10 @@ public BridgeCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -146,10 +145,10 @@ public BridgeCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -165,10 +164,10 @@ public BridgeCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -184,10 +183,10 @@ public BridgeCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -203,10 +202,10 @@ public BridgeCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -222,10 +221,10 @@ public BridgeCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -241,10 +240,10 @@ public BridgeCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -260,10 +259,10 @@ public BridgeCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -279,10 +278,10 @@ public BridgeCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -298,10 +297,10 @@ public BridgeCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -317,10 +316,10 @@ public BridgeCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -336,10 +335,10 @@ public BridgeCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -355,10 +354,10 @@ public BridgeCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -374,10 +373,10 @@ public BridgeCompleteCallback cause(String cause) { return this; } - /** + /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. * @return cause - **/ + */ @javax.annotation.Nullable public String getCause() { return cause; @@ -393,10 +392,10 @@ public BridgeCompleteCallback errorMessage(String errorMessage) { return this; } - /** + /** * Text explaining the reason that caused the call to fail in case of errors. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -412,10 +411,10 @@ public BridgeCompleteCallback errorId(String errorId) { return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -579,12 +578,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to BridgeCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BridgeCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BridgeCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -703,22 +702,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of BridgeCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of BridgeCompleteCallback - * @throws IOException if the JSON string is invalid with respect to BridgeCompleteCallback - */ + /** + * Create an instance of BridgeCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of BridgeCompleteCallback + * @throws IOException if the JSON string is invalid with respect to BridgeCompleteCallback + */ public static BridgeCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, BridgeCompleteCallback.class); } - /** - * Convert an instance of BridgeCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of BridgeCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java index b7159a07..a4454556 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * If the originating call leaves the <Bridge>, then this callback is sent to the bridgeTargetCompleteUrl, and the BXML returned in it is executed on the target call. If this webhook is sent, the Bridge Complete webhook is NOT sent. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BridgeTargetCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -115,10 +114,10 @@ public BridgeTargetCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -134,10 +133,10 @@ public BridgeTargetCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -153,10 +152,10 @@ public BridgeTargetCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -172,10 +171,10 @@ public BridgeTargetCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -191,10 +190,10 @@ public BridgeTargetCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -210,10 +209,10 @@ public BridgeTargetCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -229,10 +228,10 @@ public BridgeTargetCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -248,10 +247,10 @@ public BridgeTargetCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -267,10 +266,10 @@ public BridgeTargetCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -286,10 +285,10 @@ public BridgeTargetCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -305,10 +304,10 @@ public BridgeTargetCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -324,10 +323,10 @@ public BridgeTargetCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -343,10 +342,10 @@ public BridgeTargetCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -501,12 +500,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to BridgeTargetCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BridgeTargetCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BridgeTargetCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -616,22 +615,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of BridgeTargetCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of BridgeTargetCompleteCallback - * @throws IOException if the JSON string is invalid with respect to BridgeTargetCompleteCallback - */ + /** + * Create an instance of BridgeTargetCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of BridgeTargetCompleteCallback + * @throws IOException if the JSON string is invalid with respect to BridgeTargetCompleteCallback + */ public static BridgeTargetCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, BridgeTargetCompleteCallback.class); } - /** - * Convert an instance of BridgeTargetCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of BridgeTargetCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java index 3ebe6945..1d540844 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,7 +54,7 @@ /** * CallRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallRecordingMetadata { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -141,10 +140,10 @@ public CallRecordingMetadata applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -160,10 +159,10 @@ public CallRecordingMetadata accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -179,10 +178,10 @@ public CallRecordingMetadata callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -198,10 +197,10 @@ public CallRecordingMetadata parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -217,10 +216,10 @@ public CallRecordingMetadata recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -236,10 +235,10 @@ public CallRecordingMetadata to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -255,10 +254,10 @@ public CallRecordingMetadata from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -274,10 +273,10 @@ public CallRecordingMetadata transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -293,10 +292,10 @@ public CallRecordingMetadata transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -312,10 +311,10 @@ public CallRecordingMetadata duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -331,10 +330,10 @@ public CallRecordingMetadata direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -350,10 +349,10 @@ public CallRecordingMetadata channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -369,10 +368,10 @@ public CallRecordingMetadata startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -388,10 +387,10 @@ public CallRecordingMetadata endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -407,10 +406,10 @@ public CallRecordingMetadata fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -426,10 +425,10 @@ public CallRecordingMetadata status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -445,10 +444,10 @@ public CallRecordingMetadata mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -464,10 +463,10 @@ public CallRecordingMetadata transcription(RecordingTranscriptionMetadata transc return this; } - /** + /** * Get transcription * @return transcription - **/ + */ @javax.annotation.Nullable public RecordingTranscriptionMetadata getTranscription() { return transcription; @@ -483,10 +482,10 @@ public CallRecordingMetadata recordingName(String recordingName) { return this; } - /** + /** * A name to identify this recording. * @return recordingName - **/ + */ @javax.annotation.Nullable public String getRecordingName() { return recordingName; @@ -659,12 +658,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallRecordingMetadata - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallRecordingMetadata + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallRecordingMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -797,22 +796,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallRecordingMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallRecordingMetadata - * @throws IOException if the JSON string is invalid with respect to CallRecordingMetadata - */ + /** + * Create an instance of CallRecordingMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallRecordingMetadata + * @throws IOException if the JSON string is invalid with respect to CallRecordingMetadata + */ public static CallRecordingMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallRecordingMetadata.class); } - /** - * Convert an instance of CallRecordingMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallRecordingMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallState.java b/src/main/java/com/bandwidth/sdk/model/CallState.java index d0f13890..8926cda1 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallState.java +++ b/src/main/java/com/bandwidth/sdk/model/CallState.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * CallState */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallState { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -136,10 +135,10 @@ public CallState applicationId(String applicationId) { return this; } - /** + /** * The application id associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -155,10 +154,10 @@ public CallState accountId(String accountId) { return this; } - /** + /** * The account id associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -174,10 +173,10 @@ public CallState callId(String callId) { return this; } - /** + /** * The programmable voice API call ID. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -193,10 +192,10 @@ public CallState parentCallId(String parentCallId) { return this; } - /** + /** * The A-leg call id, set only if this call is the B-leg of a [`<Transfer>`](/docs/voice/bxml/transfer). * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -212,10 +211,10 @@ public CallState to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555), or if the call was to a SIP URI, the SIP URI. * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -231,10 +230,10 @@ public CallState from(String from) { return this; } - /** + /** * The phone number that made the call, in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -250,10 +249,10 @@ public CallState direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -269,10 +268,10 @@ public CallState state(String state) { return this; } - /** + /** * The current state of the call. Current possible values are `queued`, `initiated`, `answered` and `disconnected`. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return state - **/ + */ @javax.annotation.Nullable public String getState() { return state; @@ -296,10 +295,10 @@ public CallState putStirShakenItem(String key, String stirShakenItem) { return this; } - /** + /** * For inbound calls, the Bandwidth STIR/SHAKEN implementation will verify the information provided in the inbound invite request `Identity` header. The verification status is stored in the call state `stirShaken` property as follows. | Property | Description | |:------------------|:------------| | verstat | (optional) The verification status indicating whether the verification was successful or not. Possible values are `TN-Verification-Passed` or `TN-Verification-Failed`. | | attestationIndicator | (optional) The attestation level verified by Bandwidth. Possible values are `A` (full), `B` (partial) or `C` (gateway). | | originatingId | (optional) A unique origination identifier. | Note that these are common properties but that the `stirShaken` object is free form and can contain other key-value pairs. More information: [Understanding STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken). * @return stirShaken - **/ + */ @javax.annotation.Nullable public Map getStirShaken() { return stirShaken; @@ -315,10 +314,10 @@ public CallState identity(String identity) { return this; } - /** + /** * The value of the `Identity` header from the inbound invite request. Only present for inbound calls and if the account is configured to forward this header. * @return identity - **/ + */ @javax.annotation.Nullable public String getIdentity() { return identity; @@ -334,10 +333,10 @@ public CallState enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * The time this call was placed in queue. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -353,10 +352,10 @@ public CallState startTime(OffsetDateTime startTime) { return this; } - /** + /** * The time the call was initiated, in ISO 8601 format. `null` if the call is still in your queue. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -372,10 +371,10 @@ public CallState answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Populated once the call has been answered, with the time in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -391,10 +390,10 @@ public CallState endTime(OffsetDateTime endTime) { return this; } - /** + /** * Populated once the call has ended, with the time in ISO 8601 format. * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -410,10 +409,10 @@ public CallState disconnectCause(String disconnectCause) { return this; } - /** + /** * | Cause | Description | |:------|:------------| | `hangup`| One party hung up the call, a [`<Hangup>`](../../bxml/verbs/hangup.md) verb was executed, or there was no more BXML to execute; it indicates that the call ended normally. | | `busy` | Callee was busy. | | `timeout` | Call wasn't answered before the `callTimeout` was reached. | | `cancel` | Call was cancelled by its originator while it was ringing. | | `rejected` | Call was rejected by the callee. | | `callback-error` | BXML callback couldn't be delivered to your callback server. | | `invalid-bxml` | Invalid BXML was returned in response to a callback. | | `application-error` | An unsupported action was tried on the call, e.g. trying to play a .ogg audio. | | `account-limit` | Account rate limits were reached. | | `node-capacity-exceeded` | System maximum capacity was reached. | | `error` | Some error not described in any of the other causes happened on the call. | | `unknown` | Unknown error happened on the call. | Note: This list is not exhaustive and other values can appear in the future. * @return disconnectCause - **/ + */ @javax.annotation.Nullable public String getDisconnectCause() { return disconnectCause; @@ -429,10 +428,10 @@ public CallState errorMessage(String errorMessage) { return this; } - /** + /** * Populated only if the call ended with an error, with text explaining the reason. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -448,10 +447,10 @@ public CallState errorId(String errorId) { return this; } - /** + /** * Populated only if the call ended with an error, with a Bandwidth internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -467,10 +466,10 @@ public CallState lastUpdate(OffsetDateTime lastUpdate) { return this; } - /** + /** * The last time the call had a state update, in ISO 8601 format. * @return lastUpdate - **/ + */ @javax.annotation.Nullable public OffsetDateTime getLastUpdate() { return lastUpdate; @@ -640,12 +639,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallState - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallState + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallState.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -764,22 +763,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallState given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallState - * @throws IOException if the JSON string is invalid with respect to CallState - */ + /** + * Create an instance of CallState given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallState + * @throws IOException if the JSON string is invalid with respect to CallState + */ public static CallState fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallState.class); } - /** - * Convert an instance of CallState to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallState to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java index 6508819f..23f372f0 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * CallTranscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallTranscription { public static final String SERIALIZED_NAME_DETECTED_LANGUAGE = "detectedLanguage"; @SerializedName(SERIALIZED_NAME_DETECTED_LANGUAGE) @@ -77,10 +76,10 @@ public CallTranscription detectedLanguage(CallTranscriptionDetectedLanguageEnum return this; } - /** + /** * Get detectedLanguage * @return detectedLanguage - **/ + */ @javax.annotation.Nullable public CallTranscriptionDetectedLanguageEnum getDetectedLanguage() { return detectedLanguage; @@ -96,10 +95,10 @@ public CallTranscription track(CallTranscriptionTrackEnum track) { return this; } - /** + /** * Get track * @return track - **/ + */ @javax.annotation.Nullable public CallTranscriptionTrackEnum getTrack() { return track; @@ -115,10 +114,10 @@ public CallTranscription transcript(String transcript) { return this; } - /** + /** * The transcription itself. * @return transcript - **/ + */ @javax.annotation.Nullable public String getTranscript() { return transcript; @@ -134,12 +133,12 @@ public CallTranscription confidence(Double confidence) { return this; } - /** + /** * How confident the transcription engine was in transcribing the associated audio (from `0` to `1`). * minimum: 0 * maximum: 1 * @return confidence - **/ + */ @javax.annotation.Nullable public Double getConfidence() { return confidence; @@ -256,12 +255,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallTranscription - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallTranscription + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallTranscription.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -354,22 +353,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallTranscription given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallTranscription - * @throws IOException if the JSON string is invalid with respect to CallTranscription - */ + /** + * Create an instance of CallTranscription given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallTranscription + * @throws IOException if the JSON string is invalid with respect to CallTranscription + */ public static CallTranscription fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallTranscription.class); } - /** - * Convert an instance of CallTranscription to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallTranscription to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java index fa0ccf13..682601b6 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * CallTranscriptionMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallTranscriptionMetadata { public static final String SERIALIZED_NAME_TRANSCRIPTION_ID = "transcriptionId"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_ID) @@ -71,10 +70,10 @@ public CallTranscriptionMetadata transcriptionId(String transcriptionId) { return this; } - /** + /** * The programmable voice API transcription ID. * @return transcriptionId - **/ + */ @javax.annotation.Nullable public String getTranscriptionId() { return transcriptionId; @@ -90,10 +89,10 @@ public CallTranscriptionMetadata transcriptionName(String transcriptionName) { return this; } - /** + /** * The programmable voice API transcription name. This name could be provided by the user when creating the transcription. * @return transcriptionName - **/ + */ @javax.annotation.Nullable public String getTranscriptionName() { return transcriptionName; @@ -109,10 +108,10 @@ public CallTranscriptionMetadata transcriptionUrl(String transcriptionUrl) { return this; } - /** + /** * A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. * @return transcriptionUrl - **/ + */ @javax.annotation.Nullable public String getTranscriptionUrl() { return transcriptionUrl; @@ -226,12 +225,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallTranscriptionMetadata - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallTranscriptionMetadata + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallTranscriptionMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -322,22 +321,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallTranscriptionMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallTranscriptionMetadata - * @throws IOException if the JSON string is invalid with respect to CallTranscriptionMetadata - */ + /** + * Create an instance of CallTranscriptionMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallTranscriptionMetadata + * @throws IOException if the JSON string is invalid with respect to CallTranscriptionMetadata + */ public static CallTranscriptionMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallTranscriptionMetadata.class); } - /** - * Convert an instance of CallTranscriptionMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallTranscriptionMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java index 1814433e..9e2e6e8d 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * CallTranscriptionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallTranscriptionResponse { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -78,10 +77,10 @@ public CallTranscriptionResponse accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -97,10 +96,10 @@ public CallTranscriptionResponse callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -116,10 +115,10 @@ public CallTranscriptionResponse transcriptionId(String transcriptionId) { return this; } - /** + /** * The programmable voice API transcription ID. * @return transcriptionId - **/ + */ @javax.annotation.Nullable public String getTranscriptionId() { return transcriptionId; @@ -143,10 +142,10 @@ public CallTranscriptionResponse addTracksItem(CallTranscription tracksItem) { return this; } - /** + /** * Get tracks * @return tracks - **/ + */ @javax.annotation.Nullable public List getTracks() { return tracks; @@ -263,12 +262,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallTranscriptionResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallTranscriptionResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallTranscriptionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -373,22 +372,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallTranscriptionResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallTranscriptionResponse - * @throws IOException if the JSON string is invalid with respect to CallTranscriptionResponse - */ + /** + * Create an instance of CallTranscriptionResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallTranscriptionResponse + * @throws IOException if the JSON string is invalid with respect to CallTranscriptionResponse + */ public static CallTranscriptionResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallTranscriptionResponse.class); } - /** - * Convert an instance of CallTranscriptionResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallTranscriptionResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java index 59a827f8..f3c2141f 100644 --- a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * CodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -83,10 +82,10 @@ public CodeRequest to(String to) { return this; } - /** + /** * The phone number to send the mfa code to. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -102,10 +101,10 @@ public CodeRequest from(String from) { return this; } - /** + /** * The application phone number, the sender of the mfa code. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -121,10 +120,10 @@ public CodeRequest applicationId(String applicationId) { return this; } - /** + /** * The application unique ID, obtained from Bandwidth. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -140,10 +139,10 @@ public CodeRequest scope(String scope) { return this; } - /** + /** * An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to \"2FA\". * @return scope - **/ + */ @javax.annotation.Nullable public String getScope() { return scope; @@ -159,10 +158,10 @@ public CodeRequest message(String message) { return this; } - /** + /** * The message format of the mfa code. There are three values that the system will replace \"{CODE}\", \"{NAME}\", \"{SCOPE}\". The \"{SCOPE}\" and \"{NAME} value template are optional, while \"{CODE}\" must be supplied. As the name would suggest, code will be replace with the actual mfa code. Name is replaced with the application name, configured during provisioning of mfa. The scope value is the same value sent during the call and partitioned by the server. * @return message - **/ + */ @javax.annotation.Nonnull public String getMessage() { return message; @@ -178,12 +177,12 @@ public CodeRequest digits(Integer digits) { return this; } - /** + /** * The number of digits for your mfa code. The valid number ranges from 2 to 8, inclusively. * minimum: 4 * maximum: 8 * @return digits - **/ + */ @javax.annotation.Nonnull public Integer getDigits() { return digits; @@ -311,12 +310,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("digits"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CodeRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CodeRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CodeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -420,22 +419,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CodeRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of CodeRequest - * @throws IOException if the JSON string is invalid with respect to CodeRequest - */ + /** + * Create an instance of CodeRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of CodeRequest + * @throws IOException if the JSON string is invalid with respect to CodeRequest + */ public static CodeRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CodeRequest.class); } - /** - * Convert an instance of CodeRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CodeRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Conference.java b/src/main/java/com/bandwidth/sdk/model/Conference.java index 509a0b15..26a4bcc3 100644 --- a/src/main/java/com/bandwidth/sdk/model/Conference.java +++ b/src/main/java/com/bandwidth/sdk/model/Conference.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,7 +55,7 @@ /** * Conference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Conference { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -98,10 +97,10 @@ public Conference id(String id) { return this; } - /** + /** * The Bandwidth-generated conference ID. * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; @@ -117,10 +116,10 @@ public Conference name(String name) { return this; } - /** + /** * The name of the conference, as specified by your application. * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -136,10 +135,10 @@ public Conference createdTime(OffsetDateTime createdTime) { return this; } - /** + /** * The time the conference was initiated, in ISO 8601 format. * @return createdTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCreatedTime() { return createdTime; @@ -155,10 +154,10 @@ public Conference completedTime(OffsetDateTime completedTime) { return this; } - /** + /** * The time the conference was terminated, in ISO 8601 format. * @return completedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCompletedTime() { return completedTime; @@ -174,10 +173,10 @@ public Conference conferenceEventUrl(URI conferenceEventUrl) { return this; } - /** + /** * The URL to send the conference-related events. * @return conferenceEventUrl - **/ + */ @javax.annotation.Nullable public URI getConferenceEventUrl() { return conferenceEventUrl; @@ -193,10 +192,10 @@ public Conference conferenceEventMethod(CallbackMethodEnum conferenceEventMethod return this; } - /** + /** * Get conferenceEventMethod * @return conferenceEventMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getConferenceEventMethod() { return conferenceEventMethod; @@ -212,10 +211,10 @@ public Conference tag(String tag) { return this; } - /** + /** * The custom string attached to the conference that will be sent with callbacks. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -239,10 +238,10 @@ public Conference addActiveMembersItem(ConferenceMember activeMembersItem) { return this; } - /** + /** * A list of active members of the conference. Omitted if this is a response to the [Get Conferences endpoint](/apis/voice#tag/Conferences/operation/listConferences). * @return activeMembers - **/ + */ @javax.annotation.Nullable public List getActiveMembers() { return activeMembers; @@ -382,12 +381,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Conference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Conference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Conference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -499,22 +498,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Conference given an JSON string - * - * @param jsonString JSON string - * @return An instance of Conference - * @throws IOException if the JSON string is invalid with respect to Conference - */ + /** + * Create an instance of Conference given an JSON string + * + * @param jsonString JSON string + * @return An instance of Conference + * @throws IOException if the JSON string is invalid with respect to Conference + */ public static Conference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Conference.class); } - /** - * Convert an instance of Conference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Conference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java index 257c8bad..83f2d420 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Completed event is fired when the last member leaves the conference. The response to this event may not contain BXML. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceCompletedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -81,10 +80,10 @@ public ConferenceCompletedCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -100,10 +99,10 @@ public ConferenceCompletedCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -119,10 +118,10 @@ public ConferenceCompletedCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -138,10 +137,10 @@ public ConferenceCompletedCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -157,10 +156,10 @@ public ConferenceCompletedCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -291,12 +290,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceCompletedCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceCompletedCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceCompletedCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceCompletedCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceCompletedCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceCompletedCallback - */ + /** + * Create an instance of ConferenceCompletedCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceCompletedCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceCompletedCallback + */ public static ConferenceCompletedCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceCompletedCallback.class); } - /** - * Convert an instance of ConferenceCompletedCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceCompletedCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java index d0cb449d..59f0ca41 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Created event is fired whenever a new conference that specified a callbackUrl is created. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceCreatedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -81,10 +80,10 @@ public ConferenceCreatedCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -100,10 +99,10 @@ public ConferenceCreatedCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -119,10 +118,10 @@ public ConferenceCreatedCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -138,10 +137,10 @@ public ConferenceCreatedCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -157,10 +156,10 @@ public ConferenceCreatedCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -291,12 +290,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceCreatedCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceCreatedCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceCreatedCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceCreatedCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceCreatedCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceCreatedCallback - */ + /** + * Create an instance of ConferenceCreatedCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceCreatedCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceCreatedCallback + */ public static ConferenceCreatedCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceCreatedCallback.class); } - /** - * Convert an instance of ConferenceCreatedCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceCreatedCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java index 9d1902e5..80cbf433 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * ConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceMember { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -87,10 +86,10 @@ public ConferenceMember callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -106,10 +105,10 @@ public ConferenceMember conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -125,10 +124,10 @@ public ConferenceMember memberUrl(URI memberUrl) { return this; } - /** + /** * A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member's [Get Conference Member](/apis/voice/#operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice/#operation/updateConferenceMember) endpoint. * @return memberUrl - **/ + */ @javax.annotation.Nullable public URI getMemberUrl() { return memberUrl; @@ -144,10 +143,10 @@ public ConferenceMember mute(Boolean mute) { return this; } - /** + /** * Whether or not this member is currently muted. Members who are muted are still able to hear other participants. If used in a PUT request, updates this member's mute status. Has no effect if omitted. * @return mute - **/ + */ @javax.annotation.Nullable public Boolean getMute() { return mute; @@ -163,10 +162,10 @@ public ConferenceMember hold(Boolean hold) { return this; } - /** + /** * Whether or not this member is currently on hold. Members who are on hold are not able to hear or speak in the conference. If used in a PUT request, updates this member's hold status. Has no effect if omitted. * @return hold - **/ + */ @javax.annotation.Nullable public Boolean getHold() { return hold; @@ -190,10 +189,10 @@ public ConferenceMember addCallIdsToCoachItem(String callIdsToCoachItem) { return this; } - /** + /** * If this member had a value set for `callIdsToCoach` in its [Conference](/docs/voice/bxml/conference) verb or this list was added with a previous PUT request to modify the member, this is that list of calls. If present in a PUT request, modifies the calls that this member is coaching. Has no effect if omitted. See the documentation for the [Conference](/docs/voice/bxml/conference) verb for more details about coaching. Note that this will not add the matching calls to the conference; each call must individually execute a Conference verb to join. * @return callIdsToCoach - **/ + */ @javax.annotation.Nullable public List getCallIdsToCoach() { return callIdsToCoach; @@ -327,12 +326,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceMember - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceMember + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceMember.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -427,22 +426,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceMember given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceMember - * @throws IOException if the JSON string is invalid with respect to ConferenceMember - */ + /** + * Create an instance of ConferenceMember given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceMember + * @throws IOException if the JSON string is invalid with respect to ConferenceMember + */ public static ConferenceMember fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceMember.class); } - /** - * Convert an instance of ConferenceMember to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceMember to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java index ce9ca9f6..6532e391 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Member Exit event is fired whenever a caller exits a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceMemberExitCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -93,10 +92,10 @@ public ConferenceMemberExitCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -112,10 +111,10 @@ public ConferenceMemberExitCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -131,10 +130,10 @@ public ConferenceMemberExitCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -150,10 +149,10 @@ public ConferenceMemberExitCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -169,10 +168,10 @@ public ConferenceMemberExitCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -188,10 +187,10 @@ public ConferenceMemberExitCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -207,10 +206,10 @@ public ConferenceMemberExitCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -226,10 +225,10 @@ public ConferenceMemberExitCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -369,12 +368,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceMemberExitCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceMemberExitCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceMemberExitCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -477,22 +476,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceMemberExitCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceMemberExitCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceMemberExitCallback - */ + /** + * Create an instance of ConferenceMemberExitCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceMemberExitCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceMemberExitCallback + */ public static ConferenceMemberExitCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceMemberExitCallback.class); } - /** - * Convert an instance of ConferenceMemberExitCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceMemberExitCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java index 0aeecc46..8c8e6877 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Member Join event is fired whenever a caller joins a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceMemberJoinCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -93,10 +92,10 @@ public ConferenceMemberJoinCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -112,10 +111,10 @@ public ConferenceMemberJoinCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -131,10 +130,10 @@ public ConferenceMemberJoinCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -150,10 +149,10 @@ public ConferenceMemberJoinCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -169,10 +168,10 @@ public ConferenceMemberJoinCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -188,10 +187,10 @@ public ConferenceMemberJoinCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -207,10 +206,10 @@ public ConferenceMemberJoinCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -226,10 +225,10 @@ public ConferenceMemberJoinCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -369,12 +368,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceMemberJoinCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceMemberJoinCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceMemberJoinCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -477,22 +476,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceMemberJoinCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceMemberJoinCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceMemberJoinCallback - */ + /** + * Create an instance of ConferenceMemberJoinCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceMemberJoinCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceMemberJoinCallback + */ public static ConferenceMemberJoinCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceMemberJoinCallback.class); } - /** - * Convert an instance of ConferenceMemberJoinCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceMemberJoinCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java index 2663f047..97754c60 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The Conference Recording Available event is sent after a conference recording has been processed. It indicates that the recording is available for download. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceRecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -119,10 +118,10 @@ public ConferenceRecordingAvailableCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -138,10 +137,10 @@ public ConferenceRecordingAvailableCallback eventTime(OffsetDateTime eventTime) return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -157,10 +156,10 @@ public ConferenceRecordingAvailableCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -176,10 +175,10 @@ public ConferenceRecordingAvailableCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -195,10 +194,10 @@ public ConferenceRecordingAvailableCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -214,10 +213,10 @@ public ConferenceRecordingAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -233,10 +232,10 @@ public ConferenceRecordingAvailableCallback channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -252,10 +251,10 @@ public ConferenceRecordingAvailableCallback startTime(OffsetDateTime startTime) return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -271,10 +270,10 @@ public ConferenceRecordingAvailableCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -290,10 +289,10 @@ public ConferenceRecordingAvailableCallback duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -309,10 +308,10 @@ public ConferenceRecordingAvailableCallback fileFormat(FileFormatEnum fileFormat return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -328,10 +327,10 @@ public ConferenceRecordingAvailableCallback mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -347,10 +346,10 @@ public ConferenceRecordingAvailableCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -366,10 +365,10 @@ public ConferenceRecordingAvailableCallback status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -527,12 +526,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceRecordingAvailableCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceRecordingAvailableCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceRecordingAvailableCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -645,22 +644,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceRecordingAvailableCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceRecordingAvailableCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceRecordingAvailableCallback - */ + /** + * Create an instance of ConferenceRecordingAvailableCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceRecordingAvailableCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceRecordingAvailableCallback + */ public static ConferenceRecordingAvailableCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceRecordingAvailableCallback.class); } - /** - * Convert an instance of ConferenceRecordingAvailableCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceRecordingAvailableCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java index 1dcb0d10..0f9c8f21 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * ConferenceRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceRecordingMetadata { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -111,10 +110,10 @@ public ConferenceRecordingMetadata accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -130,10 +129,10 @@ public ConferenceRecordingMetadata conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -149,10 +148,10 @@ public ConferenceRecordingMetadata name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -168,10 +167,10 @@ public ConferenceRecordingMetadata recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -187,10 +186,10 @@ public ConferenceRecordingMetadata duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -206,10 +205,10 @@ public ConferenceRecordingMetadata channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -225,10 +224,10 @@ public ConferenceRecordingMetadata startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -244,10 +243,10 @@ public ConferenceRecordingMetadata endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -263,10 +262,10 @@ public ConferenceRecordingMetadata fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -282,10 +281,10 @@ public ConferenceRecordingMetadata status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -301,10 +300,10 @@ public ConferenceRecordingMetadata mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -320,10 +319,10 @@ public ConferenceRecordingMetadata recordingName(String recordingName) { return this; } - /** + /** * A name to identify this recording. * @return recordingName - **/ + */ @javax.annotation.Nullable public String getRecordingName() { return recordingName; @@ -475,12 +474,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceRecordingMetadata - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceRecordingMetadata + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceRecordingMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -590,22 +589,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceRecordingMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceRecordingMetadata - * @throws IOException if the JSON string is invalid with respect to ConferenceRecordingMetadata - */ + /** + * Create an instance of ConferenceRecordingMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceRecordingMetadata + * @throws IOException if the JSON string is invalid with respect to ConferenceRecordingMetadata + */ public static ConferenceRecordingMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceRecordingMetadata.class); } - /** - * Convert an instance of ConferenceRecordingMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceRecordingMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java index 0857f61d..d34b6d1a 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Redirect event is fired whenever an existing conference is modified via a POST request made to the /conferences/{conferenceId} endpoint. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceRedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -81,10 +80,10 @@ public ConferenceRedirectCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -100,10 +99,10 @@ public ConferenceRedirectCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -119,10 +118,10 @@ public ConferenceRedirectCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -138,10 +137,10 @@ public ConferenceRedirectCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -157,10 +156,10 @@ public ConferenceRedirectCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -291,12 +290,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceRedirectCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceRedirectCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceRedirectCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceRedirectCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceRedirectCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceRedirectCallback - */ + /** + * Create an instance of ConferenceRedirectCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceRedirectCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceRedirectCallback + */ public static ConferenceRedirectCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceRedirectCallback.class); } - /** - * Convert an instance of ConferenceRedirectCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceRedirectCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCall.java b/src/main/java/com/bandwidth/sdk/model/CreateCall.java index b232eccb..691d8f46 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCall.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * CreateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCall { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -147,10 +146,10 @@ public CreateCall to(String to) { return this; } - /** + /** * The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -166,10 +165,10 @@ public CreateCall from(String from) { return this; } - /** + /** * A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -185,10 +184,10 @@ public CreateCall privacy(Boolean privacy) { return this; } - /** + /** * Hide the calling number. The `displayName` field can be used to customize the displayed name. * @return privacy - **/ + */ @javax.annotation.Nullable public Boolean getPrivacy() { return privacy; @@ -204,10 +203,10 @@ public CreateCall displayName(String displayName) { return this; } - /** + /** * The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. * @return displayName - **/ + */ @javax.annotation.Nullable public String getDisplayName() { return displayName; @@ -223,10 +222,10 @@ public CreateCall uui(String uui) { return this; } - /** + /** * A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt' and 'base64' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators. * @return uui - **/ + */ @javax.annotation.Nullable public String getUui() { return uui; @@ -242,10 +241,10 @@ public CreateCall applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the `from` number. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -261,10 +260,10 @@ public CreateCall answerUrl(URI answerUrl) { return this; } - /** + /** * The full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers. This endpoint should return the first <a href='/docs/voice/bxml'>BXML document</a> to be executed in the call. Must use `https` if specifying `username` and `password`. * @return answerUrl - **/ + */ @javax.annotation.Nonnull public URI getAnswerUrl() { return answerUrl; @@ -280,10 +279,10 @@ public CreateCall answerMethod(CallbackMethodEnum answerMethod) { return this; } - /** + /** * Get answerMethod * @return answerMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerMethod() { return answerMethod; @@ -299,10 +298,10 @@ public CreateCall username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -318,10 +317,10 @@ public CreateCall password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -337,10 +336,10 @@ public CreateCall answerFallbackUrl(URI answerFallbackUrl) { return this; } - /** + /** * A fallback url which, if provided, will be used to retry the `answer` webhook delivery in case `answerUrl` fails to respond Must use `https` if specifying `fallbackUsername` and `fallbackPassword`. * @return answerFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getAnswerFallbackUrl() { return answerFallbackUrl; @@ -356,10 +355,10 @@ public CreateCall answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) return this; } - /** + /** * Get answerFallbackMethod * @return answerFallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; @@ -375,10 +374,10 @@ public CreateCall fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -394,10 +393,10 @@ public CreateCall fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -413,10 +412,10 @@ public CreateCall disconnectUrl(URI disconnectUrl) { return this; } - /** + /** * The URL to send the <a href='/docs/voice/webhooks/disconnect'>Disconnect</a> event to when the call ends. This event does not expect a BXML response. * @return disconnectUrl - **/ + */ @javax.annotation.Nullable public URI getDisconnectUrl() { return disconnectUrl; @@ -432,10 +431,10 @@ public CreateCall disconnectMethod(CallbackMethodEnum disconnectMethod) { return this; } - /** + /** * Get disconnectMethod * @return disconnectMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; @@ -451,12 +450,12 @@ public CreateCall callTimeout(Double callTimeout) { return this; } - /** + /** * The timeout (in seconds) for the callee to answer the call after it starts ringing. If the call does not start ringing within 30s, the call will be cancelled regardless of this value. Can be any numeric value (including decimals) between 1 and 300. * minimum: 1 * maximum: 300 * @return callTimeout - **/ + */ @javax.annotation.Nullable public Double getCallTimeout() { return callTimeout; @@ -472,12 +471,12 @@ public CreateCall callbackTimeout(Double callbackTimeout) { return this; } - /** + /** * This is the timeout (in seconds) to use when delivering webhooks for the call. Can be any numeric value (including decimals) between 1 and 25. * minimum: 1 * maximum: 25 * @return callbackTimeout - **/ + */ @javax.annotation.Nullable public Double getCallbackTimeout() { return callbackTimeout; @@ -493,10 +492,10 @@ public CreateCall machineDetection(MachineDetectionConfiguration machineDetectio return this; } - /** + /** * Get machineDetection * @return machineDetection - **/ + */ @javax.annotation.Nullable public MachineDetectionConfiguration getMachineDetection() { return machineDetection; @@ -512,12 +511,12 @@ public CreateCall priority(Integer priority) { return this; } - /** + /** * The priority of this call over other calls from your account. For example, if during a call your application needs to place a new call and bridge it with the current call, you might want to create the call with priority 1 so that it will be the next call picked off your queue, ahead of other less time sensitive calls. A lower value means higher priority, so a priority 1 call takes precedence over a priority 2 call. * minimum: 1 * maximum: 5 * @return priority - **/ + */ @javax.annotation.Nullable public Integer getPriority() { return priority; @@ -533,10 +532,10 @@ public CreateCall tag(String tag) { return this; } - /** + /** * A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 256 characters. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -719,12 +718,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("answerUrl"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateCall - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateCall + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CreateCall.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -868,22 +867,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CreateCall given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateCall - * @throws IOException if the JSON string is invalid with respect to CreateCall - */ + /** + * Create an instance of CreateCall given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateCall + * @throws IOException if the JSON string is invalid with respect to CreateCall + */ public static CreateCall fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CreateCall.class); } - /** - * Convert an instance of CreateCall to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CreateCall to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java index 78bf72b6..880bf270 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * CreateCallResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCallResponse { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -147,10 +146,10 @@ public CreateCallResponse applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the `from` number. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -166,10 +165,10 @@ public CreateCallResponse accountId(String accountId) { return this; } - /** + /** * The bandwidth account ID associated with the call. * @return accountId - **/ + */ @javax.annotation.Nonnull public String getAccountId() { return accountId; @@ -185,10 +184,10 @@ public CreateCallResponse callId(String callId) { return this; } - /** + /** * Programmable Voice API Call ID. * @return callId - **/ + */ @javax.annotation.Nonnull public String getCallId() { return callId; @@ -204,10 +203,10 @@ public CreateCallResponse to(String to) { return this; } - /** + /** * Recipient of the outgoing call. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -223,10 +222,10 @@ public CreateCallResponse from(String from) { return this; } - /** + /** * Phone number that created the outbound call. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -242,10 +241,10 @@ public CreateCallResponse enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * The time at which the call was accepted into the queue. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -261,10 +260,10 @@ public CreateCallResponse callUrl(URI callUrl) { return this; } - /** + /** * The URL to update this call's state. * @return callUrl - **/ + */ @javax.annotation.Nonnull public URI getCallUrl() { return callUrl; @@ -280,10 +279,10 @@ public CreateCallResponse callTimeout(Double callTimeout) { return this; } - /** + /** * The timeout (in seconds) for the callee to answer the call after it starts ringing. * @return callTimeout - **/ + */ @javax.annotation.Nullable public Double getCallTimeout() { return callTimeout; @@ -299,10 +298,10 @@ public CreateCallResponse callbackTimeout(Double callbackTimeout) { return this; } - /** + /** * This is the timeout (in seconds) to use when delivering webhooks for the call. * @return callbackTimeout - **/ + */ @javax.annotation.Nullable public Double getCallbackTimeout() { return callbackTimeout; @@ -318,10 +317,10 @@ public CreateCallResponse tag(String tag) { return this; } - /** + /** * Custom tag value. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -337,10 +336,10 @@ public CreateCallResponse answerMethod(CallbackMethodEnum answerMethod) { return this; } - /** + /** * Get answerMethod * @return answerMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerMethod() { return answerMethod; @@ -356,10 +355,10 @@ public CreateCallResponse answerUrl(URI answerUrl) { return this; } - /** + /** * URL to deliver the `answer` event webhook. * @return answerUrl - **/ + */ @javax.annotation.Nonnull public URI getAnswerUrl() { return answerUrl; @@ -375,10 +374,10 @@ public CreateCallResponse answerFallbackMethod(CallbackMethodEnum answerFallback return this; } - /** + /** * Get answerFallbackMethod * @return answerFallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; @@ -394,10 +393,10 @@ public CreateCallResponse answerFallbackUrl(URI answerFallbackUrl) { return this; } - /** + /** * Fallback URL to deliver the `answer` event webhook. * @return answerFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getAnswerFallbackUrl() { return answerFallbackUrl; @@ -413,10 +412,10 @@ public CreateCallResponse disconnectMethod(CallbackMethodEnum disconnectMethod) return this; } - /** + /** * Get disconnectMethod * @return disconnectMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; @@ -432,10 +431,10 @@ public CreateCallResponse disconnectUrl(URI disconnectUrl) { return this; } - /** + /** * URL to deliver the `disconnect` event webhook. * @return disconnectUrl - **/ + */ @javax.annotation.Nullable public URI getDisconnectUrl() { return disconnectUrl; @@ -451,10 +450,10 @@ public CreateCallResponse username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -470,10 +469,10 @@ public CreateCallResponse password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -489,10 +488,10 @@ public CreateCallResponse fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -508,10 +507,10 @@ public CreateCallResponse fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -527,10 +526,10 @@ public CreateCallResponse priority(Integer priority) { return this; } - /** + /** * The priority of this call over other calls from your account. * @return priority - **/ + */ @javax.annotation.Nullable public Integer getPriority() { return priority; @@ -718,12 +717,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("disconnectMethod"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateCallResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateCallResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CreateCallResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -862,22 +861,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CreateCallResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateCallResponse - * @throws IOException if the JSON string is invalid with respect to CreateCallResponse - */ + /** + * Create an instance of CreateCallResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateCallResponse + * @throws IOException if the JSON string is invalid with respect to CreateCallResponse + */ public static CreateCallResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CreateCallResponse.class); } - /** - * Convert an instance of CreateCallResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CreateCallResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java index 35a1012c..a5839c6a 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +49,7 @@ /** * The request has been accepted for processing but not yet finished and in a terminal state (COMPLETE, PARTIAL_COMPLETE, or FAILED). */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateLookupResponse { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -68,10 +67,10 @@ public CreateLookupResponse requestId(String requestId) { return this; } - /** + /** * The phone number lookup request ID from Bandwidth. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; @@ -87,10 +86,10 @@ public CreateLookupResponse status(LookupStatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public LookupStatusEnum getStatus() { return status; @@ -201,12 +200,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateLookupResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateLookupResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CreateLookupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -295,22 +294,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CreateLookupResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateLookupResponse - * @throws IOException if the JSON string is invalid with respect to CreateLookupResponse - */ + /** + * Create an instance of CreateLookupResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateLookupResponse + * @throws IOException if the JSON string is invalid with respect to CreateLookupResponse + */ public static CreateLookupResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CreateLookupResponse.class); } - /** - * Convert an instance of CreateLookupResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CreateLookupResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java index 9191f939..078dd0d5 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * CreateMessageRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateMessageRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -74,10 +73,10 @@ public CreateMessageRequestError type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -93,10 +92,10 @@ public CreateMessageRequestError description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -120,10 +119,10 @@ public CreateMessageRequestError addFieldErrorsItem(FieldError fieldErrorsItem) return this; } - /** + /** * Get fieldErrors * @return fieldErrors - **/ + */ @javax.annotation.Nullable public List getFieldErrors() { return fieldErrors; @@ -239,12 +238,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("description"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateMessageRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateMessageRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CreateMessageRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -353,22 +352,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CreateMessageRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateMessageRequestError - * @throws IOException if the JSON string is invalid with respect to CreateMessageRequestError - */ + /** + * Create an instance of CreateMessageRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateMessageRequestError + * @throws IOException if the JSON string is invalid with respect to CreateMessageRequestError + */ public static CreateMessageRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CreateMessageRequestError.class); } - /** - * Convert an instance of CreateMessageRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CreateMessageRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java index ae14eab6..e9d80841 100644 --- a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java +++ b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * DeferredResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DeferredResult { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) @@ -67,10 +66,10 @@ public DeferredResult result(Object result) { return this; } - /** + /** * Get result * @return result - **/ + */ @javax.annotation.Nullable public Object getResult() { return result; @@ -86,10 +85,10 @@ public DeferredResult setOrExpired(Boolean setOrExpired) { return this; } - /** + /** * Get setOrExpired * @return setOrExpired - **/ + */ @javax.annotation.Nullable public Boolean getSetOrExpired() { return setOrExpired; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeferredResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DeferredResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DeferredResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -287,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DeferredResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeferredResult - * @throws IOException if the JSON string is invalid with respect to DeferredResult - */ + /** + * Create an instance of DeferredResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeferredResult + * @throws IOException if the JSON string is invalid with respect to DeferredResult + */ public static DeferredResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DeferredResult.class); } - /** - * Convert an instance of DeferredResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DeferredResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java index ca295a14..f7535530 100644 --- a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The Disconnect event is fired when a call ends, for any reason. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -131,10 +130,10 @@ public DisconnectCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -150,10 +149,10 @@ public DisconnectCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -169,10 +168,10 @@ public DisconnectCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -188,10 +187,10 @@ public DisconnectCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -207,10 +206,10 @@ public DisconnectCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -226,10 +225,10 @@ public DisconnectCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -245,10 +244,10 @@ public DisconnectCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -264,10 +263,10 @@ public DisconnectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -283,10 +282,10 @@ public DisconnectCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -302,10 +301,10 @@ public DisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -321,10 +320,10 @@ public DisconnectCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -340,10 +339,10 @@ public DisconnectCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -359,10 +358,10 @@ public DisconnectCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -378,10 +377,10 @@ public DisconnectCallback cause(String cause) { return this; } - /** + /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. * @return cause - **/ + */ @javax.annotation.Nullable public String getCause() { return cause; @@ -397,10 +396,10 @@ public DisconnectCallback errorMessage(String errorMessage) { return this; } - /** + /** * Text explaining the reason that caused the call to fail in case of errors. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -416,10 +415,10 @@ public DisconnectCallback errorId(String errorId) { return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -435,10 +434,10 @@ public DisconnectCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -605,12 +604,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DisconnectCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DisconnectCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DisconnectCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -729,22 +728,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DisconnectCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of DisconnectCallback - * @throws IOException if the JSON string is invalid with respect to DisconnectCallback - */ + /** + * Create an instance of DisconnectCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of DisconnectCallback + * @throws IOException if the JSON string is invalid with respect to DisconnectCallback + */ public static DisconnectCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DisconnectCallback.class); } - /** - * Convert an instance of DisconnectCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DisconnectCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Diversion.java b/src/main/java/com/bandwidth/sdk/model/Diversion.java index 3e7ccb17..1082c8ef 100644 --- a/src/main/java/com/bandwidth/sdk/model/Diversion.java +++ b/src/main/java/com/bandwidth/sdk/model/Diversion.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Diversion */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Diversion { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -87,10 +86,10 @@ public Diversion reason(String reason) { return this; } - /** + /** * The reason for the diversion. Common values: unknown, user-busy, no-answer, unavailable, unconditional, time-of-day, do-not-disturb, deflection, follow-me, out-of-service, away. * @return reason - **/ + */ @javax.annotation.Nullable public String getReason() { return reason; @@ -106,10 +105,10 @@ public Diversion privacy(String privacy) { return this; } - /** + /** * off or full * @return privacy - **/ + */ @javax.annotation.Nullable public String getPrivacy() { return privacy; @@ -125,10 +124,10 @@ public Diversion screen(String screen) { return this; } - /** + /** * No if the number was provided by the user, yes if the number was provided by the network * @return screen - **/ + */ @javax.annotation.Nullable public String getScreen() { return screen; @@ -144,10 +143,10 @@ public Diversion counter(String counter) { return this; } - /** + /** * The number of diversions that have occurred * @return counter - **/ + */ @javax.annotation.Nullable public String getCounter() { return counter; @@ -163,10 +162,10 @@ public Diversion limit(String limit) { return this; } - /** + /** * The maximum number of diversions allowed for this session * @return limit - **/ + */ @javax.annotation.Nullable public String getLimit() { return limit; @@ -182,10 +181,10 @@ public Diversion unknown(String unknown) { return this; } - /** + /** * The normal list of values is not exhaustive. Your application must be tolerant of unlisted keys and unlisted values of those keys. * @return unknown - **/ + */ @javax.annotation.Nullable public String getUnknown() { return unknown; @@ -201,10 +200,10 @@ public Diversion origTo(String origTo) { return this; } - /** + /** * Always present. Indicates the last telephone number that the call was diverted from. * @return origTo - **/ + */ @javax.annotation.Nullable public String getOrigTo() { return origTo; @@ -330,12 +329,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Diversion - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Diversion + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Diversion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -438,22 +437,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Diversion given an JSON string - * - * @param jsonString JSON string - * @return An instance of Diversion - * @throws IOException if the JSON string is invalid with respect to Diversion - */ + /** + * Create an instance of Diversion given an JSON string + * + * @param jsonString JSON string + * @return An instance of Diversion + * @throws IOException if the JSON string is invalid with respect to Diversion + */ public static Diversion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Diversion.class); } - /** - * Convert an instance of Diversion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Diversion to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java index d10fbab4..6b9812eb 100644 --- a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The DTMF event is sent for every digit detected after a <StartGather> verb is executed. You may not respond to this event with BXML. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DtmfCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -131,10 +130,10 @@ public DtmfCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -150,10 +149,10 @@ public DtmfCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -169,10 +168,10 @@ public DtmfCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -188,10 +187,10 @@ public DtmfCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -207,10 +206,10 @@ public DtmfCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -226,10 +225,10 @@ public DtmfCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -245,10 +244,10 @@ public DtmfCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -264,10 +263,10 @@ public DtmfCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -283,10 +282,10 @@ public DtmfCallback digit(String digit) { return this; } - /** + /** * The digit collected in the call. * @return digit - **/ + */ @javax.annotation.Nullable public String getDigit() { return digit; @@ -302,10 +301,10 @@ public DtmfCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -321,10 +320,10 @@ public DtmfCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -340,10 +339,10 @@ public DtmfCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -359,10 +358,10 @@ public DtmfCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -378,10 +377,10 @@ public DtmfCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -397,10 +396,10 @@ public DtmfCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -416,10 +415,10 @@ public DtmfCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -435,10 +434,10 @@ public DtmfCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -605,12 +604,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DtmfCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DtmfCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DtmfCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -732,22 +731,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DtmfCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of DtmfCallback - * @throws IOException if the JSON string is invalid with respect to DtmfCallback - */ + /** + * Create an instance of DtmfCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of DtmfCallback + * @throws IOException if the JSON string is invalid with respect to DtmfCallback + */ public static DtmfCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DtmfCallback.class); } - /** - * Convert an instance of DtmfCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DtmfCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/FieldError.java b/src/main/java/com/bandwidth/sdk/model/FieldError.java index 92914b7e..dccddd62 100644 --- a/src/main/java/com/bandwidth/sdk/model/FieldError.java +++ b/src/main/java/com/bandwidth/sdk/model/FieldError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * FieldError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FieldError { public static final String SERIALIZED_NAME_FIELD_NAME = "fieldName"; @SerializedName(SERIALIZED_NAME_FIELD_NAME) @@ -67,10 +66,10 @@ public FieldError fieldName(String fieldName) { return this; } - /** + /** * The name of the field that contains the error * @return fieldName - **/ + */ @javax.annotation.Nullable public String getFieldName() { return fieldName; @@ -86,10 +85,10 @@ public FieldError description(String description) { return this; } - /** + /** * The error associated with the field * @return description - **/ + */ @javax.annotation.Nullable public String getDescription() { return description; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FieldError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FieldError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!FieldError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FieldError given an JSON string - * - * @param jsonString JSON string - * @return An instance of FieldError - * @throws IOException if the JSON string is invalid with respect to FieldError - */ + /** + * Create an instance of FieldError given an JSON string + * + * @param jsonString JSON string + * @return An instance of FieldError + * @throws IOException if the JSON string is invalid with respect to FieldError + */ public static FieldError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FieldError.class); } - /** - * Convert an instance of FieldError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FieldError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java index 77e14b64..f45fe885 100644 --- a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The gather event is sent after a <Gather> verb is executed. Its purpose is to report the gathered digits to the calling application. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GatherCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -135,10 +134,10 @@ public GatherCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -154,10 +153,10 @@ public GatherCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -173,10 +172,10 @@ public GatherCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -192,10 +191,10 @@ public GatherCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -211,10 +210,10 @@ public GatherCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -230,10 +229,10 @@ public GatherCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -249,10 +248,10 @@ public GatherCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -268,10 +267,10 @@ public GatherCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -287,10 +286,10 @@ public GatherCallback digits(String digits) { return this; } - /** + /** * (optional) The digits, letters, and/or symbols entered by the user. The string is empty if a timeout occurred before any buttons were pressed. * @return digits - **/ + */ @javax.annotation.Nullable public String getDigits() { return digits; @@ -306,10 +305,10 @@ public GatherCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -325,10 +324,10 @@ public GatherCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -344,10 +343,10 @@ public GatherCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -363,10 +362,10 @@ public GatherCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -382,10 +381,10 @@ public GatherCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -401,10 +400,10 @@ public GatherCallback terminatingDigit(String terminatingDigit) { return this; } - /** + /** * (optional) The digit the user pressed to end the gather. Empty string value if no terminating digit was pressed. * @return terminatingDigit - **/ + */ @javax.annotation.Nullable public String getTerminatingDigit() { return terminatingDigit; @@ -420,10 +419,10 @@ public GatherCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -439,10 +438,10 @@ public GatherCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -458,10 +457,10 @@ public GatherCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -631,12 +630,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GatherCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GatherCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GatherCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -761,22 +760,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GatherCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of GatherCallback - * @throws IOException if the JSON string is invalid with respect to GatherCallback - */ + /** + * Create an instance of GatherCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of GatherCallback + * @throws IOException if the JSON string is invalid with respect to GatherCallback + */ public static GatherCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GatherCallback.class); } - /** - * Convert an instance of GatherCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GatherCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java index 8dca880d..2440039b 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Inbound Message Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InboundMessageCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -81,10 +80,10 @@ public InboundMessageCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -100,10 +99,10 @@ public InboundMessageCallback type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -119,10 +118,10 @@ public InboundMessageCallback to(String to) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -138,10 +137,10 @@ public InboundMessageCallback description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -157,10 +156,10 @@ public InboundMessageCallback message(InboundMessageCallbackMessage message) { return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public InboundMessageCallbackMessage getMessage() { return message; @@ -285,12 +284,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("message"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InboundMessageCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InboundMessageCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!InboundMessageCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InboundMessageCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of InboundMessageCallback - * @throws IOException if the JSON string is invalid with respect to InboundMessageCallback - */ + /** + * Create an instance of InboundMessageCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of InboundMessageCallback + * @throws IOException if the JSON string is invalid with respect to InboundMessageCallback + */ public static InboundMessageCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InboundMessageCallback.class); } - /** - * Convert an instance of InboundMessageCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InboundMessageCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java index ac08aa7e..525bcf46 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,7 +56,7 @@ /** * Inbound Message Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InboundMessageCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +114,10 @@ public InboundMessageCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; @@ -134,10 +133,10 @@ public InboundMessageCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -153,10 +152,10 @@ public InboundMessageCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -172,10 +171,10 @@ public InboundMessageCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -191,10 +190,10 @@ public InboundMessageCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -210,10 +209,10 @@ public InboundMessageCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +236,10 @@ public InboundMessageCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -256,10 +255,10 @@ public InboundMessageCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -275,10 +274,10 @@ public InboundMessageCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; @@ -294,10 +293,10 @@ public InboundMessageCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -321,10 +320,10 @@ public InboundMessageCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; @@ -340,10 +339,10 @@ public InboundMessageCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -493,12 +492,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("text"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InboundMessageCallbackMessage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InboundMessageCallbackMessage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!InboundMessageCallbackMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -621,22 +620,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InboundMessageCallbackMessage given an JSON string - * - * @param jsonString JSON string - * @return An instance of InboundMessageCallbackMessage - * @throws IOException if the JSON string is invalid with respect to InboundMessageCallbackMessage - */ + /** + * Create an instance of InboundMessageCallbackMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of InboundMessageCallbackMessage + * @throws IOException if the JSON string is invalid with respect to InboundMessageCallbackMessage + */ public static InboundMessageCallbackMessage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InboundMessageCallbackMessage.class); } - /** - * Convert an instance of InboundMessageCallbackMessage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InboundMessageCallbackMessage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java index c1a87bd5..ea9c01c8 100644 --- a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * The Initiate event is fired when an inbound call is received for a Telephone Number on your Account. It is sent to the URL specified in the application associated with the location (sip-peer) that the called telephone number belongs to. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InitiateCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -112,10 +111,10 @@ public InitiateCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -131,10 +130,10 @@ public InitiateCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -150,10 +149,10 @@ public InitiateCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -169,10 +168,10 @@ public InitiateCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -188,10 +187,10 @@ public InitiateCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -207,10 +206,10 @@ public InitiateCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -226,10 +225,10 @@ public InitiateCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -245,10 +244,10 @@ public InitiateCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -264,10 +263,10 @@ public InitiateCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -283,10 +282,10 @@ public InitiateCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -302,10 +301,10 @@ public InitiateCallback diversion(Diversion diversion) { return this; } - /** + /** * Get diversion * @return diversion - **/ + */ @javax.annotation.Nullable public Diversion getDiversion() { return diversion; @@ -321,10 +320,10 @@ public InitiateCallback stirShaken(StirShaken stirShaken) { return this; } - /** + /** * Get stirShaken * @return stirShaken - **/ + */ @javax.annotation.Nullable public StirShaken getStirShaken() { return stirShaken; @@ -465,12 +464,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InitiateCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InitiateCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!InitiateCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -585,22 +584,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InitiateCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of InitiateCallback - * @throws IOException if the JSON string is invalid with respect to InitiateCallback - */ + /** + * Create an instance of InitiateCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of InitiateCallback + * @throws IOException if the JSON string is invalid with respect to InitiateCallback + */ public static InitiateCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InitiateCallback.class); } - /** - * Convert an instance of InitiateCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InitiateCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java index 988186b3..1f9925a1 100644 --- a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java +++ b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * ListMessageItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ListMessageItem { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -132,10 +131,10 @@ public ListMessageItem messageId(String messageId) { return this; } - /** + /** * The message id * @return messageId - **/ + */ @javax.annotation.Nullable public String getMessageId() { return messageId; @@ -151,10 +150,10 @@ public ListMessageItem accountId(String accountId) { return this; } - /** + /** * The account id associated with this message. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -170,10 +169,10 @@ public ListMessageItem sourceTn(String sourceTn) { return this; } - /** + /** * The source phone number of the message. * @return sourceTn - **/ + */ @javax.annotation.Nullable public String getSourceTn() { return sourceTn; @@ -189,10 +188,10 @@ public ListMessageItem destinationTn(String destinationTn) { return this; } - /** + /** * The recipient phone number of the message. * @return destinationTn - **/ + */ @javax.annotation.Nullable public String getDestinationTn() { return destinationTn; @@ -208,10 +207,10 @@ public ListMessageItem messageStatus(MessageStatusEnum messageStatus) { return this; } - /** + /** * Get messageStatus * @return messageStatus - **/ + */ @javax.annotation.Nullable public MessageStatusEnum getMessageStatus() { return messageStatus; @@ -227,10 +226,10 @@ public ListMessageItem messageDirection(ListMessageDirectionEnum messageDirectio return this; } - /** + /** * Get messageDirection * @return messageDirection - **/ + */ @javax.annotation.Nullable public ListMessageDirectionEnum getMessageDirection() { return messageDirection; @@ -246,10 +245,10 @@ public ListMessageItem messageType(MessageTypeEnum messageType) { return this; } - /** + /** * Get messageType * @return messageType - **/ + */ @javax.annotation.Nullable public MessageTypeEnum getMessageType() { return messageType; @@ -265,10 +264,10 @@ public ListMessageItem segmentCount(Integer segmentCount) { return this; } - /** + /** * The number of segments the message was sent as. * @return segmentCount - **/ + */ @javax.annotation.Nullable public Integer getSegmentCount() { return segmentCount; @@ -284,10 +283,10 @@ public ListMessageItem errorCode(Integer errorCode) { return this; } - /** + /** * The numeric error code of the message. * @return errorCode - **/ + */ @javax.annotation.Nullable public Integer getErrorCode() { return errorCode; @@ -303,10 +302,10 @@ public ListMessageItem receiveTime(OffsetDateTime receiveTime) { return this; } - /** + /** * The ISO 8601 datetime of the message. * @return receiveTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getReceiveTime() { return receiveTime; @@ -322,10 +321,10 @@ public ListMessageItem carrierName(String carrierName) { return this; } - /** + /** * The name of the carrier. Not currently supported for MMS coming soon. * @return carrierName - **/ + */ @javax.annotation.Nullable public String getCarrierName() { return carrierName; @@ -341,10 +340,10 @@ public ListMessageItem messageSize(Integer messageSize) { return this; } - /** + /** * The size of the message including message content and headers. * @return messageSize - **/ + */ @javax.annotation.Nullable public Integer getMessageSize() { return messageSize; @@ -360,10 +359,10 @@ public ListMessageItem messageLength(Integer messageLength) { return this; } - /** + /** * The length of the message content. * @return messageLength - **/ + */ @javax.annotation.Nullable public Integer getMessageLength() { return messageLength; @@ -379,10 +378,10 @@ public ListMessageItem attachmentCount(Integer attachmentCount) { return this; } - /** + /** * The number of attachments the message has. * @return attachmentCount - **/ + */ @javax.annotation.Nullable public Integer getAttachmentCount() { return attachmentCount; @@ -398,10 +397,10 @@ public ListMessageItem recipientCount(Integer recipientCount) { return this; } - /** + /** * The number of recipients the message has. * @return recipientCount - **/ + */ @javax.annotation.Nullable public Integer getRecipientCount() { return recipientCount; @@ -417,10 +416,10 @@ public ListMessageItem campaignClass(String campaignClass) { return this; } - /** + /** * The campaign class of the message if it has one. * @return campaignClass - **/ + */ @javax.annotation.Nullable public String getCampaignClass() { return campaignClass; @@ -436,10 +435,10 @@ public ListMessageItem campaignId(String campaignId) { return this; } - /** + /** * The campaign ID of the message if it has one. * @return campaignId - **/ + */ @javax.annotation.Nullable public String getCampaignId() { return campaignId; @@ -606,12 +605,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ListMessageItem - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ListMessageItem + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ListMessageItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -726,22 +725,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ListMessageItem given an JSON string - * - * @param jsonString JSON string - * @return An instance of ListMessageItem - * @throws IOException if the JSON string is invalid with respect to ListMessageItem - */ + /** + * Create an instance of ListMessageItem given an JSON string + * + * @param jsonString JSON string + * @return An instance of ListMessageItem + * @throws IOException if the JSON string is invalid with respect to ListMessageItem + */ public static ListMessageItem fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ListMessageItem.class); } - /** - * Convert an instance of ListMessageItem to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ListMessageItem to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java index 75414526..f09f7fdc 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Create phone number lookup request. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class LookupRequest { public static final String SERIALIZED_NAME_TNS = "tns"; @SerializedName(SERIALIZED_NAME_TNS) @@ -73,10 +72,10 @@ public LookupRequest addTnsItem(String tnsItem) { return this; } - /** + /** * Get tns * @return tns - **/ + */ @javax.annotation.Nonnull public List getTns() { return tns; @@ -185,12 +184,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("tns"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LookupRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LookupRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LookupRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -285,22 +284,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LookupRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of LookupRequest - * @throws IOException if the JSON string is invalid with respect to LookupRequest - */ + /** + * Create an instance of LookupRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of LookupRequest + * @throws IOException if the JSON string is invalid with respect to LookupRequest + */ public static LookupRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LookupRequest.class); } - /** - * Convert an instance of LookupRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LookupRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupResult.java b/src/main/java/com/bandwidth/sdk/model/LookupResult.java index e9079cb3..846acd11 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupResult.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupResult.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Carrier information results for the specified telephone number. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class LookupResult { public static final String SERIALIZED_NAME_RESPONSE_CODE = "Response Code"; @SerializedName(SERIALIZED_NAME_RESPONSE_CODE) @@ -95,10 +94,10 @@ public LookupResult responseCode(Integer responseCode) { return this; } - /** + /** * Our vendor's response code. * @return responseCode - **/ + */ @javax.annotation.Nullable public Integer getResponseCode() { return responseCode; @@ -114,10 +113,10 @@ public LookupResult message(String message) { return this; } - /** + /** * Message associated with the response code. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; @@ -133,10 +132,10 @@ public LookupResult e164Format(String e164Format) { return this; } - /** + /** * The telephone number in E.164 format. * @return e164Format - **/ + */ @javax.annotation.Nullable public String getE164Format() { return e164Format; @@ -152,10 +151,10 @@ public LookupResult formatted(String formatted) { return this; } - /** + /** * The formatted version of the telephone number. * @return formatted - **/ + */ @javax.annotation.Nullable public String getFormatted() { return formatted; @@ -171,10 +170,10 @@ public LookupResult country(String country) { return this; } - /** + /** * The country of the telephone number. * @return country - **/ + */ @javax.annotation.Nullable public String getCountry() { return country; @@ -190,10 +189,10 @@ public LookupResult lineType(String lineType) { return this; } - /** + /** * The line type of the telephone number. * @return lineType - **/ + */ @javax.annotation.Nullable public String getLineType() { return lineType; @@ -209,10 +208,10 @@ public LookupResult lineProvider(String lineProvider) { return this; } - /** + /** * The messaging service provider of the telephone number. * @return lineProvider - **/ + */ @javax.annotation.Nullable public String getLineProvider() { return lineProvider; @@ -228,10 +227,10 @@ public LookupResult mobileCountryCode(String mobileCountryCode) { return this; } - /** + /** * The first half of the Home Network Identity (HNI). * @return mobileCountryCode - **/ + */ @javax.annotation.Nullable public String getMobileCountryCode() { return mobileCountryCode; @@ -247,10 +246,10 @@ public LookupResult mobileNetworkCode(String mobileNetworkCode) { return this; } - /** + /** * The second half of the HNI. * @return mobileNetworkCode - **/ + */ @javax.annotation.Nullable public String getMobileNetworkCode() { return mobileNetworkCode; @@ -382,12 +381,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LookupResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LookupResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LookupResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -493,22 +492,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LookupResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of LookupResult - * @throws IOException if the JSON string is invalid with respect to LookupResult - */ + /** + * Create an instance of LookupResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of LookupResult + * @throws IOException if the JSON string is invalid with respect to LookupResult + */ public static LookupResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LookupResult.class); } - /** - * Convert an instance of LookupResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LookupResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java index dfca01c8..cdc1ac26 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * If requestId exists, the result for that request is returned. See the Examples for details on the various responses that you can receive. Generally, if you see a Response Code of 0 in a result for a TN, information will be available for it. Any other Response Code will indicate no information was available for the TN. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class LookupStatus { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -79,10 +78,10 @@ public LookupStatus requestId(String requestId) { return this; } - /** + /** * The requestId. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; @@ -98,10 +97,10 @@ public LookupStatus status(LookupStatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public LookupStatusEnum getStatus() { return status; @@ -125,10 +124,10 @@ public LookupStatus addResultItem(LookupResult resultItem) { return this; } - /** + /** * The carrier information results for the specified telephone number. * @return result - **/ + */ @javax.annotation.Nullable public List getResult() { return result; @@ -152,10 +151,10 @@ public LookupStatus addFailedTelephoneNumbersItem(String failedTelephoneNumbersI return this; } - /** + /** * The telephone numbers whose lookup failed. * @return failedTelephoneNumbers - **/ + */ @javax.annotation.Nullable public List getFailedTelephoneNumbers() { return failedTelephoneNumbers; @@ -272,12 +271,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LookupStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LookupStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LookupStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -384,22 +383,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LookupStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of LookupStatus - * @throws IOException if the JSON string is invalid with respect to LookupStatus - */ + /** + * Create an instance of LookupStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of LookupStatus + * @throws IOException if the JSON string is invalid with respect to LookupStatus + */ public static LookupStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LookupStatus.class); } - /** - * Convert an instance of LookupStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LookupStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java index 31ee19f2..5cf68101 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * This event is sent to the url informed when requesting a machine detection operation. It contains the machine detection operation result, which can be: human, answering-machine, silence, timeout, error. This event is not sent when sync answering machine detection mode is chosen. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MachineDetectionCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -120,10 +119,10 @@ public MachineDetectionCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -139,10 +138,10 @@ public MachineDetectionCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -158,10 +157,10 @@ public MachineDetectionCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -177,10 +176,10 @@ public MachineDetectionCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -196,10 +195,10 @@ public MachineDetectionCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -215,10 +214,10 @@ public MachineDetectionCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -234,10 +233,10 @@ public MachineDetectionCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -253,10 +252,10 @@ public MachineDetectionCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -272,10 +271,10 @@ public MachineDetectionCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -291,10 +290,10 @@ public MachineDetectionCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -310,10 +309,10 @@ public MachineDetectionCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -329,10 +328,10 @@ public MachineDetectionCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -348,10 +347,10 @@ public MachineDetectionCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -367,10 +366,10 @@ public MachineDetectionCompleteCallback machineDetectionResult(MachineDetectionR return this; } - /** + /** * Get machineDetectionResult * @return machineDetectionResult - **/ + */ @javax.annotation.Nullable public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; @@ -528,12 +527,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MachineDetectionCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MachineDetectionCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MachineDetectionCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -647,22 +646,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MachineDetectionCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of MachineDetectionCompleteCallback - * @throws IOException if the JSON string is invalid with respect to MachineDetectionCompleteCallback - */ + /** + * Create an instance of MachineDetectionCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of MachineDetectionCompleteCallback + * @throws IOException if the JSON string is invalid with respect to MachineDetectionCompleteCallback + */ public static MachineDetectionCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MachineDetectionCompleteCallback.class); } - /** - * Convert an instance of MachineDetectionCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MachineDetectionCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java index 86785f36..5b22e432 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The machine detection request used to perform <a href='/docs/voice/guides/machineDetection'>machine detection</a> on the call. Currently, there is an issue where decimal values are not getting processed correctly. Please use whole number values. We are working to resolve this issue. Please contact Bandwidth Support if you need more information. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MachineDetectionConfiguration { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) @@ -123,10 +122,10 @@ public MachineDetectionConfiguration mode(MachineDetectionModeEnum mode) { return this; } - /** + /** * Get mode * @return mode - **/ + */ @javax.annotation.Nullable public MachineDetectionModeEnum getMode() { return mode; @@ -142,10 +141,10 @@ public MachineDetectionConfiguration detectionTimeout(Double detectionTimeout) { return this; } - /** + /** * The timeout used for the whole operation, in seconds. If no result is determined in this period, a callback with a `timeout` result is sent. * @return detectionTimeout - **/ + */ @javax.annotation.Nullable public Double getDetectionTimeout() { return detectionTimeout; @@ -161,10 +160,10 @@ public MachineDetectionConfiguration silenceTimeout(Double silenceTimeout) { return this; } - /** + /** * If no speech is detected in this period, a callback with a 'silence' result is sent. * @return silenceTimeout - **/ + */ @javax.annotation.Nullable public Double getSilenceTimeout() { return silenceTimeout; @@ -180,10 +179,10 @@ public MachineDetectionConfiguration speechThreshold(Double speechThreshold) { return this; } - /** + /** * When speech has ended and a result couldn't be determined based on the audio content itself, this value is used to determine if the speaker is a machine based on the speech duration. If the length of the speech detected is greater than or equal to this threshold, the result will be 'answering-machine'. If the length of speech detected is below this threshold, the result will be 'human'. * @return speechThreshold - **/ + */ @javax.annotation.Nullable public Double getSpeechThreshold() { return speechThreshold; @@ -199,10 +198,10 @@ public MachineDetectionConfiguration speechEndThreshold(Double speechEndThreshol return this; } - /** + /** * Amount of silence (in seconds) before assuming the callee has finished speaking. * @return speechEndThreshold - **/ + */ @javax.annotation.Nullable public Double getSpeechEndThreshold() { return speechEndThreshold; @@ -218,10 +217,10 @@ public MachineDetectionConfiguration machineSpeechEndThreshold(Double machineSpe return this; } - /** + /** * When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. * @return machineSpeechEndThreshold - **/ + */ @javax.annotation.Nullable public Double getMachineSpeechEndThreshold() { return machineSpeechEndThreshold; @@ -237,10 +236,10 @@ public MachineDetectionConfiguration delayResult(Boolean delayResult) { return this; } - /** + /** * If set to 'true' and if an answering machine is detected, the 'answering-machine' callback will be delayed until the machine is done speaking, or an end of message tone is detected, or until the 'detectionTimeout' is exceeded. If false, the 'answering-machine' result is sent immediately. * @return delayResult - **/ + */ @javax.annotation.Nullable public Boolean getDelayResult() { return delayResult; @@ -256,10 +255,10 @@ public MachineDetectionConfiguration callbackUrl(URI callbackUrl) { return this; } - /** + /** * The URL to send the 'machineDetectionComplete' webhook when the detection is completed. Only for 'async' mode. * @return callbackUrl - **/ + */ @javax.annotation.Nullable public URI getCallbackUrl() { return callbackUrl; @@ -275,10 +274,10 @@ public MachineDetectionConfiguration callbackMethod(CallbackMethodEnum callbackM return this; } - /** + /** * Get callbackMethod * @return callbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getCallbackMethod() { return callbackMethod; @@ -294,10 +293,10 @@ public MachineDetectionConfiguration username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -313,10 +312,10 @@ public MachineDetectionConfiguration password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -332,10 +331,10 @@ public MachineDetectionConfiguration fallbackUrl(URI fallbackUrl) { return this; } - /** + /** * A fallback URL which, if provided, will be used to retry the machine detection complete webhook delivery in case `callbackUrl` fails to respond * @return fallbackUrl - **/ + */ @javax.annotation.Nullable public URI getFallbackUrl() { return fallbackUrl; @@ -351,10 +350,10 @@ public MachineDetectionConfiguration fallbackMethod(CallbackMethodEnum fallbackM return this; } - /** + /** * Get fallbackMethod * @return fallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getFallbackMethod() { return fallbackMethod; @@ -370,10 +369,10 @@ public MachineDetectionConfiguration fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -389,10 +388,10 @@ public MachineDetectionConfiguration fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -553,12 +552,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MachineDetectionConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MachineDetectionConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MachineDetectionConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -670,22 +669,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MachineDetectionConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of MachineDetectionConfiguration - * @throws IOException if the JSON string is invalid with respect to MachineDetectionConfiguration - */ + /** + * Create an instance of MachineDetectionConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of MachineDetectionConfiguration + * @throws IOException if the JSON string is invalid with respect to MachineDetectionConfiguration + */ public static MachineDetectionConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MachineDetectionConfiguration.class); } - /** - * Convert an instance of MachineDetectionConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MachineDetectionConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java index f3ff2b2e..b33891ea 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * (optional) if machine detection was requested in sync mode, the result will be specified here. Possible values are the same as the async counterpart: Machine Detection Complete */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MachineDetectionResult { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -67,10 +66,10 @@ public MachineDetectionResult value(String value) { return this; } - /** + /** * Possible values are answering-machine, human, silence, timeout, or error. * @return value - **/ + */ @javax.annotation.Nullable public String getValue() { return value; @@ -86,10 +85,10 @@ public MachineDetectionResult duration(String duration) { return this; } - /** + /** * The amount of time it took to determine the result. * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MachineDetectionResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MachineDetectionResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MachineDetectionResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MachineDetectionResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MachineDetectionResult - * @throws IOException if the JSON string is invalid with respect to MachineDetectionResult - */ + /** + * Create an instance of MachineDetectionResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of MachineDetectionResult + * @throws IOException if the JSON string is invalid with respect to MachineDetectionResult + */ public static MachineDetectionResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MachineDetectionResult.class); } - /** - * Convert an instance of MachineDetectionResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MachineDetectionResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Media.java b/src/main/java/com/bandwidth/sdk/model/Media.java index f31d58bf..6271307d 100644 --- a/src/main/java/com/bandwidth/sdk/model/Media.java +++ b/src/main/java/com/bandwidth/sdk/model/Media.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Media */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Media { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -71,10 +70,10 @@ public Media content(String content) { return this; } - /** + /** * Get content * @return content - **/ + */ @javax.annotation.Nullable public String getContent() { return content; @@ -90,10 +89,10 @@ public Media contentLength(Integer contentLength) { return this; } - /** + /** * Get contentLength * @return contentLength - **/ + */ @javax.annotation.Nullable public Integer getContentLength() { return contentLength; @@ -109,10 +108,10 @@ public Media mediaName(String mediaName) { return this; } - /** + /** * Get mediaName * @return mediaName - **/ + */ @javax.annotation.Nullable public String getMediaName() { return mediaName; @@ -226,12 +225,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Media - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Media + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Media.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -319,22 +318,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Media given an JSON string - * - * @param jsonString JSON string - * @return An instance of Media - * @throws IOException if the JSON string is invalid with respect to Media - */ + /** + * Create an instance of Media given an JSON string + * + * @param jsonString JSON string + * @return An instance of Media + * @throws IOException if the JSON string is invalid with respect to Media + */ public static Media fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Media.class); } - /** - * Convert an instance of Media to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Media to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Message.java b/src/main/java/com/bandwidth/sdk/model/Message.java index f7893107..f8647be4 100644 --- a/src/main/java/com/bandwidth/sdk/model/Message.java +++ b/src/main/java/com/bandwidth/sdk/model/Message.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Message { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -116,10 +115,10 @@ public Message id(String id) { return this; } - /** + /** * The id of the message. * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; @@ -135,10 +134,10 @@ public Message owner(String owner) { return this; } - /** + /** * The Bandwidth phone number associated with the message. * @return owner - **/ + */ @javax.annotation.Nullable public String getOwner() { return owner; @@ -154,10 +153,10 @@ public Message applicationId(String applicationId) { return this; } - /** + /** * The application ID associated with the message. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -173,10 +172,10 @@ public Message time(OffsetDateTime time) { return this; } - /** + /** * The datetime stamp of the message in ISO 8601 * @return time - **/ + */ @javax.annotation.Nullable public OffsetDateTime getTime() { return time; @@ -192,10 +191,10 @@ public Message segmentCount(Integer segmentCount) { return this; } - /** + /** * The number of segments the original message from the user is broken into before sending over to carrier networks. * @return segmentCount - **/ + */ @javax.annotation.Nullable public Integer getSegmentCount() { return segmentCount; @@ -211,10 +210,10 @@ public Message direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public MessageDirectionEnum getDirection() { return direction; @@ -238,10 +237,10 @@ public Message addToItem(String toItem) { return this; } - /** + /** * The phone number recipients of the message. * @return to - **/ + */ @javax.annotation.Nullable public Set getTo() { return to; @@ -257,10 +256,10 @@ public Message from(String from) { return this; } - /** + /** * The phone number the message was sent from. * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -284,10 +283,10 @@ public Message addMediaItem(String mediaItem) { return this; } - /** + /** * The list of media URLs sent in the message. Including a `filename` field in the `Content-Disposition` header of the media linked with a URL will set the displayed file name. This is a best practice to ensure that your media has a readable file name. * @return media - **/ + */ @javax.annotation.Nullable public Set getMedia() { return media; @@ -303,10 +302,10 @@ public Message text(String text) { return this; } - /** + /** * The contents of the message. * @return text - **/ + */ @javax.annotation.Nullable public String getText() { return text; @@ -322,10 +321,10 @@ public Message tag(String tag) { return this; } - /** + /** * The custom string set by the user. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -341,10 +340,10 @@ public Message priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -360,10 +359,10 @@ public Message expiration(OffsetDateTime expiration) { return this; } - /** + /** * The expiration date-time set by the user. * @return expiration - **/ + */ @javax.annotation.Nullable public OffsetDateTime getExpiration() { return expiration; @@ -507,12 +506,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Message - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Message + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Message.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -628,22 +627,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Message given an JSON string - * - * @param jsonString JSON string - * @return An instance of Message - * @throws IOException if the JSON string is invalid with respect to Message - */ + /** + * Create an instance of Message given an JSON string + * + * @param jsonString JSON string + * @return An instance of Message + * @throws IOException if the JSON string is invalid with respect to Message + */ public static Message fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Message.class); } - /** - * Convert an instance of Message to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Message to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java index fe3ce3db..78b2e050 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Message Delivered Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageDeliveredCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -81,10 +80,10 @@ public MessageDeliveredCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -100,10 +99,10 @@ public MessageDeliveredCallback type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -119,10 +118,10 @@ public MessageDeliveredCallback to(String to) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -138,10 +137,10 @@ public MessageDeliveredCallback description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -157,10 +156,10 @@ public MessageDeliveredCallback message(MessageDeliveredCallbackMessage message) return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageDeliveredCallbackMessage getMessage() { return message; @@ -285,12 +284,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("message"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageDeliveredCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageDeliveredCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageDeliveredCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageDeliveredCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageDeliveredCallback - * @throws IOException if the JSON string is invalid with respect to MessageDeliveredCallback - */ + /** + * Create an instance of MessageDeliveredCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageDeliveredCallback + * @throws IOException if the JSON string is invalid with respect to MessageDeliveredCallback + */ public static MessageDeliveredCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageDeliveredCallback.class); } - /** - * Convert an instance of MessageDeliveredCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageDeliveredCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java index dbafd12b..a89369c2 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,7 +56,7 @@ /** * Message Delivered Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageDeliveredCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +114,10 @@ public MessageDeliveredCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; @@ -134,10 +133,10 @@ public MessageDeliveredCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -153,10 +152,10 @@ public MessageDeliveredCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -172,10 +171,10 @@ public MessageDeliveredCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -191,10 +190,10 @@ public MessageDeliveredCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -210,10 +209,10 @@ public MessageDeliveredCallbackMessage direction(MessageDirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +236,10 @@ public MessageDeliveredCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -256,10 +255,10 @@ public MessageDeliveredCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -275,10 +274,10 @@ public MessageDeliveredCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; @@ -294,10 +293,10 @@ public MessageDeliveredCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nonnull public String getTag() { return tag; @@ -321,10 +320,10 @@ public MessageDeliveredCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; @@ -340,10 +339,10 @@ public MessageDeliveredCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -494,12 +493,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("tag"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageDeliveredCallbackMessage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageDeliveredCallbackMessage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageDeliveredCallbackMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -622,22 +621,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageDeliveredCallbackMessage given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageDeliveredCallbackMessage - * @throws IOException if the JSON string is invalid with respect to MessageDeliveredCallbackMessage - */ + /** + * Create an instance of MessageDeliveredCallbackMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageDeliveredCallbackMessage + * @throws IOException if the JSON string is invalid with respect to MessageDeliveredCallbackMessage + */ public static MessageDeliveredCallbackMessage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageDeliveredCallbackMessage.class); } - /** - * Convert an instance of MessageDeliveredCallbackMessage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageDeliveredCallbackMessage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java index 49153874..5dbd1a65 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Message Failed Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageFailedCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -85,10 +84,10 @@ public MessageFailedCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -104,10 +103,10 @@ public MessageFailedCallback type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -123,10 +122,10 @@ public MessageFailedCallback to(String to) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -142,10 +141,10 @@ public MessageFailedCallback description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -161,10 +160,10 @@ public MessageFailedCallback message(MessageFailedCallbackMessage message) { return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageFailedCallbackMessage getMessage() { return message; @@ -180,10 +179,10 @@ public MessageFailedCallback errorCode(Integer errorCode) { return this; } - /** + /** * Get errorCode * @return errorCode - **/ + */ @javax.annotation.Nonnull public Integer getErrorCode() { return errorCode; @@ -312,12 +311,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("errorCode"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageFailedCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageFailedCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageFailedCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -417,22 +416,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageFailedCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageFailedCallback - * @throws IOException if the JSON string is invalid with respect to MessageFailedCallback - */ + /** + * Create an instance of MessageFailedCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageFailedCallback + * @throws IOException if the JSON string is invalid with respect to MessageFailedCallback + */ public static MessageFailedCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageFailedCallback.class); } - /** - * Convert an instance of MessageFailedCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageFailedCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java index fe2e8fc3..c819c0e7 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,7 +56,7 @@ /** * Message Failed Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageFailedCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +114,10 @@ public MessageFailedCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; @@ -134,10 +133,10 @@ public MessageFailedCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -153,10 +152,10 @@ public MessageFailedCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -172,10 +171,10 @@ public MessageFailedCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -191,10 +190,10 @@ public MessageFailedCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -210,10 +209,10 @@ public MessageFailedCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +236,10 @@ public MessageFailedCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -256,10 +255,10 @@ public MessageFailedCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -275,10 +274,10 @@ public MessageFailedCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; @@ -294,10 +293,10 @@ public MessageFailedCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nonnull public String getTag() { return tag; @@ -321,10 +320,10 @@ public MessageFailedCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; @@ -340,10 +339,10 @@ public MessageFailedCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -494,12 +493,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("tag"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageFailedCallbackMessage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageFailedCallbackMessage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageFailedCallbackMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -622,22 +621,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageFailedCallbackMessage given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageFailedCallbackMessage - * @throws IOException if the JSON string is invalid with respect to MessageFailedCallbackMessage - */ + /** + * Create an instance of MessageFailedCallbackMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageFailedCallbackMessage + * @throws IOException if the JSON string is invalid with respect to MessageFailedCallbackMessage + */ public static MessageFailedCallbackMessage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageFailedCallbackMessage.class); } - /** - * Convert an instance of MessageFailedCallbackMessage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageFailedCallbackMessage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java index 44b019c0..b29f4740 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,7 +55,7 @@ /** * MessageRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageRequest { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -98,10 +97,10 @@ public MessageRequest applicationId(String applicationId) { return this; } - /** + /** * The ID of the Application your from number is associated with in the Bandwidth Phone Number Dashboard. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -125,10 +124,10 @@ public MessageRequest addToItem(String toItem) { return this; } - /** + /** * The phone number(s) the message should be sent to in E164 format. * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -144,10 +143,10 @@ public MessageRequest from(String from) { return this; } - /** + /** * Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -163,10 +162,10 @@ public MessageRequest text(String text) { return this; } - /** + /** * The contents of the text message. Must be 2048 characters or less. * @return text - **/ + */ @javax.annotation.Nullable public String getText() { return text; @@ -190,10 +189,10 @@ public MessageRequest addMediaItem(URI mediaItem) { return this; } - /** + /** * A list of URLs to include as media attachments as part of the message. Each URL can be at most 4096 characters. * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; @@ -209,10 +208,10 @@ public MessageRequest tag(String tag) { return this; } - /** + /** * A custom string that will be included in callback events of the message. Max 1024 characters. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -228,10 +227,10 @@ public MessageRequest priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -247,10 +246,10 @@ public MessageRequest expiration(OffsetDateTime expiration) { return this; } - /** + /** * A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. Not supported on MMS. * @return expiration - **/ + */ @javax.annotation.Nullable public OffsetDateTime getExpiration() { return expiration; @@ -382,12 +381,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("from"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -502,22 +501,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageRequest - * @throws IOException if the JSON string is invalid with respect to MessageRequest - */ + /** + * Create an instance of MessageRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageRequest + * @throws IOException if the JSON string is invalid with respect to MessageRequest + */ public static MessageRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageRequest.class); } - /** - * Convert an instance of MessageRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java index 97861788..4fe2cff5 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Message Sending Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageSendingCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -81,10 +80,10 @@ public MessageSendingCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -100,10 +99,10 @@ public MessageSendingCallback type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -119,10 +118,10 @@ public MessageSendingCallback to(String to) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -138,10 +137,10 @@ public MessageSendingCallback description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -157,10 +156,10 @@ public MessageSendingCallback message(MessageSendingCallbackMessage message) { return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageSendingCallbackMessage getMessage() { return message; @@ -285,12 +284,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("message"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageSendingCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageSendingCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageSendingCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageSendingCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageSendingCallback - * @throws IOException if the JSON string is invalid with respect to MessageSendingCallback - */ + /** + * Create an instance of MessageSendingCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageSendingCallback + * @throws IOException if the JSON string is invalid with respect to MessageSendingCallback + */ public static MessageSendingCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageSendingCallback.class); } - /** - * Convert an instance of MessageSendingCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageSendingCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java index 02185726..58085741 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,7 +56,7 @@ /** * Message Sending Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageSendingCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +114,10 @@ public MessageSendingCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; @@ -134,10 +133,10 @@ public MessageSendingCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -153,10 +152,10 @@ public MessageSendingCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -172,10 +171,10 @@ public MessageSendingCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -191,10 +190,10 @@ public MessageSendingCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -210,10 +209,10 @@ public MessageSendingCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +236,10 @@ public MessageSendingCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -256,10 +255,10 @@ public MessageSendingCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -275,10 +274,10 @@ public MessageSendingCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; @@ -294,10 +293,10 @@ public MessageSendingCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -321,10 +320,10 @@ public MessageSendingCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nonnull public List getMedia() { return media; @@ -340,10 +339,10 @@ public MessageSendingCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -494,12 +493,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("media"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageSendingCallbackMessage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageSendingCallbackMessage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageSendingCallbackMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -624,22 +623,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageSendingCallbackMessage given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageSendingCallbackMessage - * @throws IOException if the JSON string is invalid with respect to MessageSendingCallbackMessage - */ + /** + * Create an instance of MessageSendingCallbackMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageSendingCallbackMessage + * @throws IOException if the JSON string is invalid with respect to MessageSendingCallbackMessage + */ public static MessageSendingCallbackMessage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageSendingCallbackMessage.class); } - /** - * Convert an instance of MessageSendingCallbackMessage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageSendingCallbackMessage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagesList.java b/src/main/java/com/bandwidth/sdk/model/MessagesList.java index 13bc6bce..41876834 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagesList.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagesList.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * MessagesList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessagesList { public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) @@ -75,10 +74,10 @@ public MessagesList totalCount(Integer totalCount) { return this; } - /** + /** * The total number of messages matched by the search. When the request has limitTotalCount set to true this value is limited to 10,000. * @return totalCount - **/ + */ @javax.annotation.Nullable public Integer getTotalCount() { return totalCount; @@ -94,10 +93,10 @@ public MessagesList pageInfo(PageInfo pageInfo) { return this; } - /** + /** * Get pageInfo * @return pageInfo - **/ + */ @javax.annotation.Nullable public PageInfo getPageInfo() { return pageInfo; @@ -121,10 +120,10 @@ public MessagesList addMessagesItem(ListMessageItem messagesItem) { return this; } - /** + /** * Get messages * @return messages - **/ + */ @javax.annotation.Nullable public List getMessages() { return messages; @@ -238,12 +237,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessagesList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessagesList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessagesList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -343,22 +342,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessagesList given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessagesList - * @throws IOException if the JSON string is invalid with respect to MessagesList - */ + /** + * Create an instance of MessagesList given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessagesList + * @throws IOException if the JSON string is invalid with respect to MessagesList + */ public static MessagesList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessagesList.class); } - /** - * Convert an instance of MessagesList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessagesList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java index d4224fb0..bf999660 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MessagingCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessagingCodeResponse { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -63,10 +62,10 @@ public MessagingCodeResponse messageId(String messageId) { return this; } - /** + /** * Messaging API Message ID. * @return messageId - **/ + */ @javax.annotation.Nullable public String getMessageId() { return messageId; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessagingCodeResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessagingCodeResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessagingCodeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessagingCodeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessagingCodeResponse - * @throws IOException if the JSON string is invalid with respect to MessagingCodeResponse - */ + /** + * Create an instance of MessagingCodeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessagingCodeResponse + * @throws IOException if the JSON string is invalid with respect to MessagingCodeResponse + */ public static MessagingCodeResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessagingCodeResponse.class); } - /** - * Convert an instance of MessagingCodeResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessagingCodeResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java index 8097ac14..7153b7bc 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MessagingRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessagingRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -67,10 +66,10 @@ public MessagingRequestError type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -86,10 +85,10 @@ public MessagingRequestError description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -202,12 +201,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("description"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessagingRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessagingRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessagingRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -302,22 +301,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessagingRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessagingRequestError - * @throws IOException if the JSON string is invalid with respect to MessagingRequestError - */ + /** + * Create an instance of MessagingRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessagingRequestError + * @throws IOException if the JSON string is invalid with respect to MessagingRequestError + */ public static MessagingRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessagingRequestError.class); } - /** - * Convert an instance of MessagingRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessagingRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java index 96e1f5ee..41ad730a 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MfaForbiddenRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MfaForbiddenRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -63,10 +62,10 @@ public MfaForbiddenRequestError message(String message) { return this; } - /** + /** * The message containing the reason behind the request being forbidden. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MfaForbiddenRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MfaForbiddenRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MfaForbiddenRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MfaForbiddenRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of MfaForbiddenRequestError - * @throws IOException if the JSON string is invalid with respect to MfaForbiddenRequestError - */ + /** + * Create an instance of MfaForbiddenRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MfaForbiddenRequestError + * @throws IOException if the JSON string is invalid with respect to MfaForbiddenRequestError + */ public static MfaForbiddenRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MfaForbiddenRequestError.class); } - /** - * Convert an instance of MfaForbiddenRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MfaForbiddenRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java index fec8d616..e1b36fc3 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MfaRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MfaRequestError { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -67,10 +66,10 @@ public MfaRequestError error(String error) { return this; } - /** + /** * A message describing the error with your request. * @return error - **/ + */ @javax.annotation.Nullable public String getError() { return error; @@ -86,10 +85,10 @@ public MfaRequestError requestId(String requestId) { return this; } - /** + /** * The associated requestId from AWS. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MfaRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MfaRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MfaRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MfaRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of MfaRequestError - * @throws IOException if the JSON string is invalid with respect to MfaRequestError - */ + /** + * Create an instance of MfaRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MfaRequestError + * @throws IOException if the JSON string is invalid with respect to MfaRequestError + */ public static MfaRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MfaRequestError.class); } - /** - * Convert an instance of MfaRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MfaRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java index 1c9d9966..0ffc2ac6 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MfaUnauthorizedRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MfaUnauthorizedRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -63,10 +62,10 @@ public MfaUnauthorizedRequestError message(String message) { return this; } - /** + /** * Unauthorized * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MfaUnauthorizedRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MfaUnauthorizedRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MfaUnauthorizedRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MfaUnauthorizedRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of MfaUnauthorizedRequestError - * @throws IOException if the JSON string is invalid with respect to MfaUnauthorizedRequestError - */ + /** + * Create an instance of MfaUnauthorizedRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MfaUnauthorizedRequestError + * @throws IOException if the JSON string is invalid with respect to MfaUnauthorizedRequestError + */ public static MfaUnauthorizedRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MfaUnauthorizedRequestError.class); } - /** - * Convert an instance of MfaUnauthorizedRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MfaUnauthorizedRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/PageInfo.java b/src/main/java/com/bandwidth/sdk/model/PageInfo.java index fdc30505..56cef96e 100644 --- a/src/main/java/com/bandwidth/sdk/model/PageInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/PageInfo.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * PageInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PageInfo { public static final String SERIALIZED_NAME_PREV_PAGE = "prevPage"; @SerializedName(SERIALIZED_NAME_PREV_PAGE) @@ -75,10 +74,10 @@ public PageInfo prevPage(String prevPage) { return this; } - /** + /** * The link to the previous page for pagination. * @return prevPage - **/ + */ @javax.annotation.Nullable public String getPrevPage() { return prevPage; @@ -94,10 +93,10 @@ public PageInfo nextPage(String nextPage) { return this; } - /** + /** * The link to the next page for pagination. * @return nextPage - **/ + */ @javax.annotation.Nullable public String getNextPage() { return nextPage; @@ -113,10 +112,10 @@ public PageInfo prevPageToken(String prevPageToken) { return this; } - /** + /** * The isolated pagination token for the previous page. * @return prevPageToken - **/ + */ @javax.annotation.Nullable public String getPrevPageToken() { return prevPageToken; @@ -132,10 +131,10 @@ public PageInfo nextPageToken(String nextPageToken) { return this; } - /** + /** * The isolated pagination token for the next page. * @return nextPageToken - **/ + */ @javax.annotation.Nullable public String getNextPageToken() { return nextPageToken; @@ -252,12 +251,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to PageInfo - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PageInfo + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PageInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -351,22 +350,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of PageInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of PageInfo - * @throws IOException if the JSON string is invalid with respect to PageInfo - */ + /** + * Create an instance of PageInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of PageInfo + * @throws IOException if the JSON string is invalid with respect to PageInfo + */ public static PageInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, PageInfo.class); } - /** - * Convert an instance of PageInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of PageInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java index d1972c60..67113014 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * The Recording Available event is sent after a recording has been processed. It indicates that the recording is available for download. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -152,10 +151,10 @@ public RecordingAvailableCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -171,10 +170,10 @@ public RecordingAvailableCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -190,10 +189,10 @@ public RecordingAvailableCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -209,10 +208,10 @@ public RecordingAvailableCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -228,10 +227,10 @@ public RecordingAvailableCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -247,10 +246,10 @@ public RecordingAvailableCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -266,10 +265,10 @@ public RecordingAvailableCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -285,10 +284,10 @@ public RecordingAvailableCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -304,10 +303,10 @@ public RecordingAvailableCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -323,10 +322,10 @@ public RecordingAvailableCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -342,10 +341,10 @@ public RecordingAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -361,10 +360,10 @@ public RecordingAvailableCallback mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -380,10 +379,10 @@ public RecordingAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -399,10 +398,10 @@ public RecordingAvailableCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -418,10 +417,10 @@ public RecordingAvailableCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -437,10 +436,10 @@ public RecordingAvailableCallback duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -456,10 +455,10 @@ public RecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -475,10 +474,10 @@ public RecordingAvailableCallback channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -494,10 +493,10 @@ public RecordingAvailableCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -513,10 +512,10 @@ public RecordingAvailableCallback status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -532,10 +531,10 @@ public RecordingAvailableCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -551,10 +550,10 @@ public RecordingAvailableCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -736,12 +735,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordingAvailableCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RecordingAvailableCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RecordingAvailableCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -876,22 +875,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RecordingAvailableCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordingAvailableCallback - * @throws IOException if the JSON string is invalid with respect to RecordingAvailableCallback - */ + /** + * Create an instance of RecordingAvailableCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of RecordingAvailableCallback + * @throws IOException if the JSON string is invalid with respect to RecordingAvailableCallback + */ public static RecordingAvailableCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RecordingAvailableCallback.class); } - /** - * Convert an instance of RecordingAvailableCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RecordingAvailableCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java index 92fd8347..fa2d093e 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * The Record Complete event is sent after a <Record> verb has executed if the call is still active. The BXML returned by this callback is executed next. When the recording is available for download, a Recording Available event will be sent. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecordingCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -152,10 +151,10 @@ public RecordingCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -171,10 +170,10 @@ public RecordingCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -190,10 +189,10 @@ public RecordingCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -209,10 +208,10 @@ public RecordingCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -228,10 +227,10 @@ public RecordingCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -247,10 +246,10 @@ public RecordingCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -266,10 +265,10 @@ public RecordingCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -285,10 +284,10 @@ public RecordingCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -304,10 +303,10 @@ public RecordingCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -323,10 +322,10 @@ public RecordingCompleteCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -342,10 +341,10 @@ public RecordingCompleteCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -361,10 +360,10 @@ public RecordingCompleteCallback mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -380,10 +379,10 @@ public RecordingCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -399,10 +398,10 @@ public RecordingCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -418,10 +417,10 @@ public RecordingCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -437,10 +436,10 @@ public RecordingCompleteCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -456,10 +455,10 @@ public RecordingCompleteCallback duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -475,10 +474,10 @@ public RecordingCompleteCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -494,10 +493,10 @@ public RecordingCompleteCallback channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -513,10 +512,10 @@ public RecordingCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -532,10 +531,10 @@ public RecordingCompleteCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -551,10 +550,10 @@ public RecordingCompleteCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -736,12 +735,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordingCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RecordingCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RecordingCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -873,22 +872,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RecordingCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordingCompleteCallback - * @throws IOException if the JSON string is invalid with respect to RecordingCompleteCallback - */ + /** + * Create an instance of RecordingCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of RecordingCompleteCallback + * @throws IOException if the JSON string is invalid with respect to RecordingCompleteCallback + */ public static RecordingCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RecordingCompleteCallback.class); } - /** - * Convert an instance of RecordingCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RecordingCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java index 6ef1583f..acdbda08 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * If the recording was transcribed, metadata about the transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecordingTranscriptionMetadata { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -77,10 +76,10 @@ public RecordingTranscriptionMetadata id(String id) { return this; } - /** + /** * The unique transcription ID * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; @@ -96,10 +95,10 @@ public RecordingTranscriptionMetadata status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -115,10 +114,10 @@ public RecordingTranscriptionMetadata completedTime(OffsetDateTime completedTime return this; } - /** + /** * The time that the transcription was completed * @return completedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCompletedTime() { return completedTime; @@ -134,10 +133,10 @@ public RecordingTranscriptionMetadata url(URI url) { return this; } - /** + /** * The URL of the [transcription](#operation/getCallTranscription) * @return url - **/ + */ @javax.annotation.Nullable public URI getUrl() { return url; @@ -254,12 +253,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordingTranscriptionMetadata - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RecordingTranscriptionMetadata + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RecordingTranscriptionMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -350,22 +349,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RecordingTranscriptionMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordingTranscriptionMetadata - * @throws IOException if the JSON string is invalid with respect to RecordingTranscriptionMetadata - */ + /** + * Create an instance of RecordingTranscriptionMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of RecordingTranscriptionMetadata + * @throws IOException if the JSON string is invalid with respect to RecordingTranscriptionMetadata + */ public static RecordingTranscriptionMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RecordingTranscriptionMetadata.class); } - /** - * Convert an instance of RecordingTranscriptionMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RecordingTranscriptionMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java index 96087470..39c509bf 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * RecordingTranscriptions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecordingTranscriptions { public static final String SERIALIZED_NAME_TRANSCRIPTS = "transcripts"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTS) @@ -74,10 +73,10 @@ public RecordingTranscriptions addTranscriptsItem(Transcription transcriptsItem) return this; } - /** + /** * Get transcripts * @return transcripts - **/ + */ @javax.annotation.Nullable public List getTranscripts() { return transcripts; @@ -185,12 +184,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordingTranscriptions - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RecordingTranscriptions + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RecordingTranscriptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +285,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RecordingTranscriptions given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordingTranscriptions - * @throws IOException if the JSON string is invalid with respect to RecordingTranscriptions - */ + /** + * Create an instance of RecordingTranscriptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of RecordingTranscriptions + * @throws IOException if the JSON string is invalid with respect to RecordingTranscriptions + */ public static RecordingTranscriptions fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RecordingTranscriptions.class); } - /** - * Convert an instance of RecordingTranscriptions to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RecordingTranscriptions to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java index fbd94765..3940325d 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The Redirect event is fired when a <Redirect> verb is executed. Its purpose is to get the next set of verbs from the calling application. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -127,10 +126,10 @@ public RedirectCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -146,10 +145,10 @@ public RedirectCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -165,10 +164,10 @@ public RedirectCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -184,10 +183,10 @@ public RedirectCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -203,10 +202,10 @@ public RedirectCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -222,10 +221,10 @@ public RedirectCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -241,10 +240,10 @@ public RedirectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -260,10 +259,10 @@ public RedirectCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -279,10 +278,10 @@ public RedirectCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -298,10 +297,10 @@ public RedirectCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -317,10 +316,10 @@ public RedirectCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -336,10 +335,10 @@ public RedirectCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -355,10 +354,10 @@ public RedirectCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -374,10 +373,10 @@ public RedirectCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -393,10 +392,10 @@ public RedirectCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -412,10 +411,10 @@ public RedirectCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -579,12 +578,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RedirectCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RedirectCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RedirectCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -703,22 +702,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RedirectCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of RedirectCallback - * @throws IOException if the JSON string is invalid with respect to RedirectCallback - */ + /** + * Create an instance of RedirectCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of RedirectCallback + * @throws IOException if the JSON string is invalid with respect to RedirectCallback + */ public static RedirectCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RedirectCallback.class); } - /** - * Convert an instance of RedirectCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RedirectCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/StirShaken.java b/src/main/java/com/bandwidth/sdk/model/StirShaken.java index ce8dc501..7763ec87 100644 --- a/src/main/java/com/bandwidth/sdk/model/StirShaken.java +++ b/src/main/java/com/bandwidth/sdk/model/StirShaken.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * StirShaken */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StirShaken { public static final String SERIALIZED_NAME_VERSTAT = "verstat"; @SerializedName(SERIALIZED_NAME_VERSTAT) @@ -71,10 +70,10 @@ public StirShaken verstat(String verstat) { return this; } - /** + /** * (optional) The verification status indicating whether the verification was successful or not. Possible values are TN-Verification-Passed and TN-Verification-Failed. * @return verstat - **/ + */ @javax.annotation.Nullable public String getVerstat() { return verstat; @@ -90,10 +89,10 @@ public StirShaken attestationIndicator(String attestationIndicator) { return this; } - /** + /** * (optional) The attestation level verified by Bandwidth. Possible values are A (full), B (partial) or C (gateway). * @return attestationIndicator - **/ + */ @javax.annotation.Nullable public String getAttestationIndicator() { return attestationIndicator; @@ -109,10 +108,10 @@ public StirShaken originatingId(String originatingId) { return this; } - /** + /** * (optional) A unique origination identifier. * @return originatingId - **/ + */ @javax.annotation.Nullable public String getOriginatingId() { return originatingId; @@ -226,12 +225,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to StirShaken - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to StirShaken + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StirShaken.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -322,22 +321,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of StirShaken given an JSON string - * - * @param jsonString JSON string - * @return An instance of StirShaken - * @throws IOException if the JSON string is invalid with respect to StirShaken - */ + /** + * Create an instance of StirShaken given an JSON string + * + * @param jsonString JSON string + * @return An instance of StirShaken + * @throws IOException if the JSON string is invalid with respect to StirShaken + */ public static StirShaken fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, StirShaken.class); } - /** - * Convert an instance of StirShaken to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of StirShaken to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Tag.java b/src/main/java/com/bandwidth/sdk/model/Tag.java index 0607f53c..37978c6f 100644 --- a/src/main/java/com/bandwidth/sdk/model/Tag.java +++ b/src/main/java/com/bandwidth/sdk/model/Tag.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Tag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Tag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -67,10 +66,10 @@ public Tag key(String key) { return this; } - /** + /** * Get key * @return key - **/ + */ @javax.annotation.Nullable public String getKey() { return key; @@ -86,10 +85,10 @@ public Tag value(String value) { return this; } - /** + /** * Get value * @return value - **/ + */ @javax.annotation.Nullable public String getValue() { return value; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Tag - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Tag + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Tag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Tag given an JSON string - * - * @param jsonString JSON string - * @return An instance of Tag - * @throws IOException if the JSON string is invalid with respect to Tag - */ + /** + * Create an instance of Tag given an JSON string + * + * @param jsonString JSON string + * @return An instance of Tag + * @throws IOException if the JSON string is invalid with respect to Tag + */ public static Tag fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Tag.class); } - /** - * Convert an instance of Tag to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Tag to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java index 8737295b..a18e1f7b 100644 --- a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * TnLookupRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TnLookupRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -63,10 +62,10 @@ public TnLookupRequestError message(String message) { return this; } - /** + /** * A description of what validation error occurred. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TnLookupRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TnLookupRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TnLookupRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TnLookupRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of TnLookupRequestError - * @throws IOException if the JSON string is invalid with respect to TnLookupRequestError - */ + /** + * Create an instance of TnLookupRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of TnLookupRequestError + * @throws IOException if the JSON string is invalid with respect to TnLookupRequestError + */ public static TnLookupRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TnLookupRequestError.class); } - /** - * Convert an instance of TnLookupRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TnLookupRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java index 4bcf208f..cfc9fdff 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * TranscribeRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TranscribeRecording { public static final String SERIALIZED_NAME_CALLBACK_URL = "callbackUrl"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) @@ -90,10 +89,10 @@ public TranscribeRecording callbackUrl(URI callbackUrl) { return this; } - /** + /** * The URL to send the [TranscriptionAvailable](/docs/voice/webhooks/transcriptionAvailable) event to. You should not include sensitive or personally-identifiable information in the callbackUrl field! Always use the proper username and password fields for authorization. * @return callbackUrl - **/ + */ @javax.annotation.Nullable public URI getCallbackUrl() { return callbackUrl; @@ -109,10 +108,10 @@ public TranscribeRecording callbackMethod(CallbackMethodEnum callbackMethod) { return this; } - /** + /** * Get callbackMethod * @return callbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getCallbackMethod() { return callbackMethod; @@ -128,10 +127,10 @@ public TranscribeRecording username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -147,10 +146,10 @@ public TranscribeRecording password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -166,10 +165,10 @@ public TranscribeRecording tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -185,12 +184,12 @@ public TranscribeRecording callbackTimeout(Double callbackTimeout) { return this; } - /** + /** * This is the timeout (in seconds) to use when delivering the webhook to `callbackUrl`. Can be any numeric value (including decimals) between 1 and 25. * minimum: 1 * maximum: 25 * @return callbackTimeout - **/ + */ @javax.annotation.Nullable public Double getCallbackTimeout() { return callbackTimeout; @@ -206,10 +205,10 @@ public TranscribeRecording detectLanguage(Boolean detectLanguage) { return this; } - /** + /** * A boolean value to indicate that the recording may not be in English, and the transcription service will need to detect the dominant language the recording is in and transcribe accordingly. Current supported languages are English, French, and Spanish. * @return detectLanguage - **/ + */ @javax.annotation.Nullable public Boolean getDetectLanguage() { return detectLanguage; @@ -346,12 +345,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TranscribeRecording - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TranscribeRecording + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TranscribeRecording.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -449,22 +448,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TranscribeRecording given an JSON string - * - * @param jsonString JSON string - * @return An instance of TranscribeRecording - * @throws IOException if the JSON string is invalid with respect to TranscribeRecording - */ + /** + * Create an instance of TranscribeRecording given an JSON string + * + * @param jsonString JSON string + * @return An instance of TranscribeRecording + * @throws IOException if the JSON string is invalid with respect to TranscribeRecording + */ public static TranscribeRecording fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TranscribeRecording.class); } - /** - * Convert an instance of TranscribeRecording to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TranscribeRecording to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Transcription.java b/src/main/java/com/bandwidth/sdk/model/Transcription.java index 69a77729..953dabd7 100644 --- a/src/main/java/com/bandwidth/sdk/model/Transcription.java +++ b/src/main/java/com/bandwidth/sdk/model/Transcription.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Transcription { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -67,10 +66,10 @@ public Transcription text(String text) { return this; } - /** + /** * The transcribed text * @return text - **/ + */ @javax.annotation.Nullable public String getText() { return text; @@ -86,10 +85,10 @@ public Transcription confidence(Double confidence) { return this; } - /** + /** * The confidence on the recognized content, ranging from `0.0` to `1.0` with `1.0` being the highest confidence. * @return confidence - **/ + */ @javax.annotation.Nullable public Double getConfidence() { return confidence; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Transcription - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Transcription + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Transcription.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -290,22 +289,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Transcription given an JSON string - * - * @param jsonString JSON string - * @return An instance of Transcription - * @throws IOException if the JSON string is invalid with respect to Transcription - */ + /** + * Create an instance of Transcription given an JSON string + * + * @param jsonString JSON string + * @return An instance of Transcription + * @throws IOException if the JSON string is invalid with respect to Transcription + */ public static Transcription fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Transcription.class); } - /** - * Convert an instance of Transcription to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Transcription to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java index ad62e343..ad8b1eb9 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,7 +54,7 @@ /** * The Transcription Available event is sent when the recording transcription is available to be downloaded. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TranscriptionAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -149,10 +148,10 @@ public TranscriptionAvailableCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -168,10 +167,10 @@ public TranscriptionAvailableCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -187,10 +186,10 @@ public TranscriptionAvailableCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -206,10 +205,10 @@ public TranscriptionAvailableCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -225,10 +224,10 @@ public TranscriptionAvailableCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -244,10 +243,10 @@ public TranscriptionAvailableCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -263,10 +262,10 @@ public TranscriptionAvailableCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -282,10 +281,10 @@ public TranscriptionAvailableCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -301,10 +300,10 @@ public TranscriptionAvailableCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -320,10 +319,10 @@ public TranscriptionAvailableCallback mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -339,10 +338,10 @@ public TranscriptionAvailableCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -358,10 +357,10 @@ public TranscriptionAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -377,10 +376,10 @@ public TranscriptionAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -396,10 +395,10 @@ public TranscriptionAvailableCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -415,10 +414,10 @@ public TranscriptionAvailableCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -434,10 +433,10 @@ public TranscriptionAvailableCallback duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -453,10 +452,10 @@ public TranscriptionAvailableCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -472,10 +471,10 @@ public TranscriptionAvailableCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -491,10 +490,10 @@ public TranscriptionAvailableCallback transcription(Transcription transcription) return this; } - /** + /** * Get transcription * @return transcription - **/ + */ @javax.annotation.Nullable public Transcription getTranscription() { return transcription; @@ -510,10 +509,10 @@ public TranscriptionAvailableCallback transferCallerId(String transferCallerId) return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -529,10 +528,10 @@ public TranscriptionAvailableCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -711,12 +710,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TranscriptionAvailableCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TranscriptionAvailableCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TranscriptionAvailableCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -852,22 +851,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TranscriptionAvailableCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of TranscriptionAvailableCallback - * @throws IOException if the JSON string is invalid with respect to TranscriptionAvailableCallback - */ + /** + * Create an instance of TranscriptionAvailableCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of TranscriptionAvailableCallback + * @throws IOException if the JSON string is invalid with respect to TranscriptionAvailableCallback + */ public static TranscriptionAvailableCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TranscriptionAvailableCallback.class); } - /** - * Convert an instance of TranscriptionAvailableCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TranscriptionAvailableCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java index d8ced07f..fbec91ff 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * When processing a <Transfer> verb, this event is sent when a called party (B-leg) answers. The event is sent to the endpoint specified in the transferAnswerUrl attribute of the <PhoneNumber> tag that answered. BXML returned by this callback will be executed for the called party only. After all BXML has been executed, the called party will be bridged to the original call. Most BXML verbs are allowed in response to a transferAnswer event, but some are not allowed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TransferAnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -123,10 +122,10 @@ public TransferAnswerCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -142,10 +141,10 @@ public TransferAnswerCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -161,10 +160,10 @@ public TransferAnswerCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -180,10 +179,10 @@ public TransferAnswerCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -199,10 +198,10 @@ public TransferAnswerCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -218,10 +217,10 @@ public TransferAnswerCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -237,10 +236,10 @@ public TransferAnswerCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -256,10 +255,10 @@ public TransferAnswerCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -275,10 +274,10 @@ public TransferAnswerCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -294,10 +293,10 @@ public TransferAnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -313,10 +312,10 @@ public TransferAnswerCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -332,10 +331,10 @@ public TransferAnswerCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -351,10 +350,10 @@ public TransferAnswerCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -370,10 +369,10 @@ public TransferAnswerCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -389,10 +388,10 @@ public TransferAnswerCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -553,12 +552,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TransferAnswerCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TransferAnswerCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TransferAnswerCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -674,22 +673,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TransferAnswerCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferAnswerCallback - * @throws IOException if the JSON string is invalid with respect to TransferAnswerCallback - */ + /** + * Create an instance of TransferAnswerCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferAnswerCallback + * @throws IOException if the JSON string is invalid with respect to TransferAnswerCallback + */ public static TransferAnswerCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TransferAnswerCallback.class); } - /** - * Convert an instance of TransferAnswerCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TransferAnswerCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java index bdabf015..b71cf0bc 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * This event is sent to the transferCompleteUrl of the A-leg's <Transfer> verb when the transferred call (B-leg) completes. In a simultaneous ringing scenario, only one B-leg succeeds and this event corresponds to that successful leg. If none of the calls were answered, the transferComplete event corresponds to one of the legs. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TransferCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -135,10 +134,10 @@ public TransferCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -154,10 +153,10 @@ public TransferCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -173,10 +172,10 @@ public TransferCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -192,10 +191,10 @@ public TransferCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -211,10 +210,10 @@ public TransferCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -230,10 +229,10 @@ public TransferCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -249,10 +248,10 @@ public TransferCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -268,10 +267,10 @@ public TransferCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -287,10 +286,10 @@ public TransferCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -306,10 +305,10 @@ public TransferCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -325,10 +324,10 @@ public TransferCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -344,10 +343,10 @@ public TransferCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -363,10 +362,10 @@ public TransferCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -382,10 +381,10 @@ public TransferCompleteCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -401,10 +400,10 @@ public TransferCompleteCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -420,10 +419,10 @@ public TransferCompleteCallback cause(String cause) { return this; } - /** + /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. * @return cause - **/ + */ @javax.annotation.Nullable public String getCause() { return cause; @@ -439,10 +438,10 @@ public TransferCompleteCallback errorMessage(String errorMessage) { return this; } - /** + /** * Text explaining the reason that caused the call to fail in case of errors. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -458,10 +457,10 @@ public TransferCompleteCallback errorId(String errorId) { return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -631,12 +630,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TransferCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TransferCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TransferCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -761,22 +760,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TransferCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferCompleteCallback - * @throws IOException if the JSON string is invalid with respect to TransferCompleteCallback - */ + /** + * Create an instance of TransferCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferCompleteCallback + * @throws IOException if the JSON string is invalid with respect to TransferCompleteCallback + */ public static TransferCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TransferCompleteCallback.class); } - /** - * Convert an instance of TransferCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TransferCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java index dec8165b..7adddbe2 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * This event is sent to the transferDisconnectUrl of each <PhoneNumber> tag when its respective call leg ends for any reason. The event is sent in the normal case, when the transferred leg is answered and later hung up, but is also sent if the new leg was never answered in the first place, if it was rejected, and if the original call leg hung up before the transferred leg. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TransferDisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -143,10 +142,10 @@ public TransferDisconnectCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -162,10 +161,10 @@ public TransferDisconnectCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -181,10 +180,10 @@ public TransferDisconnectCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -200,10 +199,10 @@ public TransferDisconnectCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -219,10 +218,10 @@ public TransferDisconnectCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -238,10 +237,10 @@ public TransferDisconnectCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -257,10 +256,10 @@ public TransferDisconnectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -276,10 +275,10 @@ public TransferDisconnectCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -295,10 +294,10 @@ public TransferDisconnectCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -314,10 +313,10 @@ public TransferDisconnectCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -333,10 +332,10 @@ public TransferDisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -352,10 +351,10 @@ public TransferDisconnectCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -371,10 +370,10 @@ public TransferDisconnectCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -390,10 +389,10 @@ public TransferDisconnectCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -409,10 +408,10 @@ public TransferDisconnectCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -428,10 +427,10 @@ public TransferDisconnectCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -447,10 +446,10 @@ public TransferDisconnectCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -466,10 +465,10 @@ public TransferDisconnectCallback cause(String cause) { return this; } - /** + /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. * @return cause - **/ + */ @javax.annotation.Nullable public String getCause() { return cause; @@ -485,10 +484,10 @@ public TransferDisconnectCallback errorMessage(String errorMessage) { return this; } - /** + /** * Text explaining the reason that caused the call to fail in case of errors. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -504,10 +503,10 @@ public TransferDisconnectCallback errorId(String errorId) { return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -683,12 +682,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TransferDisconnectCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TransferDisconnectCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TransferDisconnectCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -816,22 +815,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TransferDisconnectCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferDisconnectCallback - * @throws IOException if the JSON string is invalid with respect to TransferDisconnectCallback - */ + /** + * Create an instance of TransferDisconnectCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferDisconnectCallback + * @throws IOException if the JSON string is invalid with respect to TransferDisconnectCallback + */ public static TransferDisconnectCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TransferDisconnectCallback.class); } - /** - * Convert an instance of TransferDisconnectCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TransferDisconnectCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java index dd2cc35c..9e0aa12d 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * UpdateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCall { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -103,10 +102,10 @@ public UpdateCall state(CallStateEnum state) { return this; } - /** + /** * Get state * @return state - **/ + */ @javax.annotation.Nullable public CallStateEnum getState() { return state; @@ -122,10 +121,10 @@ public UpdateCall redirectUrl(URI redirectUrl) { return this; } - /** + /** * The URL to send the [Redirect](/docs/voice/bxml/redirect) event to which will provide new BXML. Required if `state` is `active`. Not allowed if `state` is `completed`. * @return redirectUrl - **/ + */ @javax.annotation.Nullable public URI getRedirectUrl() { return redirectUrl; @@ -141,10 +140,10 @@ public UpdateCall redirectMethod(RedirectMethodEnum redirectMethod) { return this; } - /** + /** * Get redirectMethod * @return redirectMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectMethod() { return redirectMethod; @@ -160,10 +159,10 @@ public UpdateCall username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -179,10 +178,10 @@ public UpdateCall password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -198,10 +197,10 @@ public UpdateCall redirectFallbackUrl(URI redirectFallbackUrl) { return this; } - /** + /** * A fallback url which, if provided, will be used to retry the redirect callback delivery in case `redirectUrl` fails to respond. * @return redirectFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getRedirectFallbackUrl() { return redirectFallbackUrl; @@ -217,10 +216,10 @@ public UpdateCall redirectFallbackMethod(RedirectMethodEnum redirectFallbackMeth return this; } - /** + /** * Get redirectFallbackMethod * @return redirectFallbackMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; @@ -236,10 +235,10 @@ public UpdateCall fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -255,10 +254,10 @@ public UpdateCall fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -274,10 +273,10 @@ public UpdateCall tag(String tag) { return this; } - /** + /** * A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -423,12 +422,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateCall - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UpdateCall + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UpdateCall.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -543,22 +542,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UpdateCall given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateCall - * @throws IOException if the JSON string is invalid with respect to UpdateCall - */ + /** + * Create an instance of UpdateCall given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateCall + * @throws IOException if the JSON string is invalid with respect to UpdateCall + */ public static UpdateCall fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateCall.class); } - /** - * Convert an instance of UpdateCall to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UpdateCall to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java index b7eec69c..47c56deb 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +49,7 @@ /** * UpdateCallRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCallRecording { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -64,10 +63,10 @@ public UpdateCallRecording state(RecordingStateEnum state) { return this; } - /** + /** * Get state * @return state - **/ + */ @javax.annotation.Nonnull public RecordingStateEnum getState() { return state; @@ -176,12 +175,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("state"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateCallRecording - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UpdateCallRecording + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UpdateCallRecording.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -272,22 +271,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UpdateCallRecording given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateCallRecording - * @throws IOException if the JSON string is invalid with respect to UpdateCallRecording - */ + /** + * Create an instance of UpdateCallRecording given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateCallRecording + * @throws IOException if the JSON string is invalid with respect to UpdateCallRecording + */ public static UpdateCallRecording fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateCallRecording.class); } - /** - * Convert an instance of UpdateCallRecording to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UpdateCallRecording to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java index 511da727..b8507d78 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * UpdateConference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateConference { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -99,10 +98,10 @@ public UpdateConference status(ConferenceStateEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public ConferenceStateEnum getStatus() { return status; @@ -118,10 +117,10 @@ public UpdateConference redirectUrl(URI redirectUrl) { return this; } - /** + /** * The URL to send the [conferenceRedirect](/docs/voice/webhooks/conferenceRedirect) event which will provide new BXML. Not allowed if `state` is `completed`, but required if `state` is `active`. * @return redirectUrl - **/ + */ @javax.annotation.Nullable public URI getRedirectUrl() { return redirectUrl; @@ -137,10 +136,10 @@ public UpdateConference redirectMethod(RedirectMethodEnum redirectMethod) { return this; } - /** + /** * Get redirectMethod * @return redirectMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectMethod() { return redirectMethod; @@ -156,10 +155,10 @@ public UpdateConference username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -175,10 +174,10 @@ public UpdateConference password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -194,10 +193,10 @@ public UpdateConference redirectFallbackUrl(URI redirectFallbackUrl) { return this; } - /** + /** * A fallback url which, if provided, will be used to retry the `conferenceRedirect` webhook delivery in case `redirectUrl` fails to respond. Not allowed if `state` is `completed`. * @return redirectFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getRedirectFallbackUrl() { return redirectFallbackUrl; @@ -213,10 +212,10 @@ public UpdateConference redirectFallbackMethod(RedirectMethodEnum redirectFallba return this; } - /** + /** * Get redirectFallbackMethod * @return redirectFallbackMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; @@ -232,10 +231,10 @@ public UpdateConference fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -251,10 +250,10 @@ public UpdateConference fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -397,12 +396,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateConference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UpdateConference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UpdateConference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -514,22 +513,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UpdateConference given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateConference - * @throws IOException if the JSON string is invalid with respect to UpdateConference - */ + /** + * Create an instance of UpdateConference given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateConference + * @throws IOException if the JSON string is invalid with respect to UpdateConference + */ public static UpdateConference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateConference.class); } - /** - * Convert an instance of UpdateConference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UpdateConference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java index d80e102f..a7a782cd 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * UpdateConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateConferenceMember { public static final String SERIALIZED_NAME_MUTE = "mute"; @SerializedName(SERIALIZED_NAME_MUTE) @@ -74,10 +73,10 @@ public UpdateConferenceMember mute(Boolean mute) { return this; } - /** + /** * Whether or not this member is currently muted. Members who are muted are still able to hear other participants. Updates this member's mute status. Has no effect if omitted. * @return mute - **/ + */ @javax.annotation.Nullable public Boolean getMute() { return mute; @@ -93,10 +92,10 @@ public UpdateConferenceMember hold(Boolean hold) { return this; } - /** + /** * Whether or not this member is currently on hold. Members who are on hold are not able to hear or speak in the conference. Updates this member's hold status. Has no effect if omitted. * @return hold - **/ + */ @javax.annotation.Nullable public Boolean getHold() { return hold; @@ -120,10 +119,10 @@ public UpdateConferenceMember addCallIdsToCoachItem(String callIdsToCoachItem) { return this; } - /** + /** * If this member had a value set for `callIdsToCoach` in its [Conference](/docs/voice/bxml/conference) verb or this list was added with a previous PUT request to modify the member, this is that list of calls. Modifies the calls that this member is coaching. Has no effect if omitted. See the documentation for the [Conference](/docs/voice/bxml/conference) verb for more details about coaching. Note that this will not add the matching calls to the conference; each call must individually execute a Conference verb to join. * @return callIdsToCoach - **/ + */ @javax.annotation.Nullable public List getCallIdsToCoach() { return callIdsToCoach; @@ -248,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateConferenceMember - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UpdateConferenceMember + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UpdateConferenceMember.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -339,22 +338,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UpdateConferenceMember given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateConferenceMember - * @throws IOException if the JSON string is invalid with respect to UpdateConferenceMember - */ + /** + * Create an instance of UpdateConferenceMember given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateConferenceMember + * @throws IOException if the JSON string is invalid with respect to UpdateConferenceMember + */ public static UpdateConferenceMember fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateConferenceMember.class); } - /** - * Convert an instance of UpdateConferenceMember to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UpdateConferenceMember to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java index 9bf0a02d..85c6988e 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +49,7 @@ /** * VerifyCodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VerifyCodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -76,10 +75,10 @@ public VerifyCodeRequest to(String to) { return this; } - /** + /** * The phone number to send the mfa code to. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -95,10 +94,10 @@ public VerifyCodeRequest scope(String scope) { return this; } - /** + /** * An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to \"2FA\". * @return scope - **/ + */ @javax.annotation.Nullable public String getScope() { return scope; @@ -114,12 +113,12 @@ public VerifyCodeRequest expirationTimeInMinutes(BigDecimal expirationTimeInMinu return this; } - /** + /** * The time period, in minutes, to validate the mfa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively. * minimum: 1 * maximum: 15 * @return expirationTimeInMinutes - **/ + */ @javax.annotation.Nonnull public BigDecimal getExpirationTimeInMinutes() { return expirationTimeInMinutes; @@ -135,10 +134,10 @@ public VerifyCodeRequest code(String code) { return this; } - /** + /** * The generated mfa code to check if valid. * @return code - **/ + */ @javax.annotation.Nonnull public String getCode() { return code; @@ -258,12 +257,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("code"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VerifyCodeRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VerifyCodeRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VerifyCodeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -361,22 +360,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of VerifyCodeRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of VerifyCodeRequest - * @throws IOException if the JSON string is invalid with respect to VerifyCodeRequest - */ + /** + * Create an instance of VerifyCodeRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of VerifyCodeRequest + * @throws IOException if the JSON string is invalid with respect to VerifyCodeRequest + */ public static VerifyCodeRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, VerifyCodeRequest.class); } - /** - * Convert an instance of VerifyCodeRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of VerifyCodeRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java index 397c5e6c..70e59bb8 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * VerifyCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VerifyCodeResponse { public static final String SERIALIZED_NAME_VALID = "valid"; @SerializedName(SERIALIZED_NAME_VALID) @@ -63,10 +62,10 @@ public VerifyCodeResponse valid(Boolean valid) { return this; } - /** + /** * Whether or not the supplied code is valid. * @return valid - **/ + */ @javax.annotation.Nullable public Boolean getValid() { return valid; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VerifyCodeResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VerifyCodeResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VerifyCodeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -261,22 +260,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of VerifyCodeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of VerifyCodeResponse - * @throws IOException if the JSON string is invalid with respect to VerifyCodeResponse - */ + /** + * Create an instance of VerifyCodeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of VerifyCodeResponse + * @throws IOException if the JSON string is invalid with respect to VerifyCodeResponse + */ public static VerifyCodeResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, VerifyCodeResponse.class); } - /** - * Convert an instance of VerifyCodeResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of VerifyCodeResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java index 5d049049..18973b20 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +49,7 @@ /** * VoiceApiError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VoiceApiError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -72,10 +71,10 @@ public VoiceApiError type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nullable public String getType() { return type; @@ -91,10 +90,10 @@ public VoiceApiError description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nullable public String getDescription() { return description; @@ -110,10 +109,10 @@ public VoiceApiError id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; @@ -238,12 +237,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VoiceApiError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VoiceApiError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VoiceApiError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -334,22 +333,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of VoiceApiError given an JSON string - * - * @param jsonString JSON string - * @return An instance of VoiceApiError - * @throws IOException if the JSON string is invalid with respect to VoiceApiError - */ + /** + * Create an instance of VoiceApiError given an JSON string + * + * @param jsonString JSON string + * @return An instance of VoiceApiError + * @throws IOException if the JSON string is invalid with respect to VoiceApiError + */ public static VoiceApiError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, VoiceApiError.class); } - /** - * Convert an instance of VoiceApiError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of VoiceApiError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java index 7976d567..e86b3c3e 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * VoiceCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VoiceCodeResponse { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -63,10 +62,10 @@ public VoiceCodeResponse callId(String callId) { return this; } - /** + /** * Programmable Voice API Call ID. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VoiceCodeResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VoiceCodeResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VoiceCodeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of VoiceCodeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of VoiceCodeResponse - * @throws IOException if the JSON string is invalid with respect to VoiceCodeResponse - */ + /** + * Create an instance of VoiceCodeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of VoiceCodeResponse + * @throws IOException if the JSON string is invalid with respect to VoiceCodeResponse + */ public static VoiceCodeResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, VoiceCodeResponse.class); } - /** - * Convert an instance of VoiceCodeResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of VoiceCodeResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); }