From 595489449e1ac74cfbfb8d9044730a9772b7ba38 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 27 Aug 2024 14:04:58 +0000 Subject: [PATCH 1/5] Generate SDK with OpenAPI Generator Version 7.0.0 --- .openapi-generator/FILES | 103 ++++ .openapi-generator/VERSION | 2 +- README.md | 2 +- api/openapi.yaml | 537 +++++++++--------- bandwidth.yml | 60 +- build.gradle | 16 +- build.sbt | 8 +- docs/AnswerCallback.md | 2 +- docs/BridgeCompleteCallback.md | 2 +- docs/BridgeTargetCompleteCallback.md | 2 +- docs/CallsApi.md | 8 +- docs/ConferenceMember.md | 2 +- docs/ConferencesApi.md | 12 +- docs/DisconnectCallback.md | 2 +- docs/DtmfCallback.md | 2 +- docs/GatherCallback.md | 2 +- docs/InitiateCallback.md | 2 +- docs/MachineDetectionCompleteCallback.md | 2 +- docs/MessagesApi.md | 6 +- docs/RecordingAvailableCallback.md | 2 +- docs/RecordingCompleteCallback.md | 2 +- docs/RecordingsApi.md | 12 +- docs/RedirectCallback.md | 2 +- docs/Region.md | 13 + docs/StatisticsApi.md | 2 +- docs/TranscriptionAvailableCallback.md | 2 +- docs/TranscriptionsApi.md | 6 +- docs/TransferAnswerCallback.md | 2 +- docs/TransferCompleteCallback.md | 2 +- docs/TransferDisconnectCallback.md | 2 +- gradle/wrapper/gradle-wrapper.jar | Bin 43453 -> 59536 bytes gradle/wrapper/gradle-wrapper.properties | 4 +- gradlew | 189 +++--- gradlew.bat | 37 +- openapitools.json | 2 +- .../java/com/bandwidth/sdk/ApiClient.java | 14 - .../java/com/bandwidth/sdk/ApiException.java | 4 +- .../java/com/bandwidth/sdk/Configuration.java | 2 +- src/main/java/com/bandwidth/sdk/JSON.java | 21 +- src/main/java/com/bandwidth/sdk/Pair.java | 2 +- .../bandwidth/sdk/ServerConfiguration.java | 1 - .../com/bandwidth/sdk/ServerVariable.java | 1 - .../java/com/bandwidth/sdk/StringUtil.java | 2 +- .../java/com/bandwidth/sdk/api/CallsApi.java | 32 +- .../com/bandwidth/sdk/api/ConferencesApi.java | 48 +- .../com/bandwidth/sdk/api/MessagesApi.java | 27 +- .../com/bandwidth/sdk/api/RecordingsApi.java | 48 +- .../com/bandwidth/sdk/api/StatisticsApi.java | 8 +- .../bandwidth/sdk/api/TranscriptionsApi.java | 24 +- .../com/bandwidth/sdk/auth/ApiKeyAuth.java | 2 +- .../bandwidth/sdk/auth/HttpBearerAuth.java | 22 +- .../sdk/model/AbstractOpenApiSchema.java | 4 +- .../sdk/model/AccountStatistics.java | 14 +- .../bandwidth/sdk/model/AnswerCallback.java | 51 +- .../sdk/model/BridgeCompleteCallback.java | 55 +- .../model/BridgeTargetCompleteCallback.java | 49 +- .../sdk/model/CallDirectionEnum.java | 6 - .../sdk/model/CallRecordingMetadata.java | 56 +- .../com/bandwidth/sdk/model/CallState.java | 50 +- .../bandwidth/sdk/model/CallStateEnum.java | 6 - .../sdk/model/CallTranscription.java | 26 +- ...CallTranscriptionDetectedLanguageEnum.java | 6 - .../sdk/model/CallTranscriptionMetadata.java | 16 +- .../sdk/model/CallTranscriptionResponse.java | 20 +- .../sdk/model/CallTranscriptionTrackEnum.java | 6 - .../sdk/model/CallbackMethodEnum.java | 6 - .../com/bandwidth/sdk/model/CodeRequest.java | 22 +- .../com/bandwidth/sdk/model/Conference.java | 30 +- .../model/ConferenceCompletedCallback.java | 20 +- .../sdk/model/ConferenceCreatedCallback.java | 20 +- .../bandwidth/sdk/model/ConferenceMember.java | 31 +- .../model/ConferenceMemberExitCallback.java | 26 +- .../model/ConferenceMemberJoinCallback.java | 26 +- .../ConferenceRecordingAvailableCallback.java | 42 +- .../model/ConferenceRecordingMetadata.java | 38 +- .../sdk/model/ConferenceRedirectCallback.java | 20 +- .../sdk/model/ConferenceStateEnum.java | 6 - .../com/bandwidth/sdk/model/CreateCall.java | 64 ++- .../sdk/model/CreateCallResponse.java | 60 +- .../sdk/model/CreateLookupResponse.java | 18 +- .../sdk/model/CreateMessageRequestError.java | 18 +- .../bandwidth/sdk/model/DeferredResult.java | 14 +- .../sdk/model/DisconnectCallback.java | 57 +- .../com/bandwidth/sdk/model/Diversion.java | 24 +- .../com/bandwidth/sdk/model/DtmfCallback.java | 57 +- .../com/bandwidth/sdk/model/FieldError.java | 14 +- .../bandwidth/sdk/model/FileFormatEnum.java | 6 - .../bandwidth/sdk/model/GatherCallback.java | 59 +- .../sdk/model/InboundMessageCallback.java | 20 +- .../model/InboundMessageCallbackMessage.java | 42 +- .../bandwidth/sdk/model/InitiateCallback.java | 47 +- .../sdk/model/ListMessageDirectionEnum.java | 6 - .../bandwidth/sdk/model/ListMessageItem.java | 56 +- .../bandwidth/sdk/model/LookupRequest.java | 12 +- .../com/bandwidth/sdk/model/LookupResult.java | 28 +- .../com/bandwidth/sdk/model/LookupStatus.java | 26 +- .../bandwidth/sdk/model/LookupStatusEnum.java | 6 - .../MachineDetectionCompleteCallback.java | 51 +- .../model/MachineDetectionConfiguration.java | 52 +- .../sdk/model/MachineDetectionModeEnum.java | 6 - .../sdk/model/MachineDetectionResult.java | 14 +- .../java/com/bandwidth/sdk/model/Media.java | 16 +- .../java/com/bandwidth/sdk/model/Message.java | 48 +- .../sdk/model/MessageDeliveredCallback.java | 20 +- .../MessageDeliveredCallbackMessage.java | 42 +- .../sdk/model/MessageDirectionEnum.java | 6 - .../sdk/model/MessageFailedCallback.java | 22 +- .../model/MessageFailedCallbackMessage.java | 40 +- .../bandwidth/sdk/model/MessageRequest.java | 32 +- .../sdk/model/MessageSendingCallback.java | 20 +- .../model/MessageSendingCallbackMessage.java | 38 +- .../sdk/model/MessageStatusEnum.java | 6 - .../bandwidth/sdk/model/MessageTypeEnum.java | 6 - .../com/bandwidth/sdk/model/MessagesList.java | 18 +- .../sdk/model/MessagingCodeResponse.java | 12 +- .../sdk/model/MessagingRequestError.java | 14 +- .../sdk/model/MfaForbiddenRequestError.java | 12 +- .../bandwidth/sdk/model/MfaRequestError.java | 14 +- .../model/MfaUnauthorizedRequestError.java | 12 +- .../com/bandwidth/sdk/model/PageInfo.java | 18 +- .../com/bandwidth/sdk/model/PriorityEnum.java | 6 - .../sdk/model/RecordingAvailableCallback.java | 70 ++- .../sdk/model/RecordingCompleteCallback.java | 70 ++- .../sdk/model/RecordingStateEnum.java | 6 - .../model/RecordingTranscriptionMetadata.java | 18 +- .../sdk/model/RecordingTranscriptions.java | 14 +- .../bandwidth/sdk/model/RedirectCallback.java | 55 +- .../sdk/model/RedirectMethodEnum.java | 6 - .../java/com/bandwidth/sdk/model/Region.java | 72 +++ .../com/bandwidth/sdk/model/StirShaken.java | 16 +- .../java/com/bandwidth/sdk/model/Tag.java | 14 +- .../sdk/model/TnLookupRequestError.java | 12 +- .../sdk/model/TranscribeRecording.java | 28 +- .../bandwidth/sdk/model/Transcription.java | 14 +- .../model/TranscriptionAvailableCallback.java | 68 ++- .../sdk/model/TransferAnswerCallback.java | 53 +- .../sdk/model/TransferCompleteCallback.java | 59 +- .../sdk/model/TransferDisconnectCallback.java | 63 +- .../com/bandwidth/sdk/model/UpdateCall.java | 42 +- .../sdk/model/UpdateCallRecording.java | 14 +- .../bandwidth/sdk/model/UpdateConference.java | 40 +- .../sdk/model/UpdateConferenceMember.java | 16 +- .../sdk/model/VerifyCodeRequest.java | 18 +- .../sdk/model/VerifyCodeResponse.java | 12 +- .../bandwidth/sdk/model/VoiceApiError.java | 16 +- .../sdk/model/VoiceCodeResponse.java | 12 +- .../com/bandwidth/sdk/api/CallsApiTest.java | 121 ++++ .../bandwidth/sdk/api/ConferencesApiTest.java | 186 ++++++ .../com/bandwidth/sdk/api/MediaApiTest.java | 99 ++++ .../bandwidth/sdk/api/MessagesApiTest.java | 87 +++ .../com/bandwidth/sdk/api/MfaApiTest.java | 86 +++ .../sdk/api/PhoneNumberLookupApiTest.java | 67 +++ .../bandwidth/sdk/api/RecordingsApiTest.java | 201 +++++++ .../bandwidth/sdk/api/StatisticsApiTest.java | 49 ++ .../sdk/api/TranscriptionsApiTest.java | 83 +++ .../sdk/model/AccountStatisticsTest.java | 56 ++ .../sdk/model/AnswerCallbackTest.java | 157 +++++ .../sdk/model/BridgeCompleteCallbackTest.java | 172 ++++++ .../BridgeTargetCompleteCallbackTest.java | 148 +++++ .../sdk/model/CallDirectionEnumTest.java | 32 ++ .../sdk/model/CallRecordingMetadataTest.java | 198 +++++++ .../sdk/model/CallStateEnumTest.java | 32 ++ .../bandwidth/sdk/model/CallStateTest.java | 189 ++++++ ...TranscriptionDetectedLanguageEnumTest.java | 32 ++ .../model/CallTranscriptionMetadataTest.java | 64 +++ .../model/CallTranscriptionResponseTest.java | 75 +++ .../sdk/model/CallTranscriptionTest.java | 74 +++ .../model/CallTranscriptionTrackEnumTest.java | 32 ++ .../sdk/model/CallbackMethodEnumTest.java | 32 ++ .../bandwidth/sdk/model/CodeRequestTest.java | 88 +++ .../ConferenceCompletedCallbackTest.java | 82 +++ .../model/ConferenceCreatedCallbackTest.java | 82 +++ .../ConferenceMemberExitCallbackTest.java | 106 ++++ .../ConferenceMemberJoinCallbackTest.java | 106 ++++ .../sdk/model/ConferenceMemberTest.java | 92 +++ ...ferenceRecordingAvailableCallbackTest.java | 156 +++++ .../ConferenceRecordingMetadataTest.java | 140 +++++ .../model/ConferenceRedirectCallbackTest.java | 82 +++ .../sdk/model/ConferenceStateEnumTest.java | 32 ++ .../bandwidth/sdk/model/ConferenceTest.java | 111 ++++ .../sdk/model/CreateCallResponseTest.java | 212 +++++++ .../bandwidth/sdk/model/CreateCallTest.java | 212 +++++++ .../sdk/model/CreateLookupResponseTest.java | 57 ++ .../model/CreateMessageRequestErrorTest.java | 67 +++ .../sdk/model/DeferredResultTest.java | 56 ++ .../sdk/model/DisconnectCallbackTest.java | 180 ++++++ .../bandwidth/sdk/model/DiversionTest.java | 96 ++++ .../bandwidth/sdk/model/DtmfCallbackTest.java | 180 ++++++ .../bandwidth/sdk/model/FieldErrorTest.java | 56 ++ .../sdk/model/FileFormatEnumTest.java | 32 ++ .../sdk/model/GatherCallbackTest.java | 188 ++++++ .../InboundMessageCallbackMessageTest.java | 144 +++++ .../sdk/model/InboundMessageCallbackTest.java | 82 +++ .../sdk/model/InitiateCallbackTest.java | 141 +++++ .../model/ListMessageDirectionEnumTest.java | 32 ++ .../sdk/model/ListMessageItemTest.java | 181 ++++++ .../sdk/model/LookupRequestTest.java | 50 ++ .../bandwidth/sdk/model/LookupResultTest.java | 112 ++++ .../sdk/model/LookupStatusEnumTest.java | 32 ++ .../bandwidth/sdk/model/LookupStatusTest.java | 76 +++ .../MachineDetectionCompleteCallbackTest.java | 157 +++++ .../MachineDetectionConfigurationTest.java | 164 ++++++ .../model/MachineDetectionModeEnumTest.java | 32 ++ .../sdk/model/MachineDetectionResultTest.java | 56 ++ .../com/bandwidth/sdk/model/MediaTest.java | 64 +++ .../MessageDeliveredCallbackMessageTest.java | 144 +++++ .../model/MessageDeliveredCallbackTest.java | 82 +++ .../sdk/model/MessageDirectionEnumTest.java | 32 ++ .../MessageFailedCallbackMessageTest.java | 144 +++++ .../sdk/model/MessageFailedCallbackTest.java | 90 +++ .../sdk/model/MessageRequestTest.java | 111 ++++ .../MessageSendingCallbackMessageTest.java | 144 +++++ .../sdk/model/MessageSendingCallbackTest.java | 82 +++ .../sdk/model/MessageStatusEnumTest.java | 32 ++ .../com/bandwidth/sdk/model/MessageTest.java | 149 +++++ .../sdk/model/MessageTypeEnumTest.java | 32 ++ .../bandwidth/sdk/model/MessagesListTest.java | 68 +++ .../sdk/model/MessagingCodeResponseTest.java | 48 ++ .../sdk/model/MessagingRequestErrorTest.java | 56 ++ .../model/MfaForbiddenRequestErrorTest.java | 48 ++ .../sdk/model/MfaRequestErrorTest.java | 56 ++ .../MfaUnauthorizedRequestErrorTest.java | 48 ++ .../com/bandwidth/sdk/model/PageInfoTest.java | 72 +++ .../bandwidth/sdk/model/PriorityEnumTest.java | 32 ++ .../model/RecordingAvailableCallbackTest.java | 221 +++++++ .../model/RecordingCompleteCallbackTest.java | 221 +++++++ .../sdk/model/RecordingStateEnumTest.java | 32 ++ .../RecordingTranscriptionMetadataTest.java | 74 +++ .../model/RecordingTranscriptionsTest.java | 51 ++ .../sdk/model/RedirectCallbackTest.java | 172 ++++++ .../sdk/model/RedirectMethodEnumTest.java | 32 ++ .../com/bandwidth/sdk/model/RegionTest.java | 32 ++ .../bandwidth/sdk/model/StirShakenTest.java | 64 +++ .../java/com/bandwidth/sdk/model/TagTest.java | 56 ++ .../sdk/model/TnLookupRequestErrorTest.java | 48 ++ .../sdk/model/TranscribeRecordingTest.java | 99 ++++ .../TranscriptionAvailableCallbackTest.java | 214 +++++++ .../sdk/model/TranscriptionTest.java | 56 ++ .../sdk/model/TransferAnswerCallbackTest.java | 164 ++++++ .../model/TransferCompleteCallbackTest.java | 188 ++++++ .../model/TransferDisconnectCallbackTest.java | 204 +++++++ .../sdk/model/UpdateCallRecordingTest.java | 49 ++ .../bandwidth/sdk/model/UpdateCallTest.java | 124 ++++ .../sdk/model/UpdateConferenceMemberTest.java | 67 +++ .../sdk/model/UpdateConferenceTest.java | 116 ++++ .../sdk/model/VerifyCodeRequestTest.java | 73 +++ .../sdk/model/VerifyCodeResponseTest.java | 48 ++ .../sdk/model/VoiceApiErrorTest.java | 65 +++ .../sdk/model/VoiceCodeResponseTest.java | 48 ++ 249 files changed, 12372 insertions(+), 1552 deletions(-) create mode 100644 docs/Region.md create mode 100644 src/main/java/com/bandwidth/sdk/model/Region.java create mode 100644 src/test/java/com/bandwidth/sdk/api/CallsApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/api/MediaApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/api/MfaApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallStateTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CreateCallTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/DiversionTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/LookupResultTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MediaTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessagesListTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/PageInfoTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/RegionTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/StirShakenTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/TagTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java create mode 100644 src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 87bdbb9a..09e76395 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -86,6 +86,7 @@ docs/RecordingTranscriptions.md docs/RecordingsApi.md docs/RedirectCallback.md docs/RedirectMethodEnum.md +docs/Region.md docs/StatisticsApi.md docs/StirShaken.md docs/Tag.md @@ -216,6 +217,7 @@ src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java src/main/java/com/bandwidth/sdk/model/RedirectCallback.java src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java +src/main/java/com/bandwidth/sdk/model/Region.java src/main/java/com/bandwidth/sdk/model/StirShaken.java src/main/java/com/bandwidth/sdk/model/Tag.java src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java @@ -233,5 +235,106 @@ src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java src/main/java/com/bandwidth/sdk/model/VoiceApiError.java src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java +src/test/java/com/bandwidth/sdk/api/CallsApiTest.java +src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java +src/test/java/com/bandwidth/sdk/api/MediaApiTest.java +src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java +src/test/java/com/bandwidth/sdk/api/MfaApiTest.java +src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java +src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java +src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java +src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java +src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java +src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java +src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java +src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java +src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java +src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java +src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java +src/test/java/com/bandwidth/sdk/model/CallStateTest.java src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java +src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java +src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java +src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java +src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java +src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java +src/test/java/com/bandwidth/sdk/model/ConferenceTest.java +src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java +src/test/java/com/bandwidth/sdk/model/CreateCallTest.java +src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java +src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java +src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java +src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java +src/test/java/com/bandwidth/sdk/model/DiversionTest.java +src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java +src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java +src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java +src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java +src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java +src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java +src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java +src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java +src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java +src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java +src/test/java/com/bandwidth/sdk/model/LookupResultTest.java +src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java +src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java +src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java +src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java +src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java +src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java +src/test/java/com/bandwidth/sdk/model/MediaTest.java +src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java +src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java +src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java +src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java +src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java +src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java +src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java +src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java +src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java +src/test/java/com/bandwidth/sdk/model/MessageTest.java +src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java +src/test/java/com/bandwidth/sdk/model/MessagesListTest.java +src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java +src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java +src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java +src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java +src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java +src/test/java/com/bandwidth/sdk/model/PageInfoTest.java +src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java +src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java +src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java +src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java +src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java +src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java +src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java +src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java +src/test/java/com/bandwidth/sdk/model/RegionTest.java +src/test/java/com/bandwidth/sdk/model/StirShakenTest.java +src/test/java/com/bandwidth/sdk/model/TagTest.java +src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java +src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java +src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java +src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java +src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java +src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java +src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java +src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java +src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java +src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java +src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java +src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java +src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java +src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java +src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 93c8ddab..41225218 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.6.0 +7.0.0 \ No newline at end of file diff --git a/README.md b/README.md index 7a2b1594..ddb7c71f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ Bandwidth - API version: 1.0.0 - - Generator version: 7.6.0 Bandwidth's Communication APIs @@ -241,6 +240,7 @@ Class | Method | HTTP request | Description - [RecordingTranscriptions](docs/RecordingTranscriptions.md) - [RedirectCallback](docs/RedirectCallback.md) - [RedirectMethodEnum](docs/RedirectMethodEnum.md) + - [Region](docs/Region.md) - [StirShaken](docs/StirShaken.md) - [Tag](docs/Tag.md) - [TnLookupRequestError](docs/TnLookupRequestError.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 4f239468..4db0e754 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -112,8 +112,7 @@ paths: summary: List Media tags: - Media - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://messaging.bandwidth.com/api/v2 @@ -199,8 +198,7 @@ paths: summary: Delete Media tags: - Media - x-accepts: - - application/json + x-accepts: application/json get: description: Downloads a media file you previously uploaded. operationId: getMedia @@ -283,9 +281,7 @@ paths: summary: Get Media tags: - Media - x-accepts: - - application/json - - application/octet-stream + x-accepts: application/json put: description: |- Upload a file. You may add headers to the request in order to provide some control to your media file. @@ -389,8 +385,7 @@ paths: tags: - Media x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://messaging.bandwidth.com/api/v2 @@ -561,6 +556,14 @@ paths: schema: type: boolean style: form + - description: The region to search in. One of US or EU. + explode: true + in: query + name: region + required: false + schema: + $ref: '#/components/schemas/region' + style: form responses: "200": content: @@ -613,8 +616,7 @@ paths: summary: List Messages tags: - Messages - x-accepts: - - application/json + x-accepts: application/json post: callbacks: inboundCallback: @@ -695,8 +697,7 @@ paths: tags: - Messages x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://messaging.bandwidth.com/api/v2 @@ -796,7 +797,7 @@ paths: items: $ref: '#/components/schemas/callState' type: array - description: Calls retrieved successfully + description: OK "400": content: application/json: @@ -879,8 +880,7 @@ paths: summary: Get Calls tags: - Calls - x-accepts: - - application/json + x-accepts: application/json post: description: |- Creates an outbound phone call. @@ -910,7 +910,7 @@ paths: $ref: '#/components/examples/createCallResponseExample' schema: $ref: '#/components/schemas/createCallResponse' - description: Call Successfully Created + description: Created headers: Location: description: The URL for further interactions with this call @@ -1001,8 +1001,7 @@ paths: tags: - Calls x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1038,7 +1037,7 @@ paths: application/json: schema: $ref: '#/components/schemas/callState' - description: Call found + description: OK "400": content: application/json: @@ -1121,8 +1120,7 @@ paths: summary: Get Call State Information tags: - Calls - x-accepts: - - application/json + x-accepts: application/json post: description: Interrupts and redirects a call to a different URL that should return a BXML document. @@ -1150,7 +1148,7 @@ paths: $ref: '#/components/requestBodies/updateCallRequest' responses: "200": - description: Call was successfully modified. + description: OK "400": content: application/json: @@ -1243,8 +1241,7 @@ paths: tags: - Calls x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1368,8 +1365,7 @@ paths: tags: - Calls x-content-type: application/xml - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1453,7 +1449,7 @@ paths: items: $ref: '#/components/schemas/conference' type: array - description: Conferences retrieved successfully + description: OK "400": content: application/json: @@ -1536,8 +1532,7 @@ paths: summary: Get Conferences tags: - Conferences - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1570,7 +1565,7 @@ paths: application/json: schema: $ref: '#/components/schemas/conference' - description: Conferences retrieved successfully + description: OK "400": content: application/json: @@ -1653,8 +1648,7 @@ paths: summary: Get Conference Information tags: - Conferences - x-accepts: - - application/json + x-accepts: application/json post: description: Update the conference state. operationId: updateConference @@ -1765,8 +1759,7 @@ paths: tags: - Conferences x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1881,8 +1874,7 @@ paths: tags: - Conferences x-content-type: application/xml - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1924,7 +1916,7 @@ paths: application/json: schema: $ref: '#/components/schemas/conferenceMember' - description: Conference member found + description: OK "400": content: application/json: @@ -2007,8 +1999,7 @@ paths: summary: Get Conference Member tags: - Conferences - x-accepts: - - application/json + x-accepts: application/json put: description: Updates settings for a particular conference member. operationId: updateConferenceMember @@ -2128,8 +2119,7 @@ paths: tags: - Conferences x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2165,7 +2155,7 @@ paths: items: $ref: '#/components/schemas/conferenceRecordingMetadata' type: array - description: Conference recordings retrieved successfully + description: OK "400": content: application/json: @@ -2248,8 +2238,7 @@ paths: summary: Get Conference Recordings tags: - Conferences - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2291,7 +2280,7 @@ paths: application/json: schema: $ref: '#/components/schemas/conferenceRecordingMetadata' - description: Conference recording found + description: OK "400": content: application/json: @@ -2374,8 +2363,7 @@ paths: summary: Get Conference Recording Information tags: - Conferences - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2422,7 +2410,7 @@ paths: schema: format: binary type: string - description: Media found + description: OK "400": content: application/json: @@ -2505,10 +2493,7 @@ paths: summary: Download Conference Recording tags: - Conferences - x-accepts: - - application/json - - audio/mpeg - - audio/vnd.wave + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2576,7 +2561,7 @@ paths: items: $ref: '#/components/schemas/callRecordingMetadata' type: array - description: Recordings retrieved successfully + description: OK "400": content: application/json: @@ -2659,8 +2644,7 @@ paths: summary: Get Call Recordings tags: - Recordings - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2691,7 +2675,7 @@ paths: $ref: '#/components/requestBodies/updateCallRecordingRequest' responses: "200": - description: Recording state was successfully modified. + description: OK "400": content: application/json: @@ -2775,8 +2759,7 @@ paths: tags: - Recordings x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2813,7 +2796,7 @@ paths: items: $ref: '#/components/schemas/callRecordingMetadata' type: array - description: Recordings retrieved successfully + description: OK "400": content: application/json: @@ -2896,8 +2879,7 @@ paths: summary: List Call Recordings tags: - Recordings - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3021,8 +3003,7 @@ paths: summary: Delete Recording tags: - Recordings - x-accepts: - - application/json + x-accepts: application/json get: description: Returns metadata for the specified recording. operationId: getCallRecording @@ -3060,7 +3041,7 @@ paths: application/json: schema: $ref: '#/components/schemas/callRecordingMetadata' - description: Recording found + description: OK "400": content: application/json: @@ -3143,8 +3124,7 @@ paths: summary: Get Call Recording tags: - Recordings - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3265,8 +3245,7 @@ paths: summary: Delete Recording Media tags: - Recordings - x-accepts: - - application/json + x-accepts: application/json get: description: Downloads the specified recording. operationId: downloadCallRecording @@ -3309,7 +3288,7 @@ paths: schema: format: binary type: string - description: Media found + description: OK "400": content: application/json: @@ -3392,10 +3371,7 @@ paths: summary: Download Recording tags: - Recordings - x-accepts: - - application/json - - audio/mpeg - - audio/vnd.wave + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3519,8 +3495,7 @@ paths: summary: Delete Transcription tags: - Recordings - x-accepts: - - application/json + x-accepts: application/json get: description: |- Downloads the specified transcription. @@ -3562,7 +3537,7 @@ paths: application/json: schema: $ref: '#/components/schemas/recordingTranscriptions' - description: Transcription found. + description: OK "400": content: application/json: @@ -3645,8 +3620,7 @@ paths: summary: Get Transcription tags: - Recordings - x-accepts: - - application/json + x-accepts: application/json post: description: |- Generate the transcription for a specific recording. Transcription @@ -3769,8 +3743,7 @@ paths: tags: - Recordings x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3794,7 +3767,7 @@ paths: application/json: schema: $ref: '#/components/schemas/accountStatistics' - description: Statistics Found + description: OK "400": content: application/json: @@ -3877,8 +3850,7 @@ paths: summary: Get Account Statistics tags: - Statistics - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3911,7 +3883,7 @@ paths: application/json: schema: $ref: '#/components/schemas/callTranscriptionMetadataList' - description: Transcription found. + description: OK "400": content: application/json: @@ -3994,8 +3966,7 @@ paths: summary: Enumerate transcriptions made with StartTranscription tags: - Transcriptions - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -4036,7 +4007,7 @@ paths: style: simple responses: "200": - description: Transcription data was deleted. + description: No Content "400": content: application/json: @@ -4119,8 +4090,7 @@ paths: summary: Delete a specific transcription tags: - Transcriptions - x-accepts: - - application/json + x-accepts: application/json get: description: "Retrieve the specified transcription that was created on this\ \ call via [startTranscription](/docs/voice/bxml/startTranscription)." @@ -4159,7 +4129,7 @@ paths: application/json: schema: $ref: '#/components/schemas/callTranscriptionResponse' - description: Transcription found. + description: OK "400": content: application/json: @@ -4242,8 +4212,7 @@ paths: summary: Retrieve a specific transcription tags: - Transcriptions - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -4298,8 +4267,7 @@ paths: tags: - MFA x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://mfa.bandwidth.com/api/v1 @@ -4354,8 +4322,7 @@ paths: tags: - MFA x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://mfa.bandwidth.com/api/v1 @@ -4416,8 +4383,7 @@ paths: tags: - MFA x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://mfa.bandwidth.com/api/v1 @@ -4521,8 +4487,7 @@ paths: tags: - Phone Number Lookup x-content-type: application/json - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://numbers.bandwidth.com/api/v1 @@ -4633,8 +4598,7 @@ paths: summary: Get Lookup Request Status tags: - Phone Number Lookup - x-accepts: - - application/json + x-accepts: application/json servers: - description: Production url: https://numbers.bandwidth.com/api/v1 @@ -4677,8 +4641,8 @@ components: applicationId: 04e88489-df02-4e34-a0ee-27a91849555f accountId: "9900000" callId: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 - to: "+19195551234" - from: "+19195554312" + to: +19195551234 + from: +19195554312 enqueuedTime: 2022-06-16T13:15:07.160Z callUrl: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 callTimeout: 30 @@ -4754,13 +4718,13 @@ components: summary: Example Number Lookup Request for One Number value: tns: - - "+19195551234" + - +19195551234 multipleNumberRequestExample: summary: Example Number Lookup Request for Multiple Numbers value: tns: - - "+19195551234" - - "+19195554321" + - +19195551234 + - +19195554321 lookupInProgressExample: summary: Example Lookup In Progress Response value: @@ -4772,7 +4736,7 @@ components: requestId: 004223a0-8b17-41b1-bf81-20732adf5590 status: FAILED failedTelephoneNumbers: - - "+191955512345" + - +191955512345 lookupSingleNumberCompleteExample: summary: Example Single Number Lookup Complete Response value: @@ -4781,7 +4745,7 @@ components: result: - Response Code: 0 Message: NOERROR - E.164 Format: "+19195551234" + E.164 Format: +19195551234 Formatted: (919) 555-1234 Country: US Line Type: Mobile @@ -4796,7 +4760,7 @@ components: result: - Response Code: 0 Message: NOERROR - E.164 Format: "+19195551234" + E.164 Format: +19195551234 Formatted: (919) 555-1234 Country: US Line Type: Mobile @@ -4805,7 +4769,7 @@ components: Mobile Network Code: "010" - Response Code: 0 Message: NOERROR - E.164 Format: "+19195554321" + E.164 Format: +19195554321 Formatted: (919) 555-4321 Country: US Line Type: Mobile @@ -4820,7 +4784,7 @@ components: result: - Response Code: 0 Message: NOERROR - E.164 Format: "+19195551234" + E.164 Format: +19195551234 Formatted: (919) 555-1234 Country: US Line Type: Mobile @@ -4828,7 +4792,7 @@ components: Mobile Country Code: "310" Mobile Network Code: "010" failedTelephoneNumbers: - - "+191955512345" + - +191955512345 lookupSingleNumberCompleteNoInfoExample: summary: Example Single Number Lookup Complete with No Information Response value: @@ -4837,7 +4801,7 @@ components: result: - Response Code: 3 Message: NXDOMAIN - E.164 Format: "+19195550000" + E.164 Format: +19195550000 Formatted: (919) 555-0000 Country: US parameters: @@ -5059,6 +5023,15 @@ components: schema: type: boolean style: form + region: + description: The region to search in. One of US or EU. + explode: true + in: query + name: region + required: false + schema: + $ref: '#/components/schemas/region' + style: form callId: description: Programmable Voice API Call ID. example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 @@ -5649,7 +5622,7 @@ components: $ref: '#/components/examples/createCallResponseExample' schema: $ref: '#/components/schemas/createCallResponse' - description: Call Successfully Created + description: Created headers: Location: description: The URL for further interactions with this call @@ -5662,7 +5635,9 @@ components: application/json: schema: $ref: '#/components/schemas/callState' - description: Call found + description: OK + updateCallResponse: + description: OK listCallsResponse: content: application/json: @@ -5670,13 +5645,15 @@ components: items: $ref: '#/components/schemas/callState' type: array - description: Calls retrieved successfully + description: OK getStatisticsResponse: content: application/json: schema: $ref: '#/components/schemas/accountStatistics' - description: Statistics Found + description: OK + updateRecordingResponse: + description: OK listCallRecordingsResponse: content: application/json: @@ -5684,13 +5661,13 @@ components: items: $ref: '#/components/schemas/callRecordingMetadata' type: array - description: Recordings retrieved successfully + description: OK getCallRecordingResponse: content: application/json: schema: $ref: '#/components/schemas/callRecordingMetadata' - description: Recording found + description: OK downloadRecordingMediaResponse: content: audio/vnd.wave: @@ -5701,27 +5678,27 @@ components: schema: format: binary type: string - description: Media found + description: OK getRecordingTranscriptionResponse: content: application/json: schema: $ref: '#/components/schemas/recordingTranscriptions' - description: Transcription found. + description: OK listTranscriptionsResponse: content: application/json: schema: $ref: '#/components/schemas/callTranscriptionMetadataList' - description: Transcription found. + description: OK getCallTranscriptionResponse: content: application/json: schema: $ref: '#/components/schemas/callTranscriptionResponse' - description: Transcription found. + description: OK deleteCallTranscriptionResponse: - description: Transcription data was deleted. + description: No Content listConferencesResponse: content: application/json: @@ -5732,19 +5709,19 @@ components: items: $ref: '#/components/schemas/conference' type: array - description: Conferences retrieved successfully + description: OK getConferenceResponse: content: application/json: schema: $ref: '#/components/schemas/conference' - description: Conferences retrieved successfully + description: OK getConferenceMemberResponse: content: application/json: schema: $ref: '#/components/schemas/conferenceMember' - description: Conference member found + description: OK listConferenceRecordingsResponse: content: application/json: @@ -5752,13 +5729,13 @@ components: items: $ref: '#/components/schemas/conferenceRecordingMetadata' type: array - description: Conference recordings retrieved successfully + description: OK getConferenceRecordingResponse: content: application/json: schema: $ref: '#/components/schemas/conferenceRecordingMetadata' - description: Conference recording found + description: OK voiceBadRequestError: content: application/json: @@ -5971,6 +5948,8 @@ components: schema: $ref: '#/components/schemas/tnLookupRequestError' description: Unsupported Media Type + tnLookupNotFoundError: + description: Not Found tnLookupTooManyRequestsError: content: application/json: @@ -6037,11 +6016,14 @@ components: - mms example: sms type: string + region: + default: US + enum: + - US + - EU + example: US + type: string fieldError: - example: - fieldName: from - description: '''+invalid'' must be replaced with a valid E164 formatted telephone - number' properties: fieldName: description: The name of the field that contains the error @@ -6061,34 +6043,34 @@ components: nextPageToken: GL83PD3C prevPage: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902 messages: - - sourceTn: "+15554443333" + - sourceTn: +15554443333 messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 - destinationTn: "+15554442222" + destinationTn: +15554442222 segmentCount: 1 messageStatus: RECEIVED receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" - messageDirection: INBOUND + messageDirection: null messageType: sms carrierName: other recipientCount: 1 campaignClass: T attachmentCount: 1 messageSize: 27 - - sourceTn: "+15554443333" + - sourceTn: +15554443333 messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 - destinationTn: "+15554442222" + destinationTn: +15554442222 segmentCount: 1 messageStatus: RECEIVED receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" - messageDirection: INBOUND + messageDirection: null messageType: sms carrierName: other recipientCount: 1 @@ -6112,17 +6094,17 @@ components: type: object listMessageItem: example: - sourceTn: "+15554443333" + sourceTn: +15554443333 messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 - destinationTn: "+15554442222" + destinationTn: +15554442222 segmentCount: 1 messageStatus: RECEIVED receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" - messageDirection: INBOUND + messageDirection: null messageType: sms carrierName: other recipientCount: 1 @@ -6140,11 +6122,11 @@ components: type: string sourceTn: description: The source phone number of the message. - example: "+15554443333" + example: +15554443333 type: string destinationTn: description: The recipient phone number of the message. - example: "+15554442222" + example: +15554442222 type: string messageStatus: $ref: '#/components/schemas/messageStatusEnum' @@ -6228,9 +6210,6 @@ components: title: PageInfo type: object messagingRequestError: - example: - description: description - type: type properties: type: type: string @@ -6242,16 +6221,6 @@ components: title: MessagingRequestError type: object createMessageRequestError: - example: - fieldErrors: - - fieldName: from - description: '''+invalid'' must be replaced with a valid E164 formatted - telephone number' - - fieldName: from - description: '''+invalid'' must be replaced with a valid E164 formatted - telephone number' - description: description - type: type properties: type: type: string @@ -6298,21 +6267,21 @@ components: type: object message: example: - owner: "+15554443333" + owner: +15554443333 media: - https://dev.bandwidth.com/images/bandwidth-logo.png priority: default segmentCount: 2 - from: "+15553332222" + from: +15553332222 expiration: 2021-02-01T11:29:18-05:00 id: 1589228074636lm4k2je7j7jklbn2 time: 2022-09-14T18:20:16Z to: - - "+15552223333" + - +15552223333 text: Hello world tag: custom tag applicationId: 93de2206-9669-4e07-948d-329f4b722ee2 - direction: in + direction: null properties: id: description: The id of the message. @@ -6320,7 +6289,7 @@ components: type: string owner: description: The Bandwidth phone number associated with the message. - example: "+15554443333" + example: +15554443333 type: string applicationId: description: The application ID associated with the message. @@ -6341,14 +6310,14 @@ components: to: description: The phone number recipients of the message. example: - - "+15552223333" + - +15552223333 items: type: string type: array uniqueItems: true from: description: The phone number the message was sent from. - example: "+15553332222" + example: +15553332222 type: string media: description: The list of media URLs sent in the message. Including a `filename` @@ -6388,8 +6357,8 @@ components: to: description: The phone number(s) the message should be sent to in E164 format. example: - - "+15554443333" - - "+15552223333" + - +15554443333 + - +15552223333 items: type: string type: array @@ -6402,7 +6371,7 @@ components: \ lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore\ \ _ and ampersand &. Alphanumeric Sender IDs must contain at least one\ \ letter." - example: "+15551113333" + example: +15551113333 type: string text: description: The contents of the text message. Must be 2048 characters or @@ -6453,7 +6422,7 @@ components: example: message-received type: string to: - example: "+15552223333" + example: +15552223333 type: string description: example: Incoming message received @@ -6474,7 +6443,7 @@ components: example: 1661365814859loidf7mcwd4qacn7 type: string owner: - example: "+15553332222" + example: +15553332222 type: string applicationId: example: 93de2206-9669-4e07-948d-329f4b722ee2 @@ -6490,13 +6459,13 @@ components: $ref: '#/components/schemas/messageDirectionEnum' to: example: - - "+15552223333" + - +15552223333 items: type: string type: array uniqueItems: true from: - example: "+15553332222" + example: +15553332222 type: string text: example: Hello world @@ -6536,7 +6505,7 @@ components: example: message-sending type: string to: - example: "+15552223333" + example: +15552223333 type: string description: example: Message is sending to carrier @@ -6557,7 +6526,7 @@ components: example: 1661365814859loidf7mcwd4qacn7 type: string owner: - example: "+15553332222" + example: +15553332222 type: string applicationId: example: 93de2206-9669-4e07-948d-329f4b722ee2 @@ -6573,13 +6542,13 @@ components: $ref: '#/components/schemas/messageDirectionEnum' to: example: - - "+15552223333" + - +15552223333 items: type: string type: array uniqueItems: true from: - example: "+15553332222" + example: +15553332222 type: string text: example: Hello world @@ -6621,7 +6590,7 @@ components: example: message-delivered type: string to: - example: "+15552223333" + example: +15552223333 type: string description: example: Message delivered to carrier. @@ -6642,7 +6611,7 @@ components: example: 1661365814859loidf7mcwd4qacn7 type: string owner: - example: "+15553332222" + example: +15553332222 type: string applicationId: example: 93de2206-9669-4e07-948d-329f4b722ee2 @@ -6658,13 +6627,13 @@ components: $ref: '#/components/schemas/messageDirectionEnum' to: example: - - "+15552223333" + - +15552223333 items: type: string type: array uniqueItems: true from: - example: "+15553332222" + example: +15553332222 type: string text: example: Hello world @@ -6705,7 +6674,7 @@ components: example: message-failed type: string to: - example: "+15552223333" + example: +15552223333 type: string description: example: rejected-unallocated-from-number @@ -6730,7 +6699,7 @@ components: example: 1661365814859loidf7mcwd4qacn7 type: string owner: - example: "+15553332222" + example: +15553332222 type: string applicationId: example: 93de2206-9669-4e07-948d-329f4b722ee2 @@ -6746,13 +6715,13 @@ components: $ref: '#/components/schemas/messageDirectionEnum' to: example: - - "+15552223333" + - +15552223333 items: type: string type: array uniqueItems: true from: - example: "+15553332222" + example: +15553332222 type: string text: example: Hello world @@ -6886,13 +6855,13 @@ components: description: |- The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). - example: "+19195551234" + example: +19195551234 type: string from: description: |- 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. - example: "+15555551212" + example: +15555551212 type: string privacy: description: Hide the calling number. The `displayName` field can be used @@ -7060,9 +7029,9 @@ components: answerMethod: POST enqueuedTime: 2022-06-16T13:15:07.16Z disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect - from: "+19195554321" + from: +19195554321 fallbackPassword: mySecretPassword1! - to: "+19195551234" + to: +19195551234 tag: My custom tag value applicationId: 04e88489-df02-4e34-a0ee-27a91849555f username: mySecretUsername @@ -7082,11 +7051,11 @@ components: type: string to: description: Recipient of the outgoing call. - example: "+19195551234" + example: +19195551234 type: string from: description: Phone number that created the outbound call. - example: "+19195554321" + example: +19195554321 type: string enqueuedTime: description: The time at which the call was accepted into the queue. @@ -7194,9 +7163,9 @@ components: verstat: TN-Verification-Passed attestationIndicator: A originatingId: abc123 - from: "+19195554321" + from: +19195554321 startTime: 2022-06-16T13:15:07.16Z - to: "+19195551234" + to: +19195551234 state: disconnected endTime: 2022-06-16T13:15:18.314Z errorId: errorId @@ -7224,12 +7193,12 @@ components: to: description: "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." - example: "+19195551234" + example: +19195551234 type: string from: description: "The phone number that made the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+19195554321" + example: +19195554321 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -7437,14 +7406,14 @@ components: status: completed parentCallId: c-95ac8d6e-1a31c52e-b38f-4198-93c1-51633ec68f8d recordingName: my-recording-name - transferCallerId: "+15555555555" - transferTo: "+15555555555" + transferCallerId: +15555555555 + transferTo: +15555555555 duration: PT13.67S accountId: "9900000" channels: 1 - from: "+15555555555" + from: +15555555555 startTime: 2022-06-17T22:19:40.375Z - to: "+15555555555" + to: +15555555555 endTime: 2022-06-17T22:20:00Z applicationId: 04e88489-df02-4e34-a0ee-27a91849555f recordingId: r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833 @@ -7477,22 +7446,22 @@ components: to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string duration: description: The duration of the recording in ISO-8601 format @@ -7686,6 +7655,7 @@ components: and [Modify Conference Member](/apis/voice/#operation/updateConferenceMember) endpoint. example: https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/members/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string mute: description: |- @@ -8110,10 +8080,6 @@ components: type: string type: object voiceApiError: - example: - description: description - id: id - type: type properties: type: type: string @@ -8154,12 +8120,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -8170,6 +8136,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -8232,12 +8199,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -8248,6 +8215,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -8325,12 +8293,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -8341,6 +8309,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -8487,12 +8456,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string callId: description: The call id associated with the event. @@ -8542,12 +8511,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string callId: description: The call id associated with the event. @@ -8709,12 +8678,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string callId: description: The call id associated with the event. @@ -8725,6 +8694,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -8805,12 +8775,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string callId: description: The call id associated with the event. @@ -8825,6 +8795,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -8853,12 +8824,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string tag: description: "(optional) The tag specified on call creation. If no tag was\ @@ -8898,12 +8869,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -8920,6 +8891,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -8953,12 +8925,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string tag: description: "(optional) The tag specified on call creation. If no tag was\ @@ -9000,12 +8972,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9016,6 +8988,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string startTime: description: "Time the call was started, in ISO 8601 format." @@ -9060,12 +9033,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9076,6 +9049,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -9137,12 +9111,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9153,6 +9127,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string parentCallId: description: "(optional) If the event is related to the B leg of a ,\ @@ -9215,12 +9190,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string type: object recordingAvailableCallback: @@ -9254,12 +9229,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9270,6 +9245,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string parentCallId: description: "(optional) If the event is related to the B leg of a ,\ @@ -9335,12 +9311,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string type: object redirectCallback: @@ -9374,12 +9350,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9390,6 +9366,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string parentCallId: description: "(optional) If the event is related to the B leg of a ,\ @@ -9424,12 +9401,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string type: object transcriptionAvailableCallback: @@ -9463,12 +9440,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9479,6 +9456,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string mediaUrl: description: The URL that can be used to download the recording. Only present @@ -9531,12 +9509,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string type: object transferAnswerCallback: @@ -9575,12 +9553,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9591,6 +9569,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -9619,12 +9598,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string type: object transferCompleteCallback: @@ -9661,12 +9640,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9677,6 +9656,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string enqueuedTime: description: "(optional) If call queueing is enabled and this is an outbound\ @@ -9705,12 +9685,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string cause: description: "Reason the call failed - hangup, busy, timeout, cancel, rejected,\ @@ -9766,12 +9746,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9782,6 +9762,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string parentCallId: description: "(optional) If the event is related to the B leg of a ,\ @@ -9821,12 +9802,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string cause: description: "Reason the call failed - hangup, busy, timeout, cancel, rejected,\ @@ -9874,12 +9855,12 @@ components: to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: "+15555555555" + example: +15555555555 type: string from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: "+15555555555" + example: +15555555555 type: string conferenceId: description: "The unique, Bandwidth-generated ID of the conference that was\ @@ -9954,12 +9935,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string transferTo: description: "The phone number used as the to field of the B-leg call, in E.164\ \ format (e.g. +15555555555)." - example: "+15555555555" + example: +15555555555 type: string mediaUrl: description: The URL that can be used to download the recording. Only present @@ -9979,6 +9960,7 @@ components: callUrl: description: The URL of the call associated with the event. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + format: uri type: string parentCallId: description: "(optional) If the event is related to the B leg of a ,\ @@ -10059,7 +10041,7 @@ components: origTo: description: Always present. Indicates the last telephone number that the call was diverted from. - example: "+15558884444" + example: +15558884444 type: string type: object transcription: @@ -10100,12 +10082,12 @@ components: properties: to: description: The phone number to send the mfa code to. - example: "+19195551234" + example: +19195551234 pattern: "^\\+[1-9]\\d{1,14}$" type: string from: description: "The application phone number, the sender of the mfa code." - example: "+19195554321" + example: +19195554321 maxLength: 32 pattern: "^\\+[1-9]\\d{1,14}$" type: string @@ -10167,7 +10149,7 @@ components: properties: to: description: The phone number to send the mfa code to. - example: "+19195551234" + example: +19195551234 pattern: "^\\+[1-9]\\d{1,14}$" type: string scope: @@ -10205,9 +10187,6 @@ components: type: boolean type: object mfaRequestError: - example: - requestId: 354cc8a3-6701-461e-8fa7-8671703dd898 - error: 400 Request is malformed or invalid properties: error: description: A message describing the error with your request. @@ -10219,8 +10198,6 @@ components: type: string type: object mfaUnauthorizedRequestError: - example: - message: Unauthorized properties: message: description: Unauthorized @@ -10228,8 +10205,6 @@ components: type: string type: object mfaForbiddenRequestError: - example: - message: Missing Authentication Token properties: message: description: The message containing the reason behind the request being @@ -10278,7 +10253,7 @@ components: \ was available for the TN." example: result: - - E.164 Format: "+19195551234" + - E.164 Format: +19195551234 Formatted: (919) 555-1234 Line Provider: Verizon Wireless Message: NOERROR @@ -10287,7 +10262,7 @@ components: Mobile Country Code: "310" Mobile Network Code: "010" Response Code: 0 - - E.164 Format: "+19195551234" + - E.164 Format: +19195551234 Formatted: (919) 555-1234 Line Provider: Verizon Wireless Message: NOERROR @@ -10298,7 +10273,7 @@ components: Response Code: 0 requestId: 004223a0-8b17-41b1-bf81-20732adf5590 failedTelephoneNumbers: - - "+191955512345" + - +191955512345 status: COMPLETE properties: requestId: @@ -10316,7 +10291,7 @@ components: failedTelephoneNumbers: description: The telephone numbers whose lookup failed. example: - - "+191955512345" + - +191955512345 items: type: string type: array @@ -10324,7 +10299,7 @@ components: lookupResult: description: Carrier information results for the specified telephone number. example: - E.164 Format: "+19195551234" + E.164 Format: +19195551234 Formatted: (919) 555-1234 Line Provider: Verizon Wireless Message: NOERROR @@ -10344,7 +10319,7 @@ components: type: string E.164 Format: description: The telephone number in E.164 format. - example: "+19195551234" + example: +19195551234 type: string Formatted: description: The formatted version of the telephone number. @@ -10372,8 +10347,6 @@ components: type: string type: object tnLookupRequestError: - example: - message: example error message properties: message: description: A description of what validation error occurred. diff --git a/bandwidth.yml b/bandwidth.yml index e0b5f0dc..be8e426e 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -181,6 +181,7 @@ paths: - $ref: '#/components/parameters/pageToken' - $ref: '#/components/parameters/limit' - $ref: '#/components/parameters/limitTotalCount' + - $ref: '#/components/parameters/region' responses: '200': $ref: '#/components/responses/listMessagesResponse' @@ -377,7 +378,7 @@ paths: $ref: '#/components/requestBodies/updateCallRequest' responses: '200': - description: Call was successfully modified. + $ref: '#/components/responses/updateCallResponse' '400': $ref: '#/components/responses/voiceBadRequestError' '401': @@ -777,7 +778,7 @@ paths: $ref: '#/components/requestBodies/updateCallRecordingRequest' responses: '200': - description: Recording state was successfully modified. + $ref: '#/components/responses/updateRecordingResponse' '400': $ref: '#/components/responses/voiceBadRequestError' '401': @@ -1324,7 +1325,7 @@ paths: '403': $ref: '#/components/responses/tnLookupForbiddenError' '404': - description: Not Found + $ref: '#/components/responses/tnLookupNotFoundError' '429': $ref: '#/components/responses/tnLookupTooManyRequestsError' '500': @@ -1376,6 +1377,13 @@ components: - sms - mms example: sms + region: + type: string + enum: + - US + - EU + example: US + default: US fieldError: type: object properties: @@ -2919,6 +2927,7 @@ components: $ref: '#/components/schemas/conferenceId' memberUrl: type: string + format: uri description: >- A URL that may be used to retrieve information about or update @@ -4276,6 +4285,7 @@ components: example: my-recording-name callUrl: type: string + format: uri description: The URL of the call associated with the event. example: >- https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 @@ -4735,7 +4745,7 @@ components: schema: $ref: '#/components/schemas/messagingRequestError' createCallResponse: - description: Call Successfully Created + description: Created headers: Location: description: The URL for further interactions with this call @@ -4749,13 +4759,15 @@ components: createCall Response: $ref: '#/components/examples/createCallResponseExample' getCallStateResponse: - description: Call found + description: OK content: application/json: schema: $ref: '#/components/schemas/callState' + updateCallResponse: + description: OK listCallsResponse: - description: Calls retrieved successfully + description: OK content: application/json: schema: @@ -4763,13 +4775,15 @@ components: items: $ref: '#/components/schemas/callState' getStatisticsResponse: - description: Statistics Found + description: OK content: application/json: schema: $ref: '#/components/schemas/accountStatistics' + updateRecordingResponse: + description: OK listCallRecordingsResponse: - description: Recordings retrieved successfully + description: OK content: application/json: schema: @@ -4777,13 +4791,13 @@ components: items: $ref: '#/components/schemas/callRecordingMetadata' getCallRecordingResponse: - description: Recording found + description: OK content: application/json: schema: $ref: '#/components/schemas/callRecordingMetadata' downloadRecordingMediaResponse: - description: Media found + description: OK content: audio/vnd.wave: schema: @@ -4794,27 +4808,27 @@ components: type: string format: binary getRecordingTranscriptionResponse: - description: Transcription found. + description: OK content: application/json: schema: $ref: '#/components/schemas/recordingTranscriptions' listTranscriptionsResponse: - description: Transcription found. + description: OK content: application/json: schema: $ref: '#/components/schemas/callTranscriptionMetadataList' getCallTranscriptionResponse: - description: Transcription found. + description: OK content: application/json: schema: $ref: '#/components/schemas/callTranscriptionResponse' deleteCallTranscriptionResponse: - description: Transcription data was deleted. + description: No Content listConferencesResponse: - description: Conferences retrieved successfully + description: OK content: application/json: schema: @@ -4825,19 +4839,19 @@ components: listConferences Response: $ref: '#/components/examples/listConferencesResponseExample' getConferenceResponse: - description: Conferences retrieved successfully + description: OK content: application/json: schema: $ref: '#/components/schemas/conference' getConferenceMemberResponse: - description: Conference member found + description: OK content: application/json: schema: $ref: '#/components/schemas/conferenceMember' listConferenceRecordingsResponse: - description: Conference recordings retrieved successfully + description: OK content: application/json: schema: @@ -4845,7 +4859,7 @@ components: items: $ref: '#/components/schemas/conferenceRecordingMetadata' getConferenceRecordingResponse: - description: Conference recording found + description: OK content: application/json: schema: @@ -5068,6 +5082,8 @@ components: summary: Example Unsupported Media Type Error value: message: Content-Type must be application/json. + tnLookupNotFoundError: + description: Not Found tnLookupTooManyRequestsError: description: Too Many Requests content: @@ -5283,6 +5299,12 @@ components: example: true schema: type: boolean + region: + name: region + in: query + description: The region to search in. One of US or EU. + schema: + $ref: '#/components/schemas/region' callId: name: callId in: path diff --git a/build.gradle b/build.gradle index 9f33620e..c1f22406 100644 --- a/build.gradle +++ b/build.gradle @@ -62,9 +62,9 @@ if(hasProperty('target') && target == 'android') { def task = project.tasks.create "jar${variant.name.capitalize()}", Jar task.description = "Create jar artifact for ${variant.name}" task.dependsOn variant.javaCompile - task.from variant.javaCompile.destinationDirectory - task.destinationDirectory = project.file("${project.buildDir}/outputs/jar") - task.archiveFileName = "${project.name}-${variant.baseName}-${version}.jar" + task.from variant.javaCompile.destinationDir + task.destinationDir = project.file("${project.buildDir}/outputs/jar") + task.archiveName = "${project.name}-${variant.baseName}-${version}.jar" artifacts.add('archives', task) } } @@ -108,18 +108,18 @@ ext { dependencies { implementation 'io.swagger:swagger-annotations:1.6.8' implementation "com.google.code.findbugs:jsr305:3.0.2" - implementation 'com.squareup.okhttp3:okhttp:4.12.0' - implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' + implementation 'com.squareup.okhttp3:okhttp:4.10.0' + implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0' implementation 'com.google.code.gson:gson:2.9.1' - implementation 'io.gsonfire:gson-fire:1.9.0' + implementation 'io.gsonfire:gson-fire:1.8.5' implementation 'javax.ws.rs:jsr311-api:1.1.1' implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' 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.9.1' 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.9.1' } javadoc { diff --git a/build.sbt b/build.sbt index c186322a..306436b0 100644 --- a/build.sbt +++ b/build.sbt @@ -10,18 +10,18 @@ lazy val root = (project in file(".")). resolvers += Resolver.mavenLocal, libraryDependencies ++= Seq( "io.swagger" % "swagger-annotations" % "1.6.5", - "com.squareup.okhttp3" % "okhttp" % "4.12.0", - "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", + "com.squareup.okhttp3" % "okhttp" % "4.10.0", + "com.squareup.okhttp3" % "logging-interceptor" % "4.10.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", "org.openapitools" % "jackson-databind-nullable" % "0.2.6", - "io.gsonfire" % "gson-fire" % "1.9.0" % "compile", + "io.gsonfire" % "gson-fire" % "1.8.5" % "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.9.1" % "test", "com.novocode" % "junit-interface" % "0.10" % "test", "org.mockito" % "mockito-core" % "3.12.4" % "test" ) diff --git a/docs/AnswerCallback.md b/docs/AnswerCallback.md index c162a641..1db1cdcd 100644 --- a/docs/AnswerCallback.md +++ b/docs/AnswerCallback.md @@ -16,7 +16,7 @@ The Answer event is sent to the answerUrl specified in the createCall request wh |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/BridgeCompleteCallback.md b/docs/BridgeCompleteCallback.md index 1a72f0f0..ee9d956f 100644 --- a/docs/BridgeCompleteCallback.md +++ b/docs/BridgeCompleteCallback.md @@ -16,7 +16,7 @@ If the target call leaves the , then this callback is sent to the bridge |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/BridgeTargetCompleteCallback.md b/docs/BridgeTargetCompleteCallback.md index 3daa0f55..c23f465c 100644 --- a/docs/BridgeTargetCompleteCallback.md +++ b/docs/BridgeTargetCompleteCallback.md @@ -16,7 +16,7 @@ If the originating call leaves the , then this callback is sent to the b |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/CallsApi.md b/docs/CallsApi.md index ea4efcda..f02b185c 100644 --- a/docs/CallsApi.md +++ b/docs/CallsApi.md @@ -79,7 +79,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Call Successfully Created | * Location - The URL for further interactions with this call
| +| **201** | Created | * Location - The URL for further interactions with this call
| | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -157,7 +157,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Call found | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -247,7 +247,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Calls retrieved successfully | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -326,7 +326,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Call was successfully modified. | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | diff --git a/docs/ConferenceMember.md b/docs/ConferenceMember.md index 061fc515..f4d518d5 100644 --- a/docs/ConferenceMember.md +++ b/docs/ConferenceMember.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**callId** | **String** | The call id associated with the event. | [optional] | |**conferenceId** | **String** | The unique, Bandwidth-generated ID of the conference that was recorded | [optional] | -|**memberUrl** | **String** | 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. | [optional] | +|**memberUrl** | **URI** | 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. | [optional] | |**mute** | **Boolean** | 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. | [optional] | |**hold** | **Boolean** | 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. | [optional] | |**callIdsToCoach** | **List<String>** | 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. | [optional] | diff --git a/docs/ConferencesApi.md b/docs/ConferencesApi.md index d4f0756b..6a51cbea 100644 --- a/docs/ConferencesApi.md +++ b/docs/ConferencesApi.md @@ -85,7 +85,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Media found | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -163,7 +163,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Conferences retrieved successfully | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -243,7 +243,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Conference member found | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -323,7 +323,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Conference recording found | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -401,7 +401,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Conference recordings retrieved successfully | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -487,7 +487,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Conferences retrieved successfully | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | diff --git a/docs/DisconnectCallback.md b/docs/DisconnectCallback.md index e71b272f..d2fd7545 100644 --- a/docs/DisconnectCallback.md +++ b/docs/DisconnectCallback.md @@ -16,7 +16,7 @@ The Disconnect event is fired when a call ends, for any reason. |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/DtmfCallback.md b/docs/DtmfCallback.md index afa98eeb..9f280db9 100644 --- a/docs/DtmfCallback.md +++ b/docs/DtmfCallback.md @@ -17,7 +17,7 @@ The DTMF event is sent for every digit detected after a verb is ex |**callId** | **String** | The call id associated with the event. | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**digit** | **String** | The digit collected in the call. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/GatherCallback.md b/docs/GatherCallback.md index d0b6d029..e3ef7da8 100644 --- a/docs/GatherCallback.md +++ b/docs/GatherCallback.md @@ -17,7 +17,7 @@ The gather event is sent after a verb is executed. Its purpose is to re |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | |**digits** | **String** | (optional) The digits, letters, and/or symbols entered by the user. The string is empty if a timeout occurred before any buttons were pressed. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/InitiateCallback.md b/docs/InitiateCallback.md index 67e7e7c1..94d56eb8 100644 --- a/docs/InitiateCallback.md +++ b/docs/InitiateCallback.md @@ -16,7 +16,7 @@ The Initiate event is fired when an inbound call is received for a Telephone Num |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**diversion** | [**Diversion**](Diversion.md) | | [optional] | |**stirShaken** | [**StirShaken**](StirShaken.md) | | [optional] | diff --git a/docs/MachineDetectionCompleteCallback.md b/docs/MachineDetectionCompleteCallback.md index 937fce67..9a369e53 100644 --- a/docs/MachineDetectionCompleteCallback.md +++ b/docs/MachineDetectionCompleteCallback.md @@ -16,7 +16,7 @@ This event is sent to the url informed when requesting a machine detection opera |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/MessagesApi.md b/docs/MessagesApi.md index 641562b7..dd2b8bd8 100644 --- a/docs/MessagesApi.md +++ b/docs/MessagesApi.md @@ -88,7 +88,7 @@ public class Example { # **listMessages** -> MessagesList listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount) +> MessagesList listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, region) List Messages @@ -131,8 +131,9 @@ public class Example { String pageToken = "gdEewhcJLQRB5"; // String | A base64 encoded value used for pagination of results. Integer limit = 50; // Integer | The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. Boolean limitTotalCount = true; // Boolean | When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. + Region region = Region.fromValue("US"); // Region | The region to search in. One of US or EU. try { - MessagesList result = apiInstance.listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount); + MessagesList result = apiInstance.listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, region); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MessagesApi#listMessages"); @@ -165,6 +166,7 @@ public class Example { | **pageToken** | **String**| A base64 encoded value used for pagination of results. | [optional] | | **limit** | **Integer**| The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. | [optional] | | **limitTotalCount** | **Boolean**| When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. | [optional] | +| **region** | [**Region**](.md)| The region to search in. One of US or EU. | [optional] [default to US] [enum: US, EU] | ### Return type diff --git a/docs/RecordingAvailableCallback.md b/docs/RecordingAvailableCallback.md index c0937ffe..90d6410d 100644 --- a/docs/RecordingAvailableCallback.md +++ b/docs/RecordingAvailableCallback.md @@ -16,7 +16,7 @@ The Recording Available event is sent after a recording has been processed. It i |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**parentCallId** | **String** | (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. | [optional] | |**recordingId** | **String** | The unique ID of this recording | [optional] | |**mediaUrl** | **URI** | The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. | [optional] | diff --git a/docs/RecordingCompleteCallback.md b/docs/RecordingCompleteCallback.md index e0d07e79..17814da7 100644 --- a/docs/RecordingCompleteCallback.md +++ b/docs/RecordingCompleteCallback.md @@ -16,7 +16,7 @@ The Record Complete event is sent after a verb has executed if the call |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**parentCallId** | **String** | (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. | [optional] | |**recordingId** | **String** | The unique ID of this recording | [optional] | |**mediaUrl** | **URI** | The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. | [optional] | diff --git a/docs/RecordingsApi.md b/docs/RecordingsApi.md index d810ecf3..42131b80 100644 --- a/docs/RecordingsApi.md +++ b/docs/RecordingsApi.md @@ -323,7 +323,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Media found | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -403,7 +403,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Recording found | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -483,7 +483,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Transcription found. | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -567,7 +567,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Recordings retrieved successfully | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -645,7 +645,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Recordings retrieved successfully | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -805,7 +805,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Recording state was successfully modified. | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | diff --git a/docs/RedirectCallback.md b/docs/RedirectCallback.md index 003cdb41..597a44ab 100644 --- a/docs/RedirectCallback.md +++ b/docs/RedirectCallback.md @@ -16,7 +16,7 @@ The Redirect event is fired when a verb is executed. Its purpose is t |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**parentCallId** | **String** | (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. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | diff --git a/docs/Region.md b/docs/Region.md new file mode 100644 index 00000000..1680c3dc --- /dev/null +++ b/docs/Region.md @@ -0,0 +1,13 @@ + + +# Region + +## Enum + + +* `US` (value: `"US"`) + +* `EU` (value: `"EU"`) + + + diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index 4d6af4be..be38dbc8 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -73,7 +73,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Statistics Found | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | diff --git a/docs/TranscriptionAvailableCallback.md b/docs/TranscriptionAvailableCallback.md index fafada17..0ec482e7 100644 --- a/docs/TranscriptionAvailableCallback.md +++ b/docs/TranscriptionAvailableCallback.md @@ -16,7 +16,7 @@ The Transcription Available event is sent when the recording transcription is av |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**mediaUrl** | **URI** | The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. | [optional] | |**parentCallId** | **String** | (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. | [optional] | |**recordingId** | **String** | The unique ID of this recording | [optional] | diff --git a/docs/TranscriptionsApi.md b/docs/TranscriptionsApi.md index cf9d6c9f..981a293e 100644 --- a/docs/TranscriptionsApi.md +++ b/docs/TranscriptionsApi.md @@ -78,7 +78,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Transcription data was deleted. | - | +| **200** | No Content | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -158,7 +158,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Transcription found. | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | @@ -236,7 +236,7 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Transcription found. | - | +| **200** | OK | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Forbidden | - | diff --git a/docs/TransferAnswerCallback.md b/docs/TransferAnswerCallback.md index c0974c0b..d350b98f 100644 --- a/docs/TransferAnswerCallback.md +++ b/docs/TransferAnswerCallback.md @@ -16,7 +16,7 @@ When processing a verb, this event is sent when a called party (B-leg |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/TransferCompleteCallback.md b/docs/TransferCompleteCallback.md index 52799431..d2dd0202 100644 --- a/docs/TransferCompleteCallback.md +++ b/docs/TransferCompleteCallback.md @@ -16,7 +16,7 @@ This event is sent to the transferCompleteUrl of the A-leg's verb whe |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | |**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] | diff --git a/docs/TransferDisconnectCallback.md b/docs/TransferDisconnectCallback.md index 38a1f960..cc52e159 100644 --- a/docs/TransferDisconnectCallback.md +++ b/docs/TransferDisconnectCallback.md @@ -16,7 +16,7 @@ This event is sent to the transferDisconnectUrl of each tag when i |**to** | **String** | The phone number that received the call, in E.164 format (e.g. +15555555555). | [optional] | |**direction** | **CallDirectionEnum** | | [optional] | |**callId** | **String** | The call id associated with the event. | [optional] | -|**callUrl** | **String** | The URL of the call associated with the event. | [optional] | +|**callUrl** | **URI** | The URL of the call associated with the event. | [optional] | |**parentCallId** | **String** | (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. | [optional] | |**enqueuedTime** | **OffsetDateTime** | (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. | [optional] | |**startTime** | **OffsetDateTime** | Time the call was started, in ISO 8601 format. | [optional] | diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e6441136f3d4ba8a0da8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+ ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac done -# This is normally unused -# shellcheck disable=SC2034 +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" APP_BASE_NAME=${0##*/} -# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { -echo "$*" + echo "$*" } >&2 die () { -echo -echo "$*" -echo -exit 1 + echo + echo "$*" + echo + exit 1 } >&2 # OS specific support (must be 'true' or 'false'). @@ -106,10 +108,10 @@ msys=false darwin=false nonstop=false case "$( uname )" in #( -CYGWIN* ) cygwin=true ;; #( -Darwin* ) darwin=true ;; #( -MSYS* | MINGW* ) msys=true ;; #( -NONSTOP* ) nonstop=true ;; + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -117,46 +119,39 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then -if [ -x "$JAVA_HOME/jre/sh/java" ] ; then -# IBM's JDK on AIX uses strange locations for the executables -JAVACMD=$JAVA_HOME/jre/sh/java -else -JAVACMD=$JAVA_HOME/bin/java -fi -if [ ! -x "$JAVACMD" ] ; then -die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." -fi + fi else -JAVACMD=java -if ! command -v java >/dev/null 2>&1 -then -die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi -fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then -case $MAX_FD in #( -max*) -# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. -# shellcheck disable=SC2039,SC3045 -MAX_FD=$( ulimit -H -n ) || -warn "Could not query maximum file descriptor limit" -esac -case $MAX_FD in #( -'' | soft) :;; #( -*) -# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. -# shellcheck disable=SC2039,SC3045 -ulimit -n "$MAX_FD" || -warn "Could not set maximum file descriptor limit to $MAX_FD" -esac + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac fi # Collect all arguments for the java command, stacking in reverse order: @@ -169,56 +164,46 @@ fi # For Cygwin or MSYS, switch paths to Windows format before running java if "$cygwin" || "$msys" ; then -APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) -CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - -JAVACMD=$( cygpath --unix "$JAVACMD" ) - -# Now convert the arguments - kludge to limit ourselves to /bin/sh -for arg do -if -case $arg in #( --*) false ;; # don't mess with options #( -/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath -[ -e "$t" ] ;; #( -*) false ;; -esac -then -arg=$( cygpath --path --ignore --mixed "$arg" ) -fi -# Roll the args list around exactly as many times as the number of -# args, so each arg winds up back in the position where it started, but -# possibly modified. -# -# NB: a `for` loop captures its iteration list before it begins, so -# changing the positional parameters here affects neither the number of -# iterations, nor the values presented in `arg`. -shift # remove old arg -set -- "$@" "$arg" # push replacement arg -done + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done fi - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, -# and any embedded shellness will be escaped. -# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be -# treated as '${Hostname}' itself on the command line. +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. set -- \ -"-Dorg.gradle.appname=$APP_BASE_NAME" \ --classpath "$CLASSPATH" \ -org.gradle.wrapper.GradleWrapperMain \ -"$@" - -# Stop when "xargs" is not available. -if ! command -v xargs >/dev/null 2>&1 -then -die "xargs is not available" -fi + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" # Use "xargs" to parse quoted args. # @@ -240,10 +225,10 @@ fi # eval "set -- $( -printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | -xargs -n1 | -sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | -tr '\n' ' ' -)" '"$@"' + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat index 25da30db..6a68175e 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%"=="" @echo off +@if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,8 +25,7 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -@rem This is normally unused +if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -34,20 +33,20 @@ set APP_HOME=%DIRNAME% for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" +set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute +if "%ERRORLEVEL%" == "0" goto execute -echo. 1>&2 -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. goto fail @@ -57,11 +56,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. 1>&2 -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 -echo. 1>&2 -echo Please set the JAVA_HOME variable in your environment to match the 1>&2 -echo location of your Java installation. 1>&2 +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. goto fail @@ -76,15 +75,13 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if %ERRORLEVEL% equ 0 goto mainEnd +if "%ERRORLEVEL%"=="0" goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -set EXIT_CODE=%ERRORLEVEL% -if %EXIT_CODE% equ 0 set EXIT_CODE=1 -if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% -exit /b %EXIT_CODE% +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/openapitools.json b/openapitools.json index 5c50d6a2..3015568c 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.0.0" } } diff --git a/src/main/java/com/bandwidth/sdk/ApiClient.java b/src/main/java/com/bandwidth/sdk/ApiClient.java index 35e36a6d..eb567e25 100644 --- a/src/main/java/com/bandwidth/sdk/ApiClient.java +++ b/src/main/java/com/bandwidth/sdk/ApiClient.java @@ -47,7 +47,6 @@ import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; -import java.util.function.Supplier; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -467,19 +466,6 @@ public void setAWS4Configuration(String accessKey, String secretKey, String regi throw new RuntimeException("No AWS4 authentication configured!"); } - /** - * Helper method to set credentials for AWSV4 Signature - * - * @param accessKey Access Key - * @param secretKey Secret Key - * @param sessionToken Session Token - * @param region Region - * @param service Service to access to - */ - public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) { - throw new RuntimeException("No AWS4 authentication configured!"); - } - /** * Set the User-Agent header's value (by adding to the default header map). * diff --git a/src/main/java/com/bandwidth/sdk/ApiException.java b/src/main/java/com/bandwidth/sdk/ApiException.java index a1c6b060..55fe2953 100644 --- a/src/main/java/com/bandwidth/sdk/ApiException.java +++ b/src/main/java/com/bandwidth/sdk/ApiException.java @@ -21,10 +21,8 @@ *

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") public class ApiException extends Exception { - private static final long serialVersionUID = 1L; - private int code = 0; private Map> responseHeaders = null; private String responseBody = null; diff --git a/src/main/java/com/bandwidth/sdk/Configuration.java b/src/main/java/com/bandwidth/sdk/Configuration.java index 612351ee..d730b801 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") 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..4e1175f7 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() @@ -93,7 +86,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri return clazz; } - static { + { GsonBuilder gsonBuilder = createGson(); gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); @@ -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..93fad347 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") 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..df9dc784 100644 --- a/src/main/java/com/bandwidth/sdk/ServerConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/ServerConfiguration.java @@ -5,7 +5,6 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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..675f9e28 100644 --- a/src/main/java/com/bandwidth/sdk/ServerVariable.java +++ b/src/main/java/com/bandwidth/sdk/ServerVariable.java @@ -5,7 +5,6 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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..29277114 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") 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/CallsApi.java b/src/main/java/com/bandwidth/sdk/api/CallsApi.java index 8b8ccca9..0310cdf7 100644 --- a/src/main/java/com/bandwidth/sdk/api/CallsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/CallsApi.java @@ -86,7 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @http.response.details - + @@ -169,7 +169,7 @@ private okhttp3.Call createCallValidateBeforeCall(String accountId, CreateCall c * @http.response.details
Status Code Description Response Headers
201 Call Successfully Created * Location - The URL for further interactions with this call
201 Created * Location - The URL for further interactions with this call
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -195,7 +195,7 @@ public CreateCallResponse createCall(String accountId, CreateCall createCall) th * @http.response.details
Status Code Description Response Headers
201 Call Successfully Created * Location - The URL for further interactions with this call
201 Created * Location - The URL for further interactions with this call
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -223,7 +223,7 @@ public ApiResponse createCallWithHttpInfo(String accountId, * @http.response.details
Status Code Description Response Headers
201 Call Successfully Created * Location - The URL for further interactions with this call
201 Created * Location - The URL for further interactions with this call
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -251,7 +251,7 @@ public okhttp3.Call createCallAsync(String accountId, CreateCall createCall, fin * @http.response.details
Status Code Description Response Headers
201 Call Successfully Created * Location - The URL for further interactions with this call
201 Created * Location - The URL for further interactions with this call
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -334,7 +334,7 @@ private okhttp3.Call getCallStateValidateBeforeCall(String accountId, String cal * @http.response.details
Status Code Description Response Headers
200 Call found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -360,7 +360,7 @@ public CallState getCallState(String accountId, String callId) throws ApiExcepti * @http.response.details
Status Code Description Response Headers
200 Call found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -388,7 +388,7 @@ public ApiResponse getCallStateWithHttpInfo(String accountId, String * @http.response.details
Status Code Description Response Headers
200 Call found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -422,7 +422,7 @@ public okhttp3.Call getCallStateAsync(String accountId, String callId, final Api * @http.response.details
Status Code Description Response Headers
200 Call found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -533,7 +533,7 @@ private okhttp3.Call listCallsValidateBeforeCall(String accountId, String to, St * @http.response.details
Status Code Description Response Headers
200 Calls retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -565,7 +565,7 @@ public List listCalls(String accountId, String to, String from, Strin * @http.response.details
Status Code Description Response Headers
200 Calls retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -599,7 +599,7 @@ public ApiResponse> listCallsWithHttpInfo(String accountId, Stri * @http.response.details
Status Code Description Response Headers
200 Calls retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -628,7 +628,7 @@ public okhttp3.Call listCallsAsync(String accountId, String to, String from, Str * @http.response.details
Status Code Description Response Headers
200 Calls retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -718,7 +718,7 @@ private okhttp3.Call updateCallValidateBeforeCall(String accountId, String callI * @http.response.details
Status Code Description Response Headers
200 Call was successfully modified. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -745,7 +745,7 @@ public void updateCall(String accountId, String callId, UpdateCall updateCall) t * @http.response.details
Status Code Description Response Headers
200 Call was successfully modified. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -774,7 +774,7 @@ public ApiResponse updateCallWithHttpInfo(String accountId, String callId, * @http.response.details
Status Code Description Response Headers
200 Call was successfully modified. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + diff --git a/src/main/java/com/bandwidth/sdk/api/ConferencesApi.java b/src/main/java/com/bandwidth/sdk/api/ConferencesApi.java index 889d8630..650e00e5 100644 --- a/src/main/java/com/bandwidth/sdk/api/ConferencesApi.java +++ b/src/main/java/com/bandwidth/sdk/api/ConferencesApi.java @@ -89,7 +89,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @http.response.details
Status Code Description Response Headers
200 Call was successfully modified. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -181,7 +181,7 @@ private okhttp3.Call downloadConferenceRecordingValidateBeforeCall(String accoun * @http.response.details
Status Code Description Response Headers
200 Media found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -208,7 +208,7 @@ public File downloadConferenceRecording(String accountId, String conferenceId, S * @http.response.details
Status Code Description Response Headers
200 Media found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -237,7 +237,7 @@ public ApiResponse downloadConferenceRecordingWithHttpInfo(String accountI * @http.response.details
Status Code Description Response Headers
200 Media found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -265,7 +265,7 @@ public okhttp3.Call downloadConferenceRecordingAsync(String accountId, String co * @http.response.details
Status Code Description Response Headers
200 Media found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -348,7 +348,7 @@ private okhttp3.Call getConferenceValidateBeforeCall(String accountId, String co * @http.response.details
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -374,7 +374,7 @@ public Conference getConference(String accountId, String conferenceId) throws Ap * @http.response.details
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -402,7 +402,7 @@ public ApiResponse getConferenceWithHttpInfo(String accountId, Strin * @http.response.details
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -431,7 +431,7 @@ public okhttp3.Call getConferenceAsync(String accountId, String conferenceId, fi * @http.response.details
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -521,7 +521,7 @@ private okhttp3.Call getConferenceMemberValidateBeforeCall(String accountId, Str * @http.response.details
Status Code Description Response Headers
200 Conference member found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -548,7 +548,7 @@ public ConferenceMember getConferenceMember(String accountId, String conferenceI * @http.response.details
Status Code Description Response Headers
200 Conference member found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -577,7 +577,7 @@ public ApiResponse getConferenceMemberWithHttpInfo(String acco * @http.response.details
Status Code Description Response Headers
200 Conference member found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -606,7 +606,7 @@ public okhttp3.Call getConferenceMemberAsync(String accountId, String conference * @http.response.details
Status Code Description Response Headers
200 Conference member found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -696,7 +696,7 @@ private okhttp3.Call getConferenceRecordingValidateBeforeCall(String accountId, * @http.response.details
Status Code Description Response Headers
200 Conference recording found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -723,7 +723,7 @@ public ConferenceRecordingMetadata getConferenceRecording(String accountId, Stri * @http.response.details
Status Code Description Response Headers
200 Conference recording found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -752,7 +752,7 @@ public ApiResponse getConferenceRecordingWithHttpIn * @http.response.details
Status Code Description Response Headers
200 Conference recording found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -780,7 +780,7 @@ public okhttp3.Call getConferenceRecordingAsync(String accountId, String confere * @http.response.details
Status Code Description Response Headers
200 Conference recording found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -863,7 +863,7 @@ private okhttp3.Call listConferenceRecordingsValidateBeforeCall(String accountId * @http.response.details
Status Code Description Response Headers
200 Conference recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -889,7 +889,7 @@ public List listConferenceRecordings(String account * @http.response.details
Status Code Description Response Headers
200 Conference recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -917,7 +917,7 @@ public ApiResponse> listConferenceRecordingsWi * @http.response.details
Status Code Description Response Headers
200 Conference recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -949,7 +949,7 @@ public okhttp3.Call listConferenceRecordingsAsync(String accountId, String confe * @http.response.details
Status Code Description Response Headers
200 Conference recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1050,7 +1050,7 @@ private okhttp3.Call listConferencesValidateBeforeCall(String accountId, String * @http.response.details
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1080,7 +1080,7 @@ public List listConferences(String accountId, String name, String mi * @http.response.details
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1112,7 +1112,7 @@ public ApiResponse> listConferencesWithHttpInfo(String accountI * @http.response.details
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + diff --git a/src/main/java/com/bandwidth/sdk/api/MessagesApi.java b/src/main/java/com/bandwidth/sdk/api/MessagesApi.java index cf9c9914..6f2b1dd6 100644 --- a/src/main/java/com/bandwidth/sdk/api/MessagesApi.java +++ b/src/main/java/com/bandwidth/sdk/api/MessagesApi.java @@ -35,6 +35,7 @@ import com.bandwidth.sdk.model.MessageTypeEnum; import com.bandwidth.sdk.model.MessagesList; import com.bandwidth.sdk.model.MessagingRequestError; +import com.bandwidth.sdk.model.Region; import java.lang.reflect.Type; import java.util.ArrayList; @@ -262,6 +263,7 @@ public okhttp3.Call createMessageAsync(String accountId, MessageRequest messageR * @param pageToken A base64 encoded value used for pagination of results. (optional) * @param limit The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) * @param limitTotalCount When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. (optional) + * @param region The region to search in. One of US or EU. (optional, default to US) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -278,7 +280,7 @@ public okhttp3.Call createMessageAsync(String accountId, MessageRequest messageR
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
500 Internal Server Error -
*/ - public okhttp3.Call listMessagesCall(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMessagesCall(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount, Region region, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { "https://messaging.bandwidth.com/api/v2" }; @@ -364,6 +366,10 @@ public okhttp3.Call listMessagesCall(String accountId, String messageId, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("limitTotalCount", limitTotalCount)); } + if (region != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("region", region)); + } + final String[] localVarAccepts = { "application/json" }; @@ -384,13 +390,13 @@ public okhttp3.Call listMessagesCall(String accountId, String messageId, String } @SuppressWarnings("rawtypes") - private okhttp3.Call listMessagesValidateBeforeCall(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMessagesValidateBeforeCall(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount, Region region, final ApiCallback _callback) throws ApiException { // verify the required parameter 'accountId' is set if (accountId == null) { throw new ApiException("Missing the required parameter 'accountId' when calling listMessages(Async)"); } - return listMessagesCall(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, _callback); + return listMessagesCall(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, region, _callback); } @@ -413,6 +419,7 @@ private okhttp3.Call listMessagesValidateBeforeCall(String accountId, String mes * @param pageToken A base64 encoded value used for pagination of results. (optional) * @param limit The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) * @param limitTotalCount When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. (optional) + * @param region The region to search in. One of US or EU. (optional, default to US) * @return MessagesList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -428,8 +435,8 @@ private okhttp3.Call listMessagesValidateBeforeCall(String accountId, String mes 500 Internal Server Error - */ - public MessagesList listMessages(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount) throws ApiException { - ApiResponse localVarResp = listMessagesWithHttpInfo(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount); + public MessagesList listMessages(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount, Region region) throws ApiException { + ApiResponse localVarResp = listMessagesWithHttpInfo(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, region); return localVarResp.getData(); } @@ -452,6 +459,7 @@ public MessagesList listMessages(String accountId, String messageId, String sour * @param pageToken A base64 encoded value used for pagination of results. (optional) * @param limit The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) * @param limitTotalCount When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. (optional) + * @param region The region to search in. One of US or EU. (optional, default to US) * @return ApiResponse<MessagesList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -467,8 +475,8 @@ public MessagesList listMessages(String accountId, String messageId, String sour 500 Internal Server Error - */ - public ApiResponse listMessagesWithHttpInfo(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount) throws ApiException { - okhttp3.Call localVarCall = listMessagesValidateBeforeCall(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, null); + public ApiResponse listMessagesWithHttpInfo(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount, Region region) throws ApiException { + okhttp3.Call localVarCall = listMessagesValidateBeforeCall(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, region, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -492,6 +500,7 @@ public ApiResponse listMessagesWithHttpInfo(String accountId, Stri * @param pageToken A base64 encoded value used for pagination of results. (optional) * @param limit The maximum records requested in search result. Default 100. The sum of limit and after cannot be more than 10000. (optional) * @param limitTotalCount When set to true, the response's totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. (optional) + * @param region The region to search in. One of US or EU. (optional, default to US) * @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 @@ -508,9 +517,9 @@ public ApiResponse listMessagesWithHttpInfo(String accountId, Stri 500 Internal Server Error - */ - public okhttp3.Call listMessagesAsync(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listMessagesAsync(String accountId, String messageId, String sourceTn, String destinationTn, MessageStatusEnum messageStatus, ListMessageDirectionEnum messageDirection, String carrierName, MessageTypeEnum messageType, Integer errorCode, String fromDateTime, String toDateTime, String campaignId, String sort, String pageToken, Integer limit, Boolean limitTotalCount, Region region, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listMessagesValidateBeforeCall(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, _callback); + okhttp3.Call localVarCall = listMessagesValidateBeforeCall(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, region, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/com/bandwidth/sdk/api/RecordingsApi.java b/src/main/java/com/bandwidth/sdk/api/RecordingsApi.java index 5d6639bf..07b69c33 100644 --- a/src/main/java/com/bandwidth/sdk/api/RecordingsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/RecordingsApi.java @@ -601,7 +601,7 @@ public okhttp3.Call deleteRecordingTranscriptionAsync(String accountId, String c * @http.response.details - + @@ -693,7 +693,7 @@ private okhttp3.Call downloadCallRecordingValidateBeforeCall(String accountId, S * @http.response.details
Status Code Description Response Headers
200 Media found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -720,7 +720,7 @@ public File downloadCallRecording(String accountId, String callId, String record * @http.response.details
Status Code Description Response Headers
200 Media found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -749,7 +749,7 @@ public ApiResponse downloadCallRecordingWithHttpInfo(String accountId, Str * @http.response.details
Status Code Description Response Headers
200 Media found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -778,7 +778,7 @@ public okhttp3.Call downloadCallRecordingAsync(String accountId, String callId, * @http.response.details
Status Code Description Response Headers
200 Media found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -868,7 +868,7 @@ private okhttp3.Call getCallRecordingValidateBeforeCall(String accountId, String * @http.response.details
Status Code Description Response Headers
200 Recording found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -895,7 +895,7 @@ public CallRecordingMetadata getCallRecording(String accountId, String callId, S * @http.response.details
Status Code Description Response Headers
200 Recording found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -924,7 +924,7 @@ public ApiResponse getCallRecordingWithHttpInfo(String ac * @http.response.details
Status Code Description Response Headers
200 Recording found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -953,7 +953,7 @@ public okhttp3.Call getCallRecordingAsync(String accountId, String callId, Strin * @http.response.details
Status Code Description Response Headers
200 Recording found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1043,7 +1043,7 @@ private okhttp3.Call getRecordingTranscriptionValidateBeforeCall(String accountI * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1070,7 +1070,7 @@ public RecordingTranscriptions getRecordingTranscription(String accountId, Strin * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1099,7 +1099,7 @@ public ApiResponse getRecordingTranscriptionWithHttpInf * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1130,7 +1130,7 @@ public okhttp3.Call getRecordingTranscriptionAsync(String accountId, String call * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1226,7 +1226,7 @@ private okhttp3.Call listAccountCallRecordingsValidateBeforeCall(String accountI * @http.response.details
Status Code Description Response Headers
200 Recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1255,7 +1255,7 @@ public List listAccountCallRecordings(String accountId, S * @http.response.details
Status Code Description Response Headers
200 Recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1286,7 +1286,7 @@ public ApiResponse> listAccountCallRecordingsWithHtt * @http.response.details
Status Code Description Response Headers
200 Recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1314,7 +1314,7 @@ public okhttp3.Call listAccountCallRecordingsAsync(String accountId, String to, * @http.response.details
Status Code Description Response Headers
200 Recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1397,7 +1397,7 @@ private okhttp3.Call listCallRecordingsValidateBeforeCall(String accountId, Stri * @http.response.details
Status Code Description Response Headers
200 Recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1423,7 +1423,7 @@ public List listCallRecordings(String accountId, String c * @http.response.details
Status Code Description Response Headers
200 Recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1451,7 +1451,7 @@ public ApiResponse> listCallRecordingsWithHttpInfo(S * @http.response.details
Status Code Description Response Headers
200 Recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1661,7 +1661,7 @@ public okhttp3.Call transcribeCallRecordingAsync(String accountId, String callId * @http.response.details
Status Code Description Response Headers
200 Recordings retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1750,7 +1750,7 @@ private okhttp3.Call updateCallRecordingStateValidateBeforeCall(String accountId * @http.response.details
Status Code Description Response Headers
200 Recording state was successfully modified. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1776,7 +1776,7 @@ public void updateCallRecordingState(String accountId, String callId, UpdateCall * @http.response.details
Status Code Description Response Headers
200 Recording state was successfully modified. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -1804,7 +1804,7 @@ public ApiResponse updateCallRecordingStateWithHttpInfo(String accountId, * @http.response.details
Status Code Description Response Headers
200 Recording state was successfully modified. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + diff --git a/src/main/java/com/bandwidth/sdk/api/StatisticsApi.java b/src/main/java/com/bandwidth/sdk/api/StatisticsApi.java index 0be3310e..91782d1f 100644 --- a/src/main/java/com/bandwidth/sdk/api/StatisticsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/StatisticsApi.java @@ -82,7 +82,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @http.response.details
Status Code Description Response Headers
200 Recording state was successfully modified. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -158,7 +158,7 @@ private okhttp3.Call getStatisticsValidateBeforeCall(String accountId, final Api * @http.response.details
Status Code Description Response Headers
200 Statistics Found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -183,7 +183,7 @@ public AccountStatistics getStatistics(String accountId) throws ApiException { * @http.response.details
Status Code Description Response Headers
200 Statistics Found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -210,7 +210,7 @@ public ApiResponse getStatisticsWithHttpInfo(String accountId * @http.response.details
Status Code Description Response Headers
200 Statistics Found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + diff --git a/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java b/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java index 1dbd3cc3..9af8107d 100644 --- a/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java @@ -85,7 +85,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @http.response.details
Status Code Description Response Headers
200 Statistics Found -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -174,7 +174,7 @@ private okhttp3.Call deleteRealTimeTranscriptionValidateBeforeCall(String accoun * @http.response.details
Status Code Description Response Headers
200 Transcription data was deleted. -
200 No Content -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -200,7 +200,7 @@ public void deleteRealTimeTranscription(String accountId, String callId, String * @http.response.details
Status Code Description Response Headers
200 Transcription data was deleted. -
200 No Content -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -228,7 +228,7 @@ public ApiResponse deleteRealTimeTranscriptionWithHttpInfo(String accountI * @http.response.details
Status Code Description Response Headers
200 Transcription data was deleted. -
200 No Content -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -256,7 +256,7 @@ public okhttp3.Call deleteRealTimeTranscriptionAsync(String accountId, String ca * @http.response.details
Status Code Description Response Headers
200 Transcription data was deleted. -
200 No Content -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -346,7 +346,7 @@ private okhttp3.Call getRealTimeTranscriptionValidateBeforeCall(String accountId * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -373,7 +373,7 @@ public CallTranscriptionResponse getRealTimeTranscription(String accountId, Stri * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -402,7 +402,7 @@ public ApiResponse getRealTimeTranscriptionWithHttpIn * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -430,7 +430,7 @@ public okhttp3.Call getRealTimeTranscriptionAsync(String accountId, String callI * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -513,7 +513,7 @@ private okhttp3.Call listRealTimeTranscriptionsValidateBeforeCall(String account * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -539,7 +539,7 @@ public List listRealTimeTranscriptions(String account * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -567,7 +567,7 @@ public ApiResponse> listRealTimeTranscriptionsWi * @http.response.details
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + diff --git a/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java index a091f358..6cf0d0c8 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") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java index 4d95d13c..8773cf97 100644 --- a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java @@ -17,15 +17,13 @@ import com.bandwidth.sdk.Pair; import java.net.URI; -import java.util.List; import java.util.Map; -import java.util.Optional; -import java.util.function.Supplier; +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") public class HttpBearerAuth implements Authentication { private final String scheme; - private Supplier tokenSupplier; + private String bearerToken; public HttpBearerAuth(String scheme) { this.scheme = scheme; @@ -37,7 +35,7 @@ public HttpBearerAuth(String scheme) { * @return The bearer token */ public String getBearerToken() { - return tokenSupplier.get(); + return bearerToken; } /** @@ -46,22 +44,12 @@ public String getBearerToken() { * @param bearerToken The bearer token to send in the Authorization header */ public void setBearerToken(String bearerToken) { - this.tokenSupplier = () -> bearerToken; - } - - /** - * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header. - * - * @param tokenSupplier The supplier of bearer tokens to send in the Authorization header - */ - public void setBearerToken(Supplier tokenSupplier) { - this.tokenSupplier = tokenSupplier; + this.bearerToken = bearerToken; } @Override public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { - String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); if (bearerToken == null) { return; } diff --git a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java index 60cd0928..dbe969d8 100644 --- a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java @@ -18,10 +18,12 @@ import java.lang.reflect.Type; import java.util.Map; +//import com.fasterxml.jackson.annotation.JsonValue; + /** * 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") 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..b27df3b4 100644 --- a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java +++ b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class AccountStatistics { public static final String SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE = "currentCallQueueSize"; @SerializedName(SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE) @@ -63,6 +64,7 @@ public AccountStatistics() { } public AccountStatistics currentCallQueueSize(Integer currentCallQueueSize) { + this.currentCallQueueSize = currentCallQueueSize; return this; } @@ -76,12 +78,14 @@ public Integer getCurrentCallQueueSize() { return currentCallQueueSize; } + public void setCurrentCallQueueSize(Integer currentCallQueueSize) { this.currentCallQueueSize = currentCallQueueSize; } public AccountStatistics maxCallQueueSize(Integer maxCallQueueSize) { + this.maxCallQueueSize = maxCallQueueSize; return this; } @@ -95,6 +99,7 @@ public Integer getMaxCallQueueSize() { return maxCallQueueSize; } + public void setMaxCallQueueSize(Integer maxCallQueueSize) { this.maxCallQueueSize = maxCallQueueSize; } @@ -243,12 +248,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java index 2dfc3428..5d7a6c31 100644 --- a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java @@ -22,6 +22,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -46,6 +47,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +55,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") public class AnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -89,7 +91,7 @@ public class AnswerCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -115,6 +117,7 @@ public AnswerCallback() { } public AnswerCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -128,12 +131,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public AnswerCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -147,12 +152,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public AnswerCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -166,12 +173,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public AnswerCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -185,12 +194,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public AnswerCallback from(String from) { + this.from = from; return this; } @@ -204,12 +215,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public AnswerCallback to(String to) { + this.to = to; return this; } @@ -223,12 +236,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public AnswerCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -242,12 +257,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public AnswerCallback callId(String callId) { + this.callId = callId; return this; } @@ -261,12 +278,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public AnswerCallback callUrl(String callUrl) { + public AnswerCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -276,16 +295,18 @@ public AnswerCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public AnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -299,12 +320,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public AnswerCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -318,12 +341,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public AnswerCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -337,12 +362,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public AnswerCallback tag(String tag) { + this.tag = tag; return this; } @@ -356,12 +383,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public AnswerCallback machineDetectionResult(MachineDetectionResult machineDetectionResult) { + this.machineDetectionResult = machineDetectionResult; return this; } @@ -375,6 +404,7 @@ public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; } + public void setMachineDetectionResult(MachineDetectionResult machineDetectionResult) { this.machineDetectionResult = machineDetectionResult; } @@ -555,10 +585,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -602,12 +628,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java index c297c96f..b739d764 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class BridgeCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -88,7 +90,7 @@ public class BridgeCompleteCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -122,6 +124,7 @@ public BridgeCompleteCallback() { } public BridgeCompleteCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -135,12 +138,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public BridgeCompleteCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -154,12 +159,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public BridgeCompleteCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -173,12 +180,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public BridgeCompleteCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -192,12 +201,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public BridgeCompleteCallback from(String from) { + this.from = from; return this; } @@ -211,12 +222,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public BridgeCompleteCallback to(String to) { + this.to = to; return this; } @@ -230,12 +243,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public BridgeCompleteCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -249,12 +264,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public BridgeCompleteCallback callId(String callId) { + this.callId = callId; return this; } @@ -268,12 +285,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public BridgeCompleteCallback callUrl(String callUrl) { + public BridgeCompleteCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -283,16 +302,18 @@ public BridgeCompleteCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public BridgeCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -306,12 +327,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public BridgeCompleteCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -325,12 +348,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public BridgeCompleteCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -344,12 +369,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public BridgeCompleteCallback tag(String tag) { + this.tag = tag; return this; } @@ -363,12 +390,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public BridgeCompleteCallback cause(String cause) { + this.cause = cause; return this; } @@ -382,12 +411,14 @@ public String getCause() { return cause; } + public void setCause(String cause) { this.cause = cause; } public BridgeCompleteCallback errorMessage(String errorMessage) { + this.errorMessage = errorMessage; return this; } @@ -401,12 +432,14 @@ public String getErrorMessage() { return errorMessage; } + public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public BridgeCompleteCallback errorId(String errorId) { + this.errorId = errorId; return this; } @@ -420,6 +453,7 @@ public String getErrorId() { return errorId; } + public void setErrorId(String errorId) { this.errorId = errorId; } @@ -606,10 +640,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -658,12 +688,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java index 5b6fde22..7f02e1fc 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class BridgeTargetCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -88,7 +90,7 @@ public class BridgeTargetCompleteCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -110,6 +112,7 @@ public BridgeTargetCompleteCallback() { } public BridgeTargetCompleteCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -123,12 +126,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public BridgeTargetCompleteCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -142,12 +147,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public BridgeTargetCompleteCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -161,12 +168,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public BridgeTargetCompleteCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -180,12 +189,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public BridgeTargetCompleteCallback from(String from) { + this.from = from; return this; } @@ -199,12 +210,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public BridgeTargetCompleteCallback to(String to) { + this.to = to; return this; } @@ -218,12 +231,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public BridgeTargetCompleteCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -237,12 +252,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public BridgeTargetCompleteCallback callId(String callId) { + this.callId = callId; return this; } @@ -256,12 +273,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public BridgeTargetCompleteCallback callUrl(String callUrl) { + public BridgeTargetCompleteCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -271,16 +290,18 @@ public BridgeTargetCompleteCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public BridgeTargetCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -294,12 +315,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public BridgeTargetCompleteCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -313,12 +336,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public BridgeTargetCompleteCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -332,12 +357,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public BridgeTargetCompleteCallback tag(String tag) { + this.tag = tag; return this; } @@ -351,6 +378,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -528,10 +556,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -571,12 +595,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java b/src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java index ddf8bbde..f0891c9c 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public CallDirectionEnum read(final JsonReader jsonReader) throws IOException { return CallDirectionEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - CallDirectionEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java index 3ebe6945..a014328d 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java @@ -48,6 +48,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,7 +56,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") public class CallRecordingMetadata { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -137,6 +138,7 @@ public CallRecordingMetadata() { } public CallRecordingMetadata applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -150,12 +152,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CallRecordingMetadata accountId(String accountId) { + this.accountId = accountId; return this; } @@ -169,12 +173,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public CallRecordingMetadata callId(String callId) { + this.callId = callId; return this; } @@ -188,12 +194,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public CallRecordingMetadata parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -207,12 +215,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public CallRecordingMetadata recordingId(String recordingId) { + this.recordingId = recordingId; return this; } @@ -226,12 +236,14 @@ public String getRecordingId() { return recordingId; } + public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public CallRecordingMetadata to(String to) { + this.to = to; return this; } @@ -245,12 +257,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public CallRecordingMetadata from(String from) { + this.from = from; return this; } @@ -264,12 +278,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public CallRecordingMetadata transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -283,12 +299,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public CallRecordingMetadata transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -302,12 +320,14 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public CallRecordingMetadata duration(String duration) { + this.duration = duration; return this; } @@ -321,12 +341,14 @@ public String getDuration() { return duration; } + public void setDuration(String duration) { this.duration = duration; } public CallRecordingMetadata direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -340,12 +362,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public CallRecordingMetadata channels(Integer channels) { + this.channels = channels; return this; } @@ -359,12 +383,14 @@ public Integer getChannels() { return channels; } + public void setChannels(Integer channels) { this.channels = channels; } public CallRecordingMetadata startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -378,12 +404,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public CallRecordingMetadata endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -397,12 +425,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public CallRecordingMetadata fileFormat(FileFormatEnum fileFormat) { + this.fileFormat = fileFormat; return this; } @@ -416,12 +446,14 @@ public FileFormatEnum getFileFormat() { return fileFormat; } + public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public CallRecordingMetadata status(String status) { + this.status = status; return this; } @@ -435,12 +467,14 @@ public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } public CallRecordingMetadata mediaUrl(URI mediaUrl) { + this.mediaUrl = mediaUrl; return this; } @@ -454,12 +488,14 @@ public URI getMediaUrl() { return mediaUrl; } + public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public CallRecordingMetadata transcription(RecordingTranscriptionMetadata transcription) { + this.transcription = transcription; return this; } @@ -473,12 +509,14 @@ public RecordingTranscriptionMetadata getTranscription() { return transcription; } + public void setTranscription(RecordingTranscriptionMetadata transcription) { this.transcription = transcription; } public CallRecordingMetadata recordingName(String recordingName) { + this.recordingName = recordingName; return this; } @@ -492,6 +530,7 @@ public String getRecordingName() { return recordingName; } + public void setRecordingName(String recordingName) { this.recordingName = recordingName; } @@ -702,14 +741,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } - // validate the optional field `fileFormat` - if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { - FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); - } if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } @@ -753,12 +784,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallState.java b/src/main/java/com/bandwidth/sdk/model/CallState.java index d0f13890..f9f2d025 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallState.java +++ b/src/main/java/com/bandwidth/sdk/model/CallState.java @@ -47,6 +47,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +55,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") public class CallState { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -132,6 +133,7 @@ public CallState() { } public CallState applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -145,12 +147,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CallState accountId(String accountId) { + this.accountId = accountId; return this; } @@ -164,12 +168,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public CallState callId(String callId) { + this.callId = callId; return this; } @@ -183,12 +189,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public CallState parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -202,12 +210,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public CallState to(String to) { + this.to = to; return this; } @@ -221,12 +231,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public CallState from(String from) { + this.from = from; return this; } @@ -240,12 +252,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public CallState direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -259,12 +273,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public CallState state(String state) { + this.state = state; return this; } @@ -278,12 +294,14 @@ public String getState() { return state; } + public void setState(String state) { this.state = state; } public CallState stirShaken(Map stirShaken) { + this.stirShaken = stirShaken; return this; } @@ -305,12 +323,14 @@ public Map getStirShaken() { return stirShaken; } + public void setStirShaken(Map stirShaken) { this.stirShaken = stirShaken; } public CallState identity(String identity) { + this.identity = identity; return this; } @@ -324,12 +344,14 @@ public String getIdentity() { return identity; } + public void setIdentity(String identity) { this.identity = identity; } public CallState enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -343,12 +365,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public CallState startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -362,12 +386,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public CallState answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -381,12 +407,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public CallState endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -400,12 +428,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public CallState disconnectCause(String disconnectCause) { + this.disconnectCause = disconnectCause; return this; } @@ -419,12 +449,14 @@ public String getDisconnectCause() { return disconnectCause; } + public void setDisconnectCause(String disconnectCause) { this.disconnectCause = disconnectCause; } public CallState errorMessage(String errorMessage) { + this.errorMessage = errorMessage; return this; } @@ -438,12 +470,14 @@ public String getErrorMessage() { return errorMessage; } + public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public CallState errorId(String errorId) { + this.errorId = errorId; return this; } @@ -457,12 +491,14 @@ public String getErrorId() { return errorId; } + public void setErrorId(String errorId) { this.errorId = errorId; } public CallState lastUpdate(OffsetDateTime lastUpdate) { + this.lastUpdate = lastUpdate; return this; } @@ -476,6 +512,7 @@ public OffsetDateTime getLastUpdate() { return lastUpdate; } + public void setLastUpdate(OffsetDateTime lastUpdate) { this.lastUpdate = lastUpdate; } @@ -671,10 +708,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("from") != null && !jsonObj.get("from").isJsonNull()) && !jsonObj.get("from").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `from` to be a primitive type in the JSON string but got `%s`", jsonObj.get("from").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } @@ -720,12 +753,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallStateEnum.java b/src/main/java/com/bandwidth/sdk/model/CallStateEnum.java index 64fd1045..24b1224c 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallStateEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallStateEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public CallStateEnum read(final JsonReader jsonReader) throws IOException { return CallStateEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - CallStateEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java index 6508819f..74370836 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class CallTranscription { public static final String SERIALIZED_NAME_DETECTED_LANGUAGE = "detectedLanguage"; @SerializedName(SERIALIZED_NAME_DETECTED_LANGUAGE) @@ -73,6 +74,7 @@ public CallTranscription() { } public CallTranscription detectedLanguage(CallTranscriptionDetectedLanguageEnum detectedLanguage) { + this.detectedLanguage = detectedLanguage; return this; } @@ -86,12 +88,14 @@ public CallTranscriptionDetectedLanguageEnum getDetectedLanguage() { return detectedLanguage; } + public void setDetectedLanguage(CallTranscriptionDetectedLanguageEnum detectedLanguage) { this.detectedLanguage = detectedLanguage; } public CallTranscription track(CallTranscriptionTrackEnum track) { + this.track = track; return this; } @@ -105,12 +109,14 @@ public CallTranscriptionTrackEnum getTrack() { return track; } + public void setTrack(CallTranscriptionTrackEnum track) { this.track = track; } public CallTranscription transcript(String transcript) { + this.transcript = transcript; return this; } @@ -124,12 +130,14 @@ public String getTranscript() { return transcript; } + public void setTranscript(String transcript) { this.transcript = transcript; } public CallTranscription confidence(Double confidence) { + this.confidence = confidence; return this; } @@ -145,6 +153,7 @@ public Double getConfidence() { return confidence; } + public void setConfidence(Double confidence) { this.confidence = confidence; } @@ -269,14 +278,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `detectedLanguage` - if (jsonObj.get("detectedLanguage") != null && !jsonObj.get("detectedLanguage").isJsonNull()) { - CallTranscriptionDetectedLanguageEnum.validateJsonElement(jsonObj.get("detectedLanguage")); - } - // validate the optional field `track` - if (jsonObj.get("track") != null && !jsonObj.get("track").isJsonNull()) { - CallTranscriptionTrackEnum.validateJsonElement(jsonObj.get("track")); - } if ((jsonObj.get("transcript") != null && !jsonObj.get("transcript").isJsonNull()) && !jsonObj.get("transcript").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `transcript` to be a primitive type in the JSON string but got `%s`", jsonObj.get("transcript").toString())); } @@ -310,12 +311,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnum.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnum.java index 6295e064..93170297 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,10 +70,5 @@ public CallTranscriptionDetectedLanguageEnum read(final JsonReader jsonReader) t return CallTranscriptionDetectedLanguageEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - CallTranscriptionDetectedLanguageEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java index fa0ccf13..a0f7f314 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class CallTranscriptionMetadata { public static final String SERIALIZED_NAME_TRANSCRIPTION_ID = "transcriptionId"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_ID) @@ -67,6 +68,7 @@ public CallTranscriptionMetadata() { } public CallTranscriptionMetadata transcriptionId(String transcriptionId) { + this.transcriptionId = transcriptionId; return this; } @@ -80,12 +82,14 @@ public String getTranscriptionId() { return transcriptionId; } + public void setTranscriptionId(String transcriptionId) { this.transcriptionId = transcriptionId; } public CallTranscriptionMetadata transcriptionName(String transcriptionName) { + this.transcriptionName = transcriptionName; return this; } @@ -99,12 +103,14 @@ public String getTranscriptionName() { return transcriptionName; } + public void setTranscriptionName(String transcriptionName) { this.transcriptionName = transcriptionName; } public CallTranscriptionMetadata transcriptionUrl(String transcriptionUrl) { + this.transcriptionUrl = transcriptionUrl; return this; } @@ -118,6 +124,7 @@ public String getTranscriptionUrl() { return transcriptionUrl; } + public void setTranscriptionUrl(String transcriptionUrl) { this.transcriptionUrl = transcriptionUrl; } @@ -278,12 +285,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java index 1814433e..f52be69c 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java @@ -45,6 +45,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +53,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") public class CallTranscriptionResponse { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -68,12 +69,13 @@ public class CallTranscriptionResponse { public static final String SERIALIZED_NAME_TRACKS = "tracks"; @SerializedName(SERIALIZED_NAME_TRACKS) - private List tracks = new ArrayList<>(); + private List tracks; public CallTranscriptionResponse() { } public CallTranscriptionResponse accountId(String accountId) { + this.accountId = accountId; return this; } @@ -87,12 +89,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public CallTranscriptionResponse callId(String callId) { + this.callId = callId; return this; } @@ -106,12 +110,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public CallTranscriptionResponse transcriptionId(String transcriptionId) { + this.transcriptionId = transcriptionId; return this; } @@ -125,12 +131,14 @@ public String getTranscriptionId() { return transcriptionId; } + public void setTranscriptionId(String transcriptionId) { this.transcriptionId = transcriptionId; } public CallTranscriptionResponse tracks(List tracks) { + this.tracks = tracks; return this; } @@ -152,6 +160,7 @@ public List getTracks() { return tracks; } + public void setTracks(List tracks) { this.tracks = tracks; } @@ -329,12 +338,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnum.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnum.java index 0d0089a7..8d607c37 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public CallTranscriptionTrackEnum read(final JsonReader jsonReader) throws IOExc return CallTranscriptionTrackEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - CallTranscriptionTrackEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallbackMethodEnum.java b/src/main/java/com/bandwidth/sdk/model/CallbackMethodEnum.java index 3e169433..fef1dcce 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallbackMethodEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallbackMethodEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public CallbackMethodEnum read(final JsonReader jsonReader) throws IOException { return CallbackMethodEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - CallbackMethodEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java index 59a827f8..5f0253ee 100644 --- a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class CodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -79,6 +80,7 @@ public CodeRequest() { } public CodeRequest to(String to) { + this.to = to; return this; } @@ -92,12 +94,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public CodeRequest from(String from) { + this.from = from; return this; } @@ -111,12 +115,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public CodeRequest applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -130,12 +136,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CodeRequest scope(String scope) { + this.scope = scope; return this; } @@ -149,12 +157,14 @@ public String getScope() { return scope; } + public void setScope(String scope) { this.scope = scope; } public CodeRequest message(String message) { + this.message = message; return this; } @@ -168,12 +178,14 @@ public String getMessage() { return message; } + public void setMessage(String message) { this.message = message; } public CodeRequest digits(Integer digits) { + this.digits = digits; return this; } @@ -189,6 +201,7 @@ public Integer getDigits() { return digits; } + public void setDigits(Integer digits) { this.digits = digits; } @@ -376,12 +389,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/Conference.java b/src/main/java/com/bandwidth/sdk/model/Conference.java index 509a0b15..91f59645 100644 --- a/src/main/java/com/bandwidth/sdk/model/Conference.java +++ b/src/main/java/com/bandwidth/sdk/model/Conference.java @@ -49,6 +49,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -56,7 +57,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") public class Conference { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -94,6 +95,7 @@ public Conference() { } public Conference id(String id) { + this.id = id; return this; } @@ -107,12 +109,14 @@ public String getId() { return id; } + public void setId(String id) { this.id = id; } public Conference name(String name) { + this.name = name; return this; } @@ -126,12 +130,14 @@ public String getName() { return name; } + public void setName(String name) { this.name = name; } public Conference createdTime(OffsetDateTime createdTime) { + this.createdTime = createdTime; return this; } @@ -145,12 +151,14 @@ public OffsetDateTime getCreatedTime() { return createdTime; } + public void setCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; } public Conference completedTime(OffsetDateTime completedTime) { + this.completedTime = completedTime; return this; } @@ -164,12 +172,14 @@ public OffsetDateTime getCompletedTime() { return completedTime; } + public void setCompletedTime(OffsetDateTime completedTime) { this.completedTime = completedTime; } public Conference conferenceEventUrl(URI conferenceEventUrl) { + this.conferenceEventUrl = conferenceEventUrl; return this; } @@ -183,12 +193,14 @@ public URI getConferenceEventUrl() { return conferenceEventUrl; } + public void setConferenceEventUrl(URI conferenceEventUrl) { this.conferenceEventUrl = conferenceEventUrl; } public Conference conferenceEventMethod(CallbackMethodEnum conferenceEventMethod) { + this.conferenceEventMethod = conferenceEventMethod; return this; } @@ -202,12 +214,14 @@ public CallbackMethodEnum getConferenceEventMethod() { return conferenceEventMethod; } + public void setConferenceEventMethod(CallbackMethodEnum conferenceEventMethod) { this.conferenceEventMethod = conferenceEventMethod; } public Conference tag(String tag) { + this.tag = tag; return this; } @@ -221,12 +235,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public Conference activeMembers(List activeMembers) { + this.activeMembers = activeMembers; return this; } @@ -248,6 +264,7 @@ public List getActiveMembers() { return activeMembers; } + public void setActiveMembers(List activeMembers) { this.activeMembers = activeMembers; } @@ -404,10 +421,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("conferenceEventUrl") != null && !jsonObj.get("conferenceEventUrl").isJsonNull()) && !jsonObj.get("conferenceEventUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `conferenceEventUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conferenceEventUrl").toString())); } - // validate the optional field `conferenceEventMethod` - if (jsonObj.get("conferenceEventMethod") != null && !jsonObj.get("conferenceEventMethod").isJsonNull()) { - CallbackMethodEnum.validateJsonElement(jsonObj.get("conferenceEventMethod")); - } if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } @@ -455,12 +468,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java index 257c8bad..d0987304 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class ConferenceCompletedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -77,6 +78,7 @@ public ConferenceCompletedCallback() { } public ConferenceCompletedCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -90,12 +92,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceCompletedCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -109,12 +113,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceCompletedCallback conferenceId(String conferenceId) { + this.conferenceId = conferenceId; return this; } @@ -128,12 +134,14 @@ public String getConferenceId() { return conferenceId; } + public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceCompletedCallback name(String name) { + this.name = name; return this; } @@ -147,12 +155,14 @@ public String getName() { return name; } + public void setName(String name) { this.name = name; } public ConferenceCompletedCallback tag(String tag) { + this.tag = tag; return this; } @@ -166,6 +176,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -346,12 +357,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java index d0cb449d..705be5c1 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class ConferenceCreatedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -77,6 +78,7 @@ public ConferenceCreatedCallback() { } public ConferenceCreatedCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -90,12 +92,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceCreatedCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -109,12 +113,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceCreatedCallback conferenceId(String conferenceId) { + this.conferenceId = conferenceId; return this; } @@ -128,12 +134,14 @@ public String getConferenceId() { return conferenceId; } + public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceCreatedCallback name(String name) { + this.name = name; return this; } @@ -147,12 +155,14 @@ public String getName() { return name; } + public void setName(String name) { this.name = name; } public ConferenceCreatedCallback tag(String tag) { + this.tag = tag; return this; } @@ -166,6 +176,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -346,12 +357,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java index ebae4f4a..d0bfae44 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class ConferenceMember { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -64,7 +66,7 @@ public class ConferenceMember { public static final String SERIALIZED_NAME_MEMBER_URL = "memberUrl"; @SerializedName(SERIALIZED_NAME_MEMBER_URL) - private String memberUrl; + private URI memberUrl; public static final String SERIALIZED_NAME_MUTE = "mute"; @SerializedName(SERIALIZED_NAME_MUTE) @@ -82,6 +84,7 @@ public ConferenceMember() { } public ConferenceMember callId(String callId) { + this.callId = callId; return this; } @@ -95,12 +98,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public ConferenceMember conferenceId(String conferenceId) { + this.conferenceId = conferenceId; return this; } @@ -114,12 +119,14 @@ public String getConferenceId() { return conferenceId; } + public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceMember memberUrl(String memberUrl) { + public ConferenceMember memberUrl(URI memberUrl) { + this.memberUrl = memberUrl; return this; } @@ -129,16 +136,18 @@ public ConferenceMember memberUrl(String memberUrl) { * @return memberUrl **/ @javax.annotation.Nullable - public String getMemberUrl() { + public URI getMemberUrl() { return memberUrl; } - public void setMemberUrl(String memberUrl) { + + public void setMemberUrl(URI memberUrl) { this.memberUrl = memberUrl; } public ConferenceMember mute(Boolean mute) { + this.mute = mute; return this; } @@ -152,12 +161,14 @@ public Boolean getMute() { return mute; } + public void setMute(Boolean mute) { this.mute = mute; } public ConferenceMember hold(Boolean hold) { + this.hold = hold; return this; } @@ -171,12 +182,14 @@ public Boolean getHold() { return hold; } + public void setHold(Boolean hold) { this.hold = hold; } public ConferenceMember callIdsToCoach(List callIdsToCoach) { + this.callIdsToCoach = callIdsToCoach; return this; } @@ -198,6 +211,7 @@ public List getCallIdsToCoach() { return callIdsToCoach; } + public void setCallIdsToCoach(List callIdsToCoach) { this.callIdsToCoach = callIdsToCoach; } @@ -382,12 +396,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java index ce9ca9f6..a58454d1 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class ConferenceMemberExitCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -89,6 +90,7 @@ public ConferenceMemberExitCallback() { } public ConferenceMemberExitCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -102,12 +104,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceMemberExitCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -121,12 +125,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceMemberExitCallback conferenceId(String conferenceId) { + this.conferenceId = conferenceId; return this; } @@ -140,12 +146,14 @@ public String getConferenceId() { return conferenceId; } + public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceMemberExitCallback name(String name) { + this.name = name; return this; } @@ -159,12 +167,14 @@ public String getName() { return name; } + public void setName(String name) { this.name = name; } public ConferenceMemberExitCallback from(String from) { + this.from = from; return this; } @@ -178,12 +188,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public ConferenceMemberExitCallback to(String to) { + this.to = to; return this; } @@ -197,12 +209,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public ConferenceMemberExitCallback callId(String callId) { + this.callId = callId; return this; } @@ -216,12 +230,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public ConferenceMemberExitCallback tag(String tag) { + this.tag = tag; return this; } @@ -235,6 +251,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -433,12 +450,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java index 0aeecc46..16070f9f 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class ConferenceMemberJoinCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -89,6 +90,7 @@ public ConferenceMemberJoinCallback() { } public ConferenceMemberJoinCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -102,12 +104,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceMemberJoinCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -121,12 +125,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceMemberJoinCallback conferenceId(String conferenceId) { + this.conferenceId = conferenceId; return this; } @@ -140,12 +146,14 @@ public String getConferenceId() { return conferenceId; } + public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceMemberJoinCallback name(String name) { + this.name = name; return this; } @@ -159,12 +167,14 @@ public String getName() { return name; } + public void setName(String name) { this.name = name; } public ConferenceMemberJoinCallback from(String from) { + this.from = from; return this; } @@ -178,12 +188,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public ConferenceMemberJoinCallback to(String to) { + this.to = to; return this; } @@ -197,12 +209,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public ConferenceMemberJoinCallback callId(String callId) { + this.callId = callId; return this; } @@ -216,12 +230,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public ConferenceMemberJoinCallback tag(String tag) { + this.tag = tag; return this; } @@ -235,6 +251,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -433,12 +450,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java index 2663f047..c0785daf 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class ConferenceRecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -115,6 +116,7 @@ public ConferenceRecordingAvailableCallback() { } public ConferenceRecordingAvailableCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -128,12 +130,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceRecordingAvailableCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -147,12 +151,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceRecordingAvailableCallback conferenceId(String conferenceId) { + this.conferenceId = conferenceId; return this; } @@ -166,12 +172,14 @@ public String getConferenceId() { return conferenceId; } + public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceRecordingAvailableCallback name(String name) { + this.name = name; return this; } @@ -185,12 +193,14 @@ public String getName() { return name; } + public void setName(String name) { this.name = name; } public ConferenceRecordingAvailableCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -204,12 +214,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public ConferenceRecordingAvailableCallback recordingId(String recordingId) { + this.recordingId = recordingId; return this; } @@ -223,12 +235,14 @@ public String getRecordingId() { return recordingId; } + public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public ConferenceRecordingAvailableCallback channels(Integer channels) { + this.channels = channels; return this; } @@ -242,12 +256,14 @@ public Integer getChannels() { return channels; } + public void setChannels(Integer channels) { this.channels = channels; } public ConferenceRecordingAvailableCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -261,12 +277,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public ConferenceRecordingAvailableCallback endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -280,12 +298,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public ConferenceRecordingAvailableCallback duration(String duration) { + this.duration = duration; return this; } @@ -299,12 +319,14 @@ public String getDuration() { return duration; } + public void setDuration(String duration) { this.duration = duration; } public ConferenceRecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { + this.fileFormat = fileFormat; return this; } @@ -318,12 +340,14 @@ public FileFormatEnum getFileFormat() { return fileFormat; } + public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public ConferenceRecordingAvailableCallback mediaUrl(URI mediaUrl) { + this.mediaUrl = mediaUrl; return this; } @@ -337,12 +361,14 @@ public URI getMediaUrl() { return mediaUrl; } + public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public ConferenceRecordingAvailableCallback tag(String tag) { + this.tag = tag; return this; } @@ -356,12 +382,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public ConferenceRecordingAvailableCallback status(String status) { + this.status = status; return this; } @@ -375,6 +403,7 @@ public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } @@ -558,10 +587,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } - // validate the optional field `fileFormat` - if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { - FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); - } if ((jsonObj.get("mediaUrl") != null && !jsonObj.get("mediaUrl").isJsonNull()) && !jsonObj.get("mediaUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `mediaUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mediaUrl").toString())); } @@ -601,12 +626,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java index 1dcb0d10..009b983f 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class ConferenceRecordingMetadata { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -107,6 +108,7 @@ public ConferenceRecordingMetadata() { } public ConferenceRecordingMetadata accountId(String accountId) { + this.accountId = accountId; return this; } @@ -120,12 +122,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public ConferenceRecordingMetadata conferenceId(String conferenceId) { + this.conferenceId = conferenceId; return this; } @@ -139,12 +143,14 @@ public String getConferenceId() { return conferenceId; } + public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceRecordingMetadata name(String name) { + this.name = name; return this; } @@ -158,12 +164,14 @@ public String getName() { return name; } + public void setName(String name) { this.name = name; } public ConferenceRecordingMetadata recordingId(String recordingId) { + this.recordingId = recordingId; return this; } @@ -177,12 +185,14 @@ public String getRecordingId() { return recordingId; } + public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public ConferenceRecordingMetadata duration(String duration) { + this.duration = duration; return this; } @@ -196,12 +206,14 @@ public String getDuration() { return duration; } + public void setDuration(String duration) { this.duration = duration; } public ConferenceRecordingMetadata channels(Integer channels) { + this.channels = channels; return this; } @@ -215,12 +227,14 @@ public Integer getChannels() { return channels; } + public void setChannels(Integer channels) { this.channels = channels; } public ConferenceRecordingMetadata startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -234,12 +248,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public ConferenceRecordingMetadata endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -253,12 +269,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public ConferenceRecordingMetadata fileFormat(FileFormatEnum fileFormat) { + this.fileFormat = fileFormat; return this; } @@ -272,12 +290,14 @@ public FileFormatEnum getFileFormat() { return fileFormat; } + public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public ConferenceRecordingMetadata status(String status) { + this.status = status; return this; } @@ -291,12 +311,14 @@ public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } public ConferenceRecordingMetadata mediaUrl(URI mediaUrl) { + this.mediaUrl = mediaUrl; return this; } @@ -310,12 +332,14 @@ public URI getMediaUrl() { return mediaUrl; } + public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public ConferenceRecordingMetadata recordingName(String recordingName) { + this.recordingName = recordingName; return this; } @@ -329,6 +353,7 @@ public String getRecordingName() { return recordingName; } + public void setRecordingName(String recordingName) { this.recordingName = recordingName; } @@ -503,10 +528,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } - // validate the optional field `fileFormat` - if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { - FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); - } if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } @@ -546,12 +567,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java index 0857f61d..6158fcbf 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class ConferenceRedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -77,6 +78,7 @@ public ConferenceRedirectCallback() { } public ConferenceRedirectCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -90,12 +92,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceRedirectCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -109,12 +113,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceRedirectCallback conferenceId(String conferenceId) { + this.conferenceId = conferenceId; return this; } @@ -128,12 +134,14 @@ public String getConferenceId() { return conferenceId; } + public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceRedirectCallback name(String name) { + this.name = name; return this; } @@ -147,12 +155,14 @@ public String getName() { return name; } + public void setName(String name) { this.name = name; } public ConferenceRedirectCallback tag(String tag) { + this.tag = tag; return this; } @@ -166,6 +176,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -346,12 +357,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceStateEnum.java b/src/main/java/com/bandwidth/sdk/model/ConferenceStateEnum.java index 8f457611..76446226 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceStateEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceStateEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public ConferenceStateEnum read(final JsonReader jsonReader) throws IOException return ConferenceStateEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ConferenceStateEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCall.java b/src/main/java/com/bandwidth/sdk/model/CreateCall.java index b232eccb..43f756c9 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCall.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class CreateCall { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -143,6 +144,7 @@ public CreateCall() { } public CreateCall to(String to) { + this.to = to; return this; } @@ -156,12 +158,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public CreateCall from(String from) { + this.from = from; return this; } @@ -175,12 +179,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public CreateCall privacy(Boolean privacy) { + this.privacy = privacy; return this; } @@ -194,12 +200,14 @@ public Boolean getPrivacy() { return privacy; } + public void setPrivacy(Boolean privacy) { this.privacy = privacy; } public CreateCall displayName(String displayName) { + this.displayName = displayName; return this; } @@ -213,12 +221,14 @@ public String getDisplayName() { return displayName; } + public void setDisplayName(String displayName) { this.displayName = displayName; } public CreateCall uui(String uui) { + this.uui = uui; return this; } @@ -232,12 +242,14 @@ public String getUui() { return uui; } + public void setUui(String uui) { this.uui = uui; } public CreateCall applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -251,12 +263,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CreateCall answerUrl(URI answerUrl) { + this.answerUrl = answerUrl; return this; } @@ -270,12 +284,14 @@ public URI getAnswerUrl() { return answerUrl; } + public void setAnswerUrl(URI answerUrl) { this.answerUrl = answerUrl; } public CreateCall answerMethod(CallbackMethodEnum answerMethod) { + this.answerMethod = answerMethod; return this; } @@ -289,12 +305,14 @@ public CallbackMethodEnum getAnswerMethod() { return answerMethod; } + public void setAnswerMethod(CallbackMethodEnum answerMethod) { this.answerMethod = answerMethod; } public CreateCall username(String username) { + this.username = username; return this; } @@ -308,12 +326,14 @@ public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public CreateCall password(String password) { + this.password = password; return this; } @@ -327,12 +347,14 @@ public String getPassword() { return password; } + public void setPassword(String password) { this.password = password; } public CreateCall answerFallbackUrl(URI answerFallbackUrl) { + this.answerFallbackUrl = answerFallbackUrl; return this; } @@ -346,12 +368,14 @@ public URI getAnswerFallbackUrl() { return answerFallbackUrl; } + public void setAnswerFallbackUrl(URI answerFallbackUrl) { this.answerFallbackUrl = answerFallbackUrl; } public CreateCall answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { + this.answerFallbackMethod = answerFallbackMethod; return this; } @@ -365,12 +389,14 @@ public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; } + public void setAnswerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { this.answerFallbackMethod = answerFallbackMethod; } public CreateCall fallbackUsername(String fallbackUsername) { + this.fallbackUsername = fallbackUsername; return this; } @@ -384,12 +410,14 @@ public String getFallbackUsername() { return fallbackUsername; } + public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public CreateCall fallbackPassword(String fallbackPassword) { + this.fallbackPassword = fallbackPassword; return this; } @@ -403,12 +431,14 @@ public String getFallbackPassword() { return fallbackPassword; } + public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } public CreateCall disconnectUrl(URI disconnectUrl) { + this.disconnectUrl = disconnectUrl; return this; } @@ -422,12 +452,14 @@ public URI getDisconnectUrl() { return disconnectUrl; } + public void setDisconnectUrl(URI disconnectUrl) { this.disconnectUrl = disconnectUrl; } public CreateCall disconnectMethod(CallbackMethodEnum disconnectMethod) { + this.disconnectMethod = disconnectMethod; return this; } @@ -441,12 +473,14 @@ public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; } + public void setDisconnectMethod(CallbackMethodEnum disconnectMethod) { this.disconnectMethod = disconnectMethod; } public CreateCall callTimeout(Double callTimeout) { + this.callTimeout = callTimeout; return this; } @@ -462,12 +496,14 @@ public Double getCallTimeout() { return callTimeout; } + public void setCallTimeout(Double callTimeout) { this.callTimeout = callTimeout; } public CreateCall callbackTimeout(Double callbackTimeout) { + this.callbackTimeout = callbackTimeout; return this; } @@ -483,12 +519,14 @@ public Double getCallbackTimeout() { return callbackTimeout; } + public void setCallbackTimeout(Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } public CreateCall machineDetection(MachineDetectionConfiguration machineDetection) { + this.machineDetection = machineDetection; return this; } @@ -502,12 +540,14 @@ public MachineDetectionConfiguration getMachineDetection() { return machineDetection; } + public void setMachineDetection(MachineDetectionConfiguration machineDetection) { this.machineDetection = machineDetection; } public CreateCall priority(Integer priority) { + this.priority = priority; return this; } @@ -523,12 +563,14 @@ public Integer getPriority() { return priority; } + public void setPriority(Integer priority) { this.priority = priority; } public CreateCall tag(String tag) { + this.tag = tag; return this; } @@ -542,6 +584,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -757,10 +800,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("answerUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `answerUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("answerUrl").toString())); } - // validate the optional field `answerMethod` - if (jsonObj.get("answerMethod") != null && !jsonObj.get("answerMethod").isJsonNull()) { - CallbackMethodEnum.validateJsonElement(jsonObj.get("answerMethod")); - } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -770,10 +809,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("answerFallbackUrl") != null && !jsonObj.get("answerFallbackUrl").isJsonNull()) && !jsonObj.get("answerFallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `answerFallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("answerFallbackUrl").toString())); } - // validate the optional field `answerFallbackMethod` - if (jsonObj.get("answerFallbackMethod") != null && !jsonObj.get("answerFallbackMethod").isJsonNull()) { - CallbackMethodEnum.validateJsonElement(jsonObj.get("answerFallbackMethod")); - } if ((jsonObj.get("fallbackUsername") != null && !jsonObj.get("fallbackUsername").isJsonNull()) && !jsonObj.get("fallbackUsername").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUsername").toString())); } @@ -783,10 +818,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("disconnectUrl") != null && !jsonObj.get("disconnectUrl").isJsonNull()) && !jsonObj.get("disconnectUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `disconnectUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("disconnectUrl").toString())); } - // validate the optional field `disconnectMethod` - if (jsonObj.get("disconnectMethod") != null && !jsonObj.get("disconnectMethod").isJsonNull()) { - CallbackMethodEnum.validateJsonElement(jsonObj.get("disconnectMethod")); - } // validate the optional field `machineDetection` if (jsonObj.get("machineDetection") != null && !jsonObj.get("machineDetection").isJsonNull()) { MachineDetectionConfiguration.validateJsonElement(jsonObj.get("machineDetection")); @@ -824,12 +855,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java index 78bf72b6..e99359cc 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class CreateCallResponse { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -143,6 +144,7 @@ public CreateCallResponse() { } public CreateCallResponse applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -156,12 +158,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CreateCallResponse accountId(String accountId) { + this.accountId = accountId; return this; } @@ -175,12 +179,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public CreateCallResponse callId(String callId) { + this.callId = callId; return this; } @@ -194,12 +200,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public CreateCallResponse to(String to) { + this.to = to; return this; } @@ -213,12 +221,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public CreateCallResponse from(String from) { + this.from = from; return this; } @@ -232,12 +242,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public CreateCallResponse enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -251,12 +263,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public CreateCallResponse callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -270,12 +284,14 @@ public URI getCallUrl() { return callUrl; } + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public CreateCallResponse callTimeout(Double callTimeout) { + this.callTimeout = callTimeout; return this; } @@ -289,12 +305,14 @@ public Double getCallTimeout() { return callTimeout; } + public void setCallTimeout(Double callTimeout) { this.callTimeout = callTimeout; } public CreateCallResponse callbackTimeout(Double callbackTimeout) { + this.callbackTimeout = callbackTimeout; return this; } @@ -308,12 +326,14 @@ public Double getCallbackTimeout() { return callbackTimeout; } + public void setCallbackTimeout(Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } public CreateCallResponse tag(String tag) { + this.tag = tag; return this; } @@ -327,12 +347,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public CreateCallResponse answerMethod(CallbackMethodEnum answerMethod) { + this.answerMethod = answerMethod; return this; } @@ -346,12 +368,14 @@ public CallbackMethodEnum getAnswerMethod() { return answerMethod; } + public void setAnswerMethod(CallbackMethodEnum answerMethod) { this.answerMethod = answerMethod; } public CreateCallResponse answerUrl(URI answerUrl) { + this.answerUrl = answerUrl; return this; } @@ -365,12 +389,14 @@ public URI getAnswerUrl() { return answerUrl; } + public void setAnswerUrl(URI answerUrl) { this.answerUrl = answerUrl; } public CreateCallResponse answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { + this.answerFallbackMethod = answerFallbackMethod; return this; } @@ -384,12 +410,14 @@ public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; } + public void setAnswerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { this.answerFallbackMethod = answerFallbackMethod; } public CreateCallResponse answerFallbackUrl(URI answerFallbackUrl) { + this.answerFallbackUrl = answerFallbackUrl; return this; } @@ -403,12 +431,14 @@ public URI getAnswerFallbackUrl() { return answerFallbackUrl; } + public void setAnswerFallbackUrl(URI answerFallbackUrl) { this.answerFallbackUrl = answerFallbackUrl; } public CreateCallResponse disconnectMethod(CallbackMethodEnum disconnectMethod) { + this.disconnectMethod = disconnectMethod; return this; } @@ -422,12 +452,14 @@ public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; } + public void setDisconnectMethod(CallbackMethodEnum disconnectMethod) { this.disconnectMethod = disconnectMethod; } public CreateCallResponse disconnectUrl(URI disconnectUrl) { + this.disconnectUrl = disconnectUrl; return this; } @@ -441,12 +473,14 @@ public URI getDisconnectUrl() { return disconnectUrl; } + public void setDisconnectUrl(URI disconnectUrl) { this.disconnectUrl = disconnectUrl; } public CreateCallResponse username(String username) { + this.username = username; return this; } @@ -460,12 +494,14 @@ public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public CreateCallResponse password(String password) { + this.password = password; return this; } @@ -479,12 +515,14 @@ public String getPassword() { return password; } + public void setPassword(String password) { this.password = password; } public CreateCallResponse fallbackUsername(String fallbackUsername) { + this.fallbackUsername = fallbackUsername; return this; } @@ -498,12 +536,14 @@ public String getFallbackUsername() { return fallbackUsername; } + public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public CreateCallResponse fallbackPassword(String fallbackPassword) { + this.fallbackPassword = fallbackPassword; return this; } @@ -517,12 +557,14 @@ public String getFallbackPassword() { return fallbackPassword; } + public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } public CreateCallResponse priority(Integer priority) { + this.priority = priority; return this; } @@ -536,6 +578,7 @@ public Integer getPriority() { return priority; } + public void setPriority(Integer priority) { this.priority = priority; } @@ -759,20 +802,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } - // validate the required field `answerMethod` - CallbackMethodEnum.validateJsonElement(jsonObj.get("answerMethod")); if (!jsonObj.get("answerUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `answerUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("answerUrl").toString())); } - // validate the optional field `answerFallbackMethod` - if (jsonObj.get("answerFallbackMethod") != null && !jsonObj.get("answerFallbackMethod").isJsonNull()) { - CallbackMethodEnum.validateJsonElement(jsonObj.get("answerFallbackMethod")); - } if ((jsonObj.get("answerFallbackUrl") != null && !jsonObj.get("answerFallbackUrl").isJsonNull()) && !jsonObj.get("answerFallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `answerFallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("answerFallbackUrl").toString())); } - // validate the required field `disconnectMethod` - CallbackMethodEnum.validateJsonElement(jsonObj.get("disconnectMethod")); if ((jsonObj.get("disconnectUrl") != null && !jsonObj.get("disconnectUrl").isJsonNull()) && !jsonObj.get("disconnectUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `disconnectUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("disconnectUrl").toString())); } @@ -818,12 +853,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java index 35a1012c..5a9bdcab 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java @@ -43,6 +43,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +51,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") public class CreateLookupResponse { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -64,6 +65,7 @@ public CreateLookupResponse() { } public CreateLookupResponse requestId(String requestId) { + this.requestId = requestId; return this; } @@ -77,12 +79,14 @@ public String getRequestId() { return requestId; } + public void setRequestId(String requestId) { this.requestId = requestId; } public CreateLookupResponse status(LookupStatusEnum status) { + this.status = status; return this; } @@ -96,6 +100,7 @@ public LookupStatusEnum getStatus() { return status; } + public void setStatus(LookupStatusEnum status) { this.status = status; } @@ -217,10 +222,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("requestId") != null && !jsonObj.get("requestId").isJsonNull()) && !jsonObj.get("requestId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `requestId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestId").toString())); } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - LookupStatusEnum.validateJsonElement(jsonObj.get("status")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -251,12 +252,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java index 9191f939..a54042d2 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java @@ -45,6 +45,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +53,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") public class CreateMessageRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -64,12 +65,13 @@ public class CreateMessageRequestError { public static final String SERIALIZED_NAME_FIELD_ERRORS = "fieldErrors"; @SerializedName(SERIALIZED_NAME_FIELD_ERRORS) - private List fieldErrors = new ArrayList<>(); + private List fieldErrors; public CreateMessageRequestError() { } public CreateMessageRequestError type(String type) { + this.type = type; return this; } @@ -83,12 +85,14 @@ public String getType() { return type; } + public void setType(String type) { this.type = type; } public CreateMessageRequestError description(String description) { + this.description = description; return this; } @@ -102,12 +106,14 @@ public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public CreateMessageRequestError fieldErrors(List fieldErrors) { + this.fieldErrors = fieldErrors; return this; } @@ -129,6 +135,7 @@ public List getFieldErrors() { return fieldErrors; } + public void setFieldErrors(List fieldErrors) { this.fieldErrors = fieldErrors; } @@ -309,12 +316,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java index ae14eab6..2a480d08 100644 --- a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java +++ b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class DeferredResult { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) @@ -63,6 +64,7 @@ public DeferredResult() { } public DeferredResult result(Object result) { + this.result = result; return this; } @@ -76,12 +78,14 @@ public Object getResult() { return result; } + public void setResult(Object result) { this.result = result; } public DeferredResult setOrExpired(Boolean setOrExpired) { + this.setOrExpired = setOrExpired; return this; } @@ -95,6 +99,7 @@ public Boolean getSetOrExpired() { return setOrExpired; } + public void setSetOrExpired(Boolean setOrExpired) { this.setOrExpired = setOrExpired; } @@ -243,12 +248,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java index 29f7fd01..7c70e624 100644 --- a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class DisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -88,7 +90,7 @@ public class DisconnectCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -126,6 +128,7 @@ public DisconnectCallback() { } public DisconnectCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -139,12 +142,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public DisconnectCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -158,12 +163,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public DisconnectCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -177,12 +184,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public DisconnectCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -196,12 +205,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public DisconnectCallback from(String from) { + this.from = from; return this; } @@ -215,12 +226,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public DisconnectCallback to(String to) { + this.to = to; return this; } @@ -234,12 +247,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public DisconnectCallback callId(String callId) { + this.callId = callId; return this; } @@ -253,12 +268,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public DisconnectCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -272,12 +289,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } - public DisconnectCallback callUrl(String callUrl) { + public DisconnectCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -287,16 +306,18 @@ public DisconnectCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public DisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -310,12 +331,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public DisconnectCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -329,12 +352,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public DisconnectCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -348,12 +373,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public DisconnectCallback endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -367,12 +394,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public DisconnectCallback cause(String cause) { + this.cause = cause; return this; } @@ -386,12 +415,14 @@ public String getCause() { return cause; } + public void setCause(String cause) { this.cause = cause; } public DisconnectCallback errorMessage(String errorMessage) { + this.errorMessage = errorMessage; return this; } @@ -405,12 +436,14 @@ public String getErrorMessage() { return errorMessage; } + public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public DisconnectCallback errorId(String errorId) { + this.errorId = errorId; return this; } @@ -424,12 +457,14 @@ public String getErrorId() { return errorId; } + public void setErrorId(String errorId) { this.errorId = errorId; } public DisconnectCallback tag(String tag) { + this.tag = tag; return this; } @@ -443,6 +478,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -635,10 +671,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callUrl") != null && !jsonObj.get("callUrl").isJsonNull()) && !jsonObj.get("callUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callUrl").toString())); } @@ -684,12 +716,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/Diversion.java b/src/main/java/com/bandwidth/sdk/model/Diversion.java index 3e7ccb17..78fc646b 100644 --- a/src/main/java/com/bandwidth/sdk/model/Diversion.java +++ b/src/main/java/com/bandwidth/sdk/model/Diversion.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class Diversion { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -83,6 +84,7 @@ public Diversion() { } public Diversion reason(String reason) { + this.reason = reason; return this; } @@ -96,12 +98,14 @@ public String getReason() { return reason; } + public void setReason(String reason) { this.reason = reason; } public Diversion privacy(String privacy) { + this.privacy = privacy; return this; } @@ -115,12 +119,14 @@ public String getPrivacy() { return privacy; } + public void setPrivacy(String privacy) { this.privacy = privacy; } public Diversion screen(String screen) { + this.screen = screen; return this; } @@ -134,12 +140,14 @@ public String getScreen() { return screen; } + public void setScreen(String screen) { this.screen = screen; } public Diversion counter(String counter) { + this.counter = counter; return this; } @@ -153,12 +161,14 @@ public String getCounter() { return counter; } + public void setCounter(String counter) { this.counter = counter; } public Diversion limit(String limit) { + this.limit = limit; return this; } @@ -172,12 +182,14 @@ public String getLimit() { return limit; } + public void setLimit(String limit) { this.limit = limit; } public Diversion unknown(String unknown) { + this.unknown = unknown; return this; } @@ -191,12 +203,14 @@ public String getUnknown() { return unknown; } + public void setUnknown(String unknown) { this.unknown = unknown; } public Diversion origTo(String origTo) { + this.origTo = origTo; return this; } @@ -210,6 +224,7 @@ public String getOrigTo() { return origTo; } + public void setOrigTo(String origTo) { this.origTo = origTo; } @@ -394,12 +409,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java index 67912c33..d3f32ac4 100644 --- a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class DtmfCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -92,7 +94,7 @@ public class DtmfCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -126,6 +128,7 @@ public DtmfCallback() { } public DtmfCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -139,12 +142,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public DtmfCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -158,12 +163,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public DtmfCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -177,12 +184,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public DtmfCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -196,12 +205,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public DtmfCallback from(String from) { + this.from = from; return this; } @@ -215,12 +226,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public DtmfCallback to(String to) { + this.to = to; return this; } @@ -234,12 +247,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public DtmfCallback callId(String callId) { + this.callId = callId; return this; } @@ -253,12 +268,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public DtmfCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -272,12 +289,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public DtmfCallback digit(String digit) { + this.digit = digit; return this; } @@ -291,12 +310,14 @@ public String getDigit() { return digit; } + public void setDigit(String digit) { this.digit = digit; } - public DtmfCallback callUrl(String callUrl) { + public DtmfCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -306,16 +327,18 @@ public DtmfCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public DtmfCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -329,12 +352,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public DtmfCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -348,12 +373,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public DtmfCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -367,12 +394,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public DtmfCallback parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -386,12 +415,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public DtmfCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -405,12 +436,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public DtmfCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -424,12 +457,14 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public DtmfCallback tag(String tag) { + this.tag = tag; return this; } @@ -443,6 +478,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -635,10 +671,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("digit") != null && !jsonObj.get("digit").isJsonNull()) && !jsonObj.get("digit").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `digit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("digit").toString())); } @@ -687,12 +719,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/FieldError.java b/src/main/java/com/bandwidth/sdk/model/FieldError.java index 92914b7e..46618903 100644 --- a/src/main/java/com/bandwidth/sdk/model/FieldError.java +++ b/src/main/java/com/bandwidth/sdk/model/FieldError.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class FieldError { public static final String SERIALIZED_NAME_FIELD_NAME = "fieldName"; @SerializedName(SERIALIZED_NAME_FIELD_NAME) @@ -63,6 +64,7 @@ public FieldError() { } public FieldError fieldName(String fieldName) { + this.fieldName = fieldName; return this; } @@ -76,12 +78,14 @@ public String getFieldName() { return fieldName; } + public void setFieldName(String fieldName) { this.fieldName = fieldName; } public FieldError description(String description) { + this.description = description; return this; } @@ -95,6 +99,7 @@ public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } @@ -249,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/FileFormatEnum.java b/src/main/java/com/bandwidth/sdk/model/FileFormatEnum.java index 1f27ba16..69296f70 100644 --- a/src/main/java/com/bandwidth/sdk/model/FileFormatEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/FileFormatEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public FileFormatEnum read(final JsonReader jsonReader) throws IOException { return FileFormatEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - FileFormatEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java index e635fd05..4cdf2c67 100644 --- a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class GatherCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -92,7 +94,7 @@ public class GatherCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -130,6 +132,7 @@ public GatherCallback() { } public GatherCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -143,12 +146,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public GatherCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -162,12 +167,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public GatherCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -181,12 +188,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public GatherCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -200,12 +209,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public GatherCallback from(String from) { + this.from = from; return this; } @@ -219,12 +230,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public GatherCallback to(String to) { + this.to = to; return this; } @@ -238,12 +251,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public GatherCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -257,12 +272,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public GatherCallback callId(String callId) { + this.callId = callId; return this; } @@ -276,12 +293,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } public GatherCallback digits(String digits) { + this.digits = digits; return this; } @@ -295,12 +314,14 @@ public String getDigits() { return digits; } + public void setDigits(String digits) { this.digits = digits; } - public GatherCallback callUrl(String callUrl) { + public GatherCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -310,16 +331,18 @@ public GatherCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public GatherCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -333,12 +356,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public GatherCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -352,12 +377,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public GatherCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -371,12 +398,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public GatherCallback parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -390,12 +419,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public GatherCallback terminatingDigit(String terminatingDigit) { + this.terminatingDigit = terminatingDigit; return this; } @@ -409,12 +440,14 @@ public String getTerminatingDigit() { return terminatingDigit; } + public void setTerminatingDigit(String terminatingDigit) { this.terminatingDigit = terminatingDigit; } public GatherCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -428,12 +461,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public GatherCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -447,12 +482,14 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public GatherCallback tag(String tag) { + this.tag = tag; return this; } @@ -466,6 +503,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -658,10 +696,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -716,12 +750,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java index 8dca880d..1ba464ec 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class InboundMessageCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -77,6 +78,7 @@ public InboundMessageCallback() { } public InboundMessageCallback time(OffsetDateTime time) { + this.time = time; return this; } @@ -90,12 +92,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public InboundMessageCallback type(String type) { + this.type = type; return this; } @@ -109,12 +113,14 @@ public String getType() { return type; } + public void setType(String type) { this.type = type; } public InboundMessageCallback to(String to) { + this.to = to; return this; } @@ -128,12 +134,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public InboundMessageCallback description(String description) { + this.description = description; return this; } @@ -147,12 +155,14 @@ public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public InboundMessageCallback message(InboundMessageCallbackMessage message) { + this.message = message; return this; } @@ -166,6 +176,7 @@ public InboundMessageCallbackMessage getMessage() { return message; } + public void setMessage(InboundMessageCallbackMessage message) { this.message = message; } @@ -346,12 +357,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java index ac08aa7e..9d5d99d9 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java @@ -50,6 +50,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -57,7 +58,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") public class InboundMessageCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -101,7 +102,7 @@ public class InboundMessageCallbackMessage { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private List media = new ArrayList<>(); + private List media; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -111,6 +112,7 @@ public InboundMessageCallbackMessage() { } public InboundMessageCallbackMessage id(String id) { + this.id = id; return this; } @@ -124,12 +126,14 @@ public String getId() { return id; } + public void setId(String id) { this.id = id; } public InboundMessageCallbackMessage owner(String owner) { + this.owner = owner; return this; } @@ -143,12 +147,14 @@ public String getOwner() { return owner; } + public void setOwner(String owner) { this.owner = owner; } public InboundMessageCallbackMessage applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -162,12 +168,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public InboundMessageCallbackMessage time(OffsetDateTime time) { + this.time = time; return this; } @@ -181,12 +189,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public InboundMessageCallbackMessage segmentCount(Integer segmentCount) { + this.segmentCount = segmentCount; return this; } @@ -200,12 +210,14 @@ public Integer getSegmentCount() { return segmentCount; } + public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public InboundMessageCallbackMessage direction(MessageDirectionEnum direction) { + this.direction = direction; return this; } @@ -219,12 +231,14 @@ public MessageDirectionEnum getDirection() { return direction; } + public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public InboundMessageCallbackMessage to(Set to) { + this.to = to; return this; } @@ -246,12 +260,14 @@ public Set getTo() { return to; } + public void setTo(Set to) { this.to = to; } public InboundMessageCallbackMessage from(String from) { + this.from = from; return this; } @@ -265,12 +281,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public InboundMessageCallbackMessage text(String text) { + this.text = text; return this; } @@ -284,12 +302,14 @@ public String getText() { return text; } + public void setText(String text) { this.text = text; } public InboundMessageCallbackMessage tag(String tag) { + this.tag = tag; return this; } @@ -303,12 +323,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public InboundMessageCallbackMessage media(List media) { + this.media = media; return this; } @@ -330,12 +352,14 @@ public List getMedia() { return media; } + public void setMedia(List media) { this.media = media; } public InboundMessageCallbackMessage priority(PriorityEnum priority) { + this.priority = priority; return this; } @@ -349,6 +373,7 @@ public PriorityEnum getPriority() { return priority; } + public void setPriority(PriorityEnum priority) { this.priority = priority; } @@ -522,8 +547,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } - // validate the required field `direction` - MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); // ensure the required json array is present if (jsonObj.get("to") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -543,10 +566,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("media") != null && !jsonObj.get("media").isJsonNull() && !jsonObj.get("media").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString())); } - // validate the optional field `priority` - if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { - PriorityEnum.validateJsonElement(jsonObj.get("priority")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -577,12 +596,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java index 52b0ef46..9b901de0 100644 --- a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java @@ -23,6 +23,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; @@ -46,6 +47,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +55,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") public class InitiateCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -89,7 +91,7 @@ public class InitiateCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) @@ -107,6 +109,7 @@ public InitiateCallback() { } public InitiateCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -120,12 +123,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public InitiateCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -139,12 +144,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public InitiateCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -158,12 +165,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public InitiateCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -177,12 +186,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public InitiateCallback from(String from) { + this.from = from; return this; } @@ -196,12 +207,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public InitiateCallback to(String to) { + this.to = to; return this; } @@ -215,12 +228,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public InitiateCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -234,12 +249,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public InitiateCallback callId(String callId) { + this.callId = callId; return this; } @@ -253,12 +270,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public InitiateCallback callUrl(String callUrl) { + public InitiateCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -268,16 +287,18 @@ public InitiateCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public InitiateCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -291,12 +312,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public InitiateCallback diversion(Diversion diversion) { + this.diversion = diversion; return this; } @@ -310,12 +333,14 @@ public Diversion getDiversion() { return diversion; } + public void setDiversion(Diversion diversion) { this.diversion = diversion; } public InitiateCallback stirShaken(StirShaken stirShaken) { + this.stirShaken = stirShaken; return this; } @@ -329,6 +354,7 @@ public StirShaken getStirShaken() { return stirShaken; } + public void setStirShaken(StirShaken stirShaken) { this.stirShaken = stirShaken; } @@ -492,10 +518,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -540,12 +562,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java b/src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java index f175c9cd..5fbe269b 100644 --- a/src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public ListMessageDirectionEnum read(final JsonReader jsonReader) throws IOExcep return ListMessageDirectionEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ListMessageDirectionEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java index 988186b3..465c76f0 100644 --- a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java +++ b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java @@ -47,6 +47,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +55,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") public class ListMessageItem { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -128,6 +129,7 @@ public ListMessageItem() { } public ListMessageItem messageId(String messageId) { + this.messageId = messageId; return this; } @@ -141,12 +143,14 @@ public String getMessageId() { return messageId; } + public void setMessageId(String messageId) { this.messageId = messageId; } public ListMessageItem accountId(String accountId) { + this.accountId = accountId; return this; } @@ -160,12 +164,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public ListMessageItem sourceTn(String sourceTn) { + this.sourceTn = sourceTn; return this; } @@ -179,12 +185,14 @@ public String getSourceTn() { return sourceTn; } + public void setSourceTn(String sourceTn) { this.sourceTn = sourceTn; } public ListMessageItem destinationTn(String destinationTn) { + this.destinationTn = destinationTn; return this; } @@ -198,12 +206,14 @@ public String getDestinationTn() { return destinationTn; } + public void setDestinationTn(String destinationTn) { this.destinationTn = destinationTn; } public ListMessageItem messageStatus(MessageStatusEnum messageStatus) { + this.messageStatus = messageStatus; return this; } @@ -217,12 +227,14 @@ public MessageStatusEnum getMessageStatus() { return messageStatus; } + public void setMessageStatus(MessageStatusEnum messageStatus) { this.messageStatus = messageStatus; } public ListMessageItem messageDirection(ListMessageDirectionEnum messageDirection) { + this.messageDirection = messageDirection; return this; } @@ -236,12 +248,14 @@ public ListMessageDirectionEnum getMessageDirection() { return messageDirection; } + public void setMessageDirection(ListMessageDirectionEnum messageDirection) { this.messageDirection = messageDirection; } public ListMessageItem messageType(MessageTypeEnum messageType) { + this.messageType = messageType; return this; } @@ -255,12 +269,14 @@ public MessageTypeEnum getMessageType() { return messageType; } + public void setMessageType(MessageTypeEnum messageType) { this.messageType = messageType; } public ListMessageItem segmentCount(Integer segmentCount) { + this.segmentCount = segmentCount; return this; } @@ -274,12 +290,14 @@ public Integer getSegmentCount() { return segmentCount; } + public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public ListMessageItem errorCode(Integer errorCode) { + this.errorCode = errorCode; return this; } @@ -293,12 +311,14 @@ public Integer getErrorCode() { return errorCode; } + public void setErrorCode(Integer errorCode) { this.errorCode = errorCode; } public ListMessageItem receiveTime(OffsetDateTime receiveTime) { + this.receiveTime = receiveTime; return this; } @@ -312,12 +332,14 @@ public OffsetDateTime getReceiveTime() { return receiveTime; } + public void setReceiveTime(OffsetDateTime receiveTime) { this.receiveTime = receiveTime; } public ListMessageItem carrierName(String carrierName) { + this.carrierName = carrierName; return this; } @@ -331,12 +353,14 @@ public String getCarrierName() { return carrierName; } + public void setCarrierName(String carrierName) { this.carrierName = carrierName; } public ListMessageItem messageSize(Integer messageSize) { + this.messageSize = messageSize; return this; } @@ -350,12 +374,14 @@ public Integer getMessageSize() { return messageSize; } + public void setMessageSize(Integer messageSize) { this.messageSize = messageSize; } public ListMessageItem messageLength(Integer messageLength) { + this.messageLength = messageLength; return this; } @@ -369,12 +395,14 @@ public Integer getMessageLength() { return messageLength; } + public void setMessageLength(Integer messageLength) { this.messageLength = messageLength; } public ListMessageItem attachmentCount(Integer attachmentCount) { + this.attachmentCount = attachmentCount; return this; } @@ -388,12 +416,14 @@ public Integer getAttachmentCount() { return attachmentCount; } + public void setAttachmentCount(Integer attachmentCount) { this.attachmentCount = attachmentCount; } public ListMessageItem recipientCount(Integer recipientCount) { + this.recipientCount = recipientCount; return this; } @@ -407,12 +437,14 @@ public Integer getRecipientCount() { return recipientCount; } + public void setRecipientCount(Integer recipientCount) { this.recipientCount = recipientCount; } public ListMessageItem campaignClass(String campaignClass) { + this.campaignClass = campaignClass; return this; } @@ -426,12 +458,14 @@ public String getCampaignClass() { return campaignClass; } + public void setCampaignClass(String campaignClass) { this.campaignClass = campaignClass; } public ListMessageItem campaignId(String campaignId) { + this.campaignId = campaignId; return this; } @@ -445,6 +479,7 @@ public String getCampaignId() { return campaignId; } + public void setCampaignId(String campaignId) { this.campaignId = campaignId; } @@ -631,18 +666,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("destinationTn") != null && !jsonObj.get("destinationTn").isJsonNull()) && !jsonObj.get("destinationTn").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `destinationTn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationTn").toString())); } - // validate the optional field `messageStatus` - if (jsonObj.get("messageStatus") != null && !jsonObj.get("messageStatus").isJsonNull()) { - MessageStatusEnum.validateJsonElement(jsonObj.get("messageStatus")); - } - // validate the optional field `messageDirection` - if (jsonObj.get("messageDirection") != null && !jsonObj.get("messageDirection").isJsonNull()) { - ListMessageDirectionEnum.validateJsonElement(jsonObj.get("messageDirection")); - } - // validate the optional field `messageType` - if (jsonObj.get("messageType") != null && !jsonObj.get("messageType").isJsonNull()) { - MessageTypeEnum.validateJsonElement(jsonObj.get("messageType")); - } if ((jsonObj.get("carrierName") != null && !jsonObj.get("carrierName").isJsonNull()) && !jsonObj.get("carrierName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `carrierName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("carrierName").toString())); } @@ -682,12 +705,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java index 75414526..f41a7f01 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class LookupRequest { public static final String SERIALIZED_NAME_TNS = "tns"; @SerializedName(SERIALIZED_NAME_TNS) @@ -61,6 +62,7 @@ public LookupRequest() { } public LookupRequest tns(List tns) { + this.tns = tns; return this; } @@ -82,6 +84,7 @@ public List getTns() { return tns; } + public void setTns(List tns) { this.tns = tns; } @@ -241,12 +244,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupResult.java b/src/main/java/com/bandwidth/sdk/model/LookupResult.java index e9079cb3..7238b192 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupResult.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupResult.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class LookupResult { public static final String SERIALIZED_NAME_RESPONSE_CODE = "Response Code"; @SerializedName(SERIALIZED_NAME_RESPONSE_CODE) @@ -91,6 +92,7 @@ public LookupResult() { } public LookupResult responseCode(Integer responseCode) { + this.responseCode = responseCode; return this; } @@ -104,12 +106,14 @@ public Integer getResponseCode() { return responseCode; } + public void setResponseCode(Integer responseCode) { this.responseCode = responseCode; } public LookupResult message(String message) { + this.message = message; return this; } @@ -123,12 +127,14 @@ public String getMessage() { return message; } + public void setMessage(String message) { this.message = message; } public LookupResult e164Format(String e164Format) { + this.e164Format = e164Format; return this; } @@ -142,12 +148,14 @@ public String getE164Format() { return e164Format; } + public void setE164Format(String e164Format) { this.e164Format = e164Format; } public LookupResult formatted(String formatted) { + this.formatted = formatted; return this; } @@ -161,12 +169,14 @@ public String getFormatted() { return formatted; } + public void setFormatted(String formatted) { this.formatted = formatted; } public LookupResult country(String country) { + this.country = country; return this; } @@ -180,12 +190,14 @@ public String getCountry() { return country; } + public void setCountry(String country) { this.country = country; } public LookupResult lineType(String lineType) { + this.lineType = lineType; return this; } @@ -199,12 +211,14 @@ public String getLineType() { return lineType; } + public void setLineType(String lineType) { this.lineType = lineType; } public LookupResult lineProvider(String lineProvider) { + this.lineProvider = lineProvider; return this; } @@ -218,12 +232,14 @@ public String getLineProvider() { return lineProvider; } + public void setLineProvider(String lineProvider) { this.lineProvider = lineProvider; } public LookupResult mobileCountryCode(String mobileCountryCode) { + this.mobileCountryCode = mobileCountryCode; return this; } @@ -237,12 +253,14 @@ public String getMobileCountryCode() { return mobileCountryCode; } + public void setMobileCountryCode(String mobileCountryCode) { this.mobileCountryCode = mobileCountryCode; } public LookupResult mobileNetworkCode(String mobileNetworkCode) { + this.mobileNetworkCode = mobileNetworkCode; return this; } @@ -256,6 +274,7 @@ public String getMobileNetworkCode() { return mobileNetworkCode; } + public void setMobileNetworkCode(String mobileNetworkCode) { this.mobileNetworkCode = mobileNetworkCode; } @@ -449,12 +468,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java index dfca01c8..227b1bd3 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class LookupStatus { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -65,16 +66,17 @@ public class LookupStatus { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) - private List result = new ArrayList<>(); + private List result; public static final String SERIALIZED_NAME_FAILED_TELEPHONE_NUMBERS = "failedTelephoneNumbers"; @SerializedName(SERIALIZED_NAME_FAILED_TELEPHONE_NUMBERS) - private List failedTelephoneNumbers = new ArrayList<>(); + private List failedTelephoneNumbers; public LookupStatus() { } public LookupStatus requestId(String requestId) { + this.requestId = requestId; return this; } @@ -88,12 +90,14 @@ public String getRequestId() { return requestId; } + public void setRequestId(String requestId) { this.requestId = requestId; } public LookupStatus status(LookupStatusEnum status) { + this.status = status; return this; } @@ -107,12 +111,14 @@ public LookupStatusEnum getStatus() { return status; } + public void setStatus(LookupStatusEnum status) { this.status = status; } public LookupStatus result(List result) { + this.result = result; return this; } @@ -134,12 +140,14 @@ public List getResult() { return result; } + public void setResult(List result) { this.result = result; } public LookupStatus failedTelephoneNumbers(List failedTelephoneNumbers) { + this.failedTelephoneNumbers = failedTelephoneNumbers; return this; } @@ -161,6 +169,7 @@ public List getFailedTelephoneNumbers() { return failedTelephoneNumbers; } + public void setFailedTelephoneNumbers(List failedTelephoneNumbers) { this.failedTelephoneNumbers = failedTelephoneNumbers; } @@ -288,10 +297,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("requestId") != null && !jsonObj.get("requestId").isJsonNull()) && !jsonObj.get("requestId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `requestId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestId").toString())); } - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - LookupStatusEnum.validateJsonElement(jsonObj.get("status")); - } if (jsonObj.get("result") != null && !jsonObj.get("result").isJsonNull()) { JsonArray jsonArrayresult = jsonObj.getAsJsonArray("result"); if (jsonArrayresult != null) { @@ -340,12 +345,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupStatusEnum.java b/src/main/java/com/bandwidth/sdk/model/LookupStatusEnum.java index 02a72484..59798a1f 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupStatusEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupStatusEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -73,10 +72,5 @@ public LookupStatusEnum read(final JsonReader jsonReader) throws IOException { return LookupStatusEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - LookupStatusEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java index e3e46763..ab96ac6b 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java @@ -22,6 +22,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -46,6 +47,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +55,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") public class MachineDetectionCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -89,7 +91,7 @@ public class MachineDetectionCompleteCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -115,6 +117,7 @@ public MachineDetectionCompleteCallback() { } public MachineDetectionCompleteCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -128,12 +131,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public MachineDetectionCompleteCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -147,12 +152,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public MachineDetectionCompleteCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -166,12 +173,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public MachineDetectionCompleteCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -185,12 +194,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MachineDetectionCompleteCallback from(String from) { + this.from = from; return this; } @@ -204,12 +215,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public MachineDetectionCompleteCallback to(String to) { + this.to = to; return this; } @@ -223,12 +236,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public MachineDetectionCompleteCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -242,12 +257,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public MachineDetectionCompleteCallback callId(String callId) { + this.callId = callId; return this; } @@ -261,12 +278,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public MachineDetectionCompleteCallback callUrl(String callUrl) { + public MachineDetectionCompleteCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -276,16 +295,18 @@ public MachineDetectionCompleteCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public MachineDetectionCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -299,12 +320,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public MachineDetectionCompleteCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -318,12 +341,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public MachineDetectionCompleteCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -337,12 +362,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public MachineDetectionCompleteCallback tag(String tag) { + this.tag = tag; return this; } @@ -356,12 +383,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public MachineDetectionCompleteCallback machineDetectionResult(MachineDetectionResult machineDetectionResult) { + this.machineDetectionResult = machineDetectionResult; return this; } @@ -375,6 +404,7 @@ public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; } + public void setMachineDetectionResult(MachineDetectionResult machineDetectionResult) { this.machineDetectionResult = machineDetectionResult; } @@ -555,10 +585,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -602,12 +628,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java index 86785f36..eed86c70 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class MachineDetectionConfiguration { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) @@ -119,6 +120,7 @@ public MachineDetectionConfiguration() { } public MachineDetectionConfiguration mode(MachineDetectionModeEnum mode) { + this.mode = mode; return this; } @@ -132,12 +134,14 @@ public MachineDetectionModeEnum getMode() { return mode; } + public void setMode(MachineDetectionModeEnum mode) { this.mode = mode; } public MachineDetectionConfiguration detectionTimeout(Double detectionTimeout) { + this.detectionTimeout = detectionTimeout; return this; } @@ -151,12 +155,14 @@ public Double getDetectionTimeout() { return detectionTimeout; } + public void setDetectionTimeout(Double detectionTimeout) { this.detectionTimeout = detectionTimeout; } public MachineDetectionConfiguration silenceTimeout(Double silenceTimeout) { + this.silenceTimeout = silenceTimeout; return this; } @@ -170,12 +176,14 @@ public Double getSilenceTimeout() { return silenceTimeout; } + public void setSilenceTimeout(Double silenceTimeout) { this.silenceTimeout = silenceTimeout; } public MachineDetectionConfiguration speechThreshold(Double speechThreshold) { + this.speechThreshold = speechThreshold; return this; } @@ -189,12 +197,14 @@ public Double getSpeechThreshold() { return speechThreshold; } + public void setSpeechThreshold(Double speechThreshold) { this.speechThreshold = speechThreshold; } public MachineDetectionConfiguration speechEndThreshold(Double speechEndThreshold) { + this.speechEndThreshold = speechEndThreshold; return this; } @@ -208,12 +218,14 @@ public Double getSpeechEndThreshold() { return speechEndThreshold; } + public void setSpeechEndThreshold(Double speechEndThreshold) { this.speechEndThreshold = speechEndThreshold; } public MachineDetectionConfiguration machineSpeechEndThreshold(Double machineSpeechEndThreshold) { + this.machineSpeechEndThreshold = machineSpeechEndThreshold; return this; } @@ -227,12 +239,14 @@ public Double getMachineSpeechEndThreshold() { return machineSpeechEndThreshold; } + public void setMachineSpeechEndThreshold(Double machineSpeechEndThreshold) { this.machineSpeechEndThreshold = machineSpeechEndThreshold; } public MachineDetectionConfiguration delayResult(Boolean delayResult) { + this.delayResult = delayResult; return this; } @@ -246,12 +260,14 @@ public Boolean getDelayResult() { return delayResult; } + public void setDelayResult(Boolean delayResult) { this.delayResult = delayResult; } public MachineDetectionConfiguration callbackUrl(URI callbackUrl) { + this.callbackUrl = callbackUrl; return this; } @@ -265,12 +281,14 @@ public URI getCallbackUrl() { return callbackUrl; } + public void setCallbackUrl(URI callbackUrl) { this.callbackUrl = callbackUrl; } public MachineDetectionConfiguration callbackMethod(CallbackMethodEnum callbackMethod) { + this.callbackMethod = callbackMethod; return this; } @@ -284,12 +302,14 @@ public CallbackMethodEnum getCallbackMethod() { return callbackMethod; } + public void setCallbackMethod(CallbackMethodEnum callbackMethod) { this.callbackMethod = callbackMethod; } public MachineDetectionConfiguration username(String username) { + this.username = username; return this; } @@ -303,12 +323,14 @@ public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public MachineDetectionConfiguration password(String password) { + this.password = password; return this; } @@ -322,12 +344,14 @@ public String getPassword() { return password; } + public void setPassword(String password) { this.password = password; } public MachineDetectionConfiguration fallbackUrl(URI fallbackUrl) { + this.fallbackUrl = fallbackUrl; return this; } @@ -341,12 +365,14 @@ public URI getFallbackUrl() { return fallbackUrl; } + public void setFallbackUrl(URI fallbackUrl) { this.fallbackUrl = fallbackUrl; } public MachineDetectionConfiguration fallbackMethod(CallbackMethodEnum fallbackMethod) { + this.fallbackMethod = fallbackMethod; return this; } @@ -360,12 +386,14 @@ public CallbackMethodEnum getFallbackMethod() { return fallbackMethod; } + public void setFallbackMethod(CallbackMethodEnum fallbackMethod) { this.fallbackMethod = fallbackMethod; } public MachineDetectionConfiguration fallbackUsername(String fallbackUsername) { + this.fallbackUsername = fallbackUsername; return this; } @@ -379,12 +407,14 @@ public String getFallbackUsername() { return fallbackUsername; } + public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public MachineDetectionConfiguration fallbackPassword(String fallbackPassword) { + this.fallbackPassword = fallbackPassword; return this; } @@ -398,6 +428,7 @@ public String getFallbackPassword() { return fallbackPassword; } + public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } @@ -566,17 +597,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `mode` - if (jsonObj.get("mode") != null && !jsonObj.get("mode").isJsonNull()) { - MachineDetectionModeEnum.validateJsonElement(jsonObj.get("mode")); - } if ((jsonObj.get("callbackUrl") != null && !jsonObj.get("callbackUrl").isJsonNull()) && !jsonObj.get("callbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callbackUrl").toString())); } - // validate the optional field `callbackMethod` - if (jsonObj.get("callbackMethod") != null && !jsonObj.get("callbackMethod").isJsonNull()) { - CallbackMethodEnum.validateJsonElement(jsonObj.get("callbackMethod")); - } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -586,10 +609,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("fallbackUrl") != null && !jsonObj.get("fallbackUrl").isJsonNull()) && !jsonObj.get("fallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUrl").toString())); } - // validate the optional field `fallbackMethod` - if (jsonObj.get("fallbackMethod") != null && !jsonObj.get("fallbackMethod").isJsonNull()) { - CallbackMethodEnum.validateJsonElement(jsonObj.get("fallbackMethod")); - } if ((jsonObj.get("fallbackUsername") != null && !jsonObj.get("fallbackUsername").isJsonNull()) && !jsonObj.get("fallbackUsername").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUsername").toString())); } @@ -626,12 +645,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionModeEnum.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionModeEnum.java index 633c38e1..07bba122 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionModeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionModeEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public MachineDetectionModeEnum read(final JsonReader jsonReader) throws IOExcep return MachineDetectionModeEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - MachineDetectionModeEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java index f3ff2b2e..135144a7 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class MachineDetectionResult { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -63,6 +64,7 @@ public MachineDetectionResult() { } public MachineDetectionResult value(String value) { + this.value = value; return this; } @@ -76,12 +78,14 @@ public String getValue() { return value; } + public void setValue(String value) { this.value = value; } public MachineDetectionResult duration(String duration) { + this.duration = duration; return this; } @@ -95,6 +99,7 @@ public String getDuration() { return duration; } + public void setDuration(String duration) { this.duration = duration; } @@ -249,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/Media.java b/src/main/java/com/bandwidth/sdk/model/Media.java index f31d58bf..5465ff98 100644 --- a/src/main/java/com/bandwidth/sdk/model/Media.java +++ b/src/main/java/com/bandwidth/sdk/model/Media.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class Media { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -67,6 +68,7 @@ public Media() { } public Media content(String content) { + this.content = content; return this; } @@ -80,12 +82,14 @@ public String getContent() { return content; } + public void setContent(String content) { this.content = content; } public Media contentLength(Integer contentLength) { + this.contentLength = contentLength; return this; } @@ -99,12 +103,14 @@ public Integer getContentLength() { return contentLength; } + public void setContentLength(Integer contentLength) { this.contentLength = contentLength; } public Media mediaName(String mediaName) { + this.mediaName = mediaName; return this; } @@ -118,6 +124,7 @@ public String getMediaName() { return mediaName; } + public void setMediaName(String mediaName) { this.mediaName = mediaName; } @@ -275,12 +282,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/Message.java b/src/main/java/com/bandwidth/sdk/model/Message.java index f7893107..a6d830dd 100644 --- a/src/main/java/com/bandwidth/sdk/model/Message.java +++ b/src/main/java/com/bandwidth/sdk/model/Message.java @@ -47,6 +47,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +55,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") public class Message { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -82,7 +83,7 @@ public class Message { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) - private Set to = new LinkedHashSet<>(); + private Set to; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) @@ -90,7 +91,7 @@ public class Message { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private Set media = new LinkedHashSet<>(); + private Set media; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -112,6 +113,7 @@ public Message() { } public Message id(String id) { + this.id = id; return this; } @@ -125,12 +127,14 @@ public String getId() { return id; } + public void setId(String id) { this.id = id; } public Message owner(String owner) { + this.owner = owner; return this; } @@ -144,12 +148,14 @@ public String getOwner() { return owner; } + public void setOwner(String owner) { this.owner = owner; } public Message applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -163,12 +169,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public Message time(OffsetDateTime time) { + this.time = time; return this; } @@ -182,12 +190,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public Message segmentCount(Integer segmentCount) { + this.segmentCount = segmentCount; return this; } @@ -201,12 +211,14 @@ public Integer getSegmentCount() { return segmentCount; } + public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public Message direction(MessageDirectionEnum direction) { + this.direction = direction; return this; } @@ -220,12 +232,14 @@ public MessageDirectionEnum getDirection() { return direction; } + public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public Message to(Set to) { + this.to = to; return this; } @@ -247,12 +261,14 @@ public Set getTo() { return to; } + public void setTo(Set to) { this.to = to; } public Message from(String from) { + this.from = from; return this; } @@ -266,12 +282,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public Message media(Set media) { + this.media = media; return this; } @@ -293,12 +311,14 @@ public Set getMedia() { return media; } + public void setMedia(Set media) { this.media = media; } public Message text(String text) { + this.text = text; return this; } @@ -312,12 +332,14 @@ public String getText() { return text; } + public void setText(String text) { this.text = text; } public Message tag(String tag) { + this.tag = tag; return this; } @@ -331,12 +353,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public Message priority(PriorityEnum priority) { + this.priority = priority; return this; } @@ -350,12 +374,14 @@ public PriorityEnum getPriority() { return priority; } + public void setPriority(PriorityEnum priority) { this.priority = priority; } public Message expiration(OffsetDateTime expiration) { + this.expiration = expiration; return this; } @@ -369,6 +395,7 @@ public OffsetDateTime getExpiration() { return expiration; } + public void setExpiration(OffsetDateTime expiration) { this.expiration = expiration; } @@ -529,10 +556,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("applicationId") != null && !jsonObj.get("applicationId").isJsonNull()) && !jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } // ensure the optional json data is an array if present if (jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull() && !jsonObj.get("to").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be an array in the JSON string but got `%s`", jsonObj.get("to").toString())); @@ -550,10 +573,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } - // validate the optional field `priority` - if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { - PriorityEnum.validateJsonElement(jsonObj.get("priority")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -584,12 +603,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java index fe3ce3db..7a3a30c7 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class MessageDeliveredCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -77,6 +78,7 @@ public MessageDeliveredCallback() { } public MessageDeliveredCallback time(OffsetDateTime time) { + this.time = time; return this; } @@ -90,12 +92,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public MessageDeliveredCallback type(String type) { + this.type = type; return this; } @@ -109,12 +113,14 @@ public String getType() { return type; } + public void setType(String type) { this.type = type; } public MessageDeliveredCallback to(String to) { + this.to = to; return this; } @@ -128,12 +134,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public MessageDeliveredCallback description(String description) { + this.description = description; return this; } @@ -147,12 +155,14 @@ public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public MessageDeliveredCallback message(MessageDeliveredCallbackMessage message) { + this.message = message; return this; } @@ -166,6 +176,7 @@ public MessageDeliveredCallbackMessage getMessage() { return message; } + public void setMessage(MessageDeliveredCallbackMessage message) { this.message = message; } @@ -346,12 +357,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java index dbafd12b..144c4c0e 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java @@ -50,6 +50,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -57,7 +58,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") public class MessageDeliveredCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -101,7 +102,7 @@ public class MessageDeliveredCallbackMessage { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private List media = new ArrayList<>(); + private List media; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -111,6 +112,7 @@ public MessageDeliveredCallbackMessage() { } public MessageDeliveredCallbackMessage id(String id) { + this.id = id; return this; } @@ -124,12 +126,14 @@ public String getId() { return id; } + public void setId(String id) { this.id = id; } public MessageDeliveredCallbackMessage owner(String owner) { + this.owner = owner; return this; } @@ -143,12 +147,14 @@ public String getOwner() { return owner; } + public void setOwner(String owner) { this.owner = owner; } public MessageDeliveredCallbackMessage applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -162,12 +168,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MessageDeliveredCallbackMessage time(OffsetDateTime time) { + this.time = time; return this; } @@ -181,12 +189,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public MessageDeliveredCallbackMessage segmentCount(Integer segmentCount) { + this.segmentCount = segmentCount; return this; } @@ -200,12 +210,14 @@ public Integer getSegmentCount() { return segmentCount; } + public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public MessageDeliveredCallbackMessage direction(MessageDirectionEnum direction) { + this.direction = direction; return this; } @@ -219,12 +231,14 @@ public MessageDirectionEnum getDirection() { return direction; } + public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public MessageDeliveredCallbackMessage to(Set to) { + this.to = to; return this; } @@ -246,12 +260,14 @@ public Set getTo() { return to; } + public void setTo(Set to) { this.to = to; } public MessageDeliveredCallbackMessage from(String from) { + this.from = from; return this; } @@ -265,12 +281,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public MessageDeliveredCallbackMessage text(String text) { + this.text = text; return this; } @@ -284,12 +302,14 @@ public String getText() { return text; } + public void setText(String text) { this.text = text; } public MessageDeliveredCallbackMessage tag(String tag) { + this.tag = tag; return this; } @@ -303,12 +323,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public MessageDeliveredCallbackMessage media(List media) { + this.media = media; return this; } @@ -330,12 +352,14 @@ public List getMedia() { return media; } + public void setMedia(List media) { this.media = media; } public MessageDeliveredCallbackMessage priority(PriorityEnum priority) { + this.priority = priority; return this; } @@ -349,6 +373,7 @@ public PriorityEnum getPriority() { return priority; } + public void setPriority(PriorityEnum priority) { this.priority = priority; } @@ -523,8 +548,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } - // validate the required field `direction` - MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); // ensure the required json array is present if (jsonObj.get("to") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -544,10 +567,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("media") != null && !jsonObj.get("media").isJsonNull() && !jsonObj.get("media").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString())); } - // validate the optional field `priority` - if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { - PriorityEnum.validateJsonElement(jsonObj.get("priority")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -578,12 +597,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDirectionEnum.java b/src/main/java/com/bandwidth/sdk/model/MessageDirectionEnum.java index 52886e8a..4713b361 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDirectionEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDirectionEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public MessageDirectionEnum read(final JsonReader jsonReader) throws IOException return MessageDirectionEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - MessageDirectionEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java index 49153874..7969be97 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class MessageFailedCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -81,6 +82,7 @@ public MessageFailedCallback() { } public MessageFailedCallback time(OffsetDateTime time) { + this.time = time; return this; } @@ -94,12 +96,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public MessageFailedCallback type(String type) { + this.type = type; return this; } @@ -113,12 +117,14 @@ public String getType() { return type; } + public void setType(String type) { this.type = type; } public MessageFailedCallback to(String to) { + this.to = to; return this; } @@ -132,12 +138,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public MessageFailedCallback description(String description) { + this.description = description; return this; } @@ -151,12 +159,14 @@ public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public MessageFailedCallback message(MessageFailedCallbackMessage message) { + this.message = message; return this; } @@ -170,12 +180,14 @@ public MessageFailedCallbackMessage getMessage() { return message; } + public void setMessage(MessageFailedCallbackMessage message) { this.message = message; } public MessageFailedCallback errorCode(Integer errorCode) { + this.errorCode = errorCode; return this; } @@ -189,6 +201,7 @@ public Integer getErrorCode() { return errorCode; } + public void setErrorCode(Integer errorCode) { this.errorCode = errorCode; } @@ -373,12 +386,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java index 12dc3384..6d65d19f 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java @@ -50,6 +50,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -57,7 +58,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") public class MessageFailedCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -101,7 +102,7 @@ public class MessageFailedCallbackMessage { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private List media = new ArrayList<>(); + private List media; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -111,6 +112,7 @@ public MessageFailedCallbackMessage() { } public MessageFailedCallbackMessage id(String id) { + this.id = id; return this; } @@ -124,12 +126,14 @@ public String getId() { return id; } + public void setId(String id) { this.id = id; } public MessageFailedCallbackMessage owner(String owner) { + this.owner = owner; return this; } @@ -143,12 +147,14 @@ public String getOwner() { return owner; } + public void setOwner(String owner) { this.owner = owner; } public MessageFailedCallbackMessage applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -162,12 +168,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MessageFailedCallbackMessage time(OffsetDateTime time) { + this.time = time; return this; } @@ -181,12 +189,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public MessageFailedCallbackMessage segmentCount(Integer segmentCount) { + this.segmentCount = segmentCount; return this; } @@ -200,12 +210,14 @@ public Integer getSegmentCount() { return segmentCount; } + public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public MessageFailedCallbackMessage direction(MessageDirectionEnum direction) { + this.direction = direction; return this; } @@ -219,12 +231,14 @@ public MessageDirectionEnum getDirection() { return direction; } + public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public MessageFailedCallbackMessage to(Set to) { + this.to = to; return this; } @@ -246,12 +260,14 @@ public Set getTo() { return to; } + public void setTo(Set to) { this.to = to; } public MessageFailedCallbackMessage from(String from) { + this.from = from; return this; } @@ -265,12 +281,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public MessageFailedCallbackMessage text(String text) { + this.text = text; return this; } @@ -284,12 +302,14 @@ public String getText() { return text; } + public void setText(String text) { this.text = text; } public MessageFailedCallbackMessage tag(String tag) { + this.tag = tag; return this; } @@ -303,12 +323,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public MessageFailedCallbackMessage media(List media) { + this.media = media; return this; } @@ -330,12 +352,14 @@ public List getMedia() { return media; } + public void setMedia(List media) { this.media = media; } public MessageFailedCallbackMessage priority(PriorityEnum priority) { + this.priority = priority; return this; } @@ -349,6 +373,7 @@ public PriorityEnum getPriority() { return priority; } + public void setPriority(PriorityEnum priority) { this.priority = priority; } @@ -524,8 +549,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } - // validate the required field `direction` - MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); // ensure the required json array is present if (jsonObj.get("to") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -545,8 +568,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("media") != null && !jsonObj.get("media").isJsonNull() && !jsonObj.get("media").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString())); } - // validate the required field `priority` - PriorityEnum.validateJsonElement(jsonObj.get("priority")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -577,12 +598,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java index 44b019c0..8ae0dad4 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java @@ -49,6 +49,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -56,7 +57,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") public class MessageRequest { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -76,7 +77,7 @@ public class MessageRequest { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private List media = new ArrayList<>(); + private List media; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) @@ -94,6 +95,7 @@ public MessageRequest() { } public MessageRequest applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -107,12 +109,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MessageRequest to(Set to) { + this.to = to; return this; } @@ -134,12 +138,14 @@ public Set getTo() { return to; } + public void setTo(Set to) { this.to = to; } public MessageRequest from(String from) { + this.from = from; return this; } @@ -153,12 +159,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public MessageRequest text(String text) { + this.text = text; return this; } @@ -172,12 +180,14 @@ public String getText() { return text; } + public void setText(String text) { this.text = text; } public MessageRequest media(List media) { + this.media = media; return this; } @@ -199,12 +209,14 @@ public List getMedia() { return media; } + public void setMedia(List media) { this.media = media; } public MessageRequest tag(String tag) { + this.tag = tag; return this; } @@ -218,12 +230,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public MessageRequest priority(PriorityEnum priority) { + this.priority = priority; return this; } @@ -237,12 +251,14 @@ public PriorityEnum getPriority() { return priority; } + public void setPriority(PriorityEnum priority) { this.priority = priority; } public MessageRequest expiration(OffsetDateTime expiration) { + this.expiration = expiration; return this; } @@ -256,6 +272,7 @@ public OffsetDateTime getExpiration() { return expiration; } + public void setExpiration(OffsetDateTime expiration) { this.expiration = expiration; } @@ -424,10 +441,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } - // validate the optional field `priority` - if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { - PriorityEnum.validateJsonElement(jsonObj.get("priority")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -458,12 +471,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java index 97861788..4be4d232 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class MessageSendingCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -77,6 +78,7 @@ public MessageSendingCallback() { } public MessageSendingCallback time(OffsetDateTime time) { + this.time = time; return this; } @@ -90,12 +92,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public MessageSendingCallback type(String type) { + this.type = type; return this; } @@ -109,12 +113,14 @@ public String getType() { return type; } + public void setType(String type) { this.type = type; } public MessageSendingCallback to(String to) { + this.to = to; return this; } @@ -128,12 +134,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public MessageSendingCallback description(String description) { + this.description = description; return this; } @@ -147,12 +155,14 @@ public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public MessageSendingCallback message(MessageSendingCallbackMessage message) { + this.message = message; return this; } @@ -166,6 +176,7 @@ public MessageSendingCallbackMessage getMessage() { return message; } + public void setMessage(MessageSendingCallbackMessage message) { this.message = message; } @@ -346,12 +357,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java index 14f30700..1bced475 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java @@ -50,6 +50,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -57,7 +58,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") public class MessageSendingCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -111,6 +112,7 @@ public MessageSendingCallbackMessage() { } public MessageSendingCallbackMessage id(String id) { + this.id = id; return this; } @@ -124,12 +126,14 @@ public String getId() { return id; } + public void setId(String id) { this.id = id; } public MessageSendingCallbackMessage owner(String owner) { + this.owner = owner; return this; } @@ -143,12 +147,14 @@ public String getOwner() { return owner; } + public void setOwner(String owner) { this.owner = owner; } public MessageSendingCallbackMessage applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -162,12 +168,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MessageSendingCallbackMessage time(OffsetDateTime time) { + this.time = time; return this; } @@ -181,12 +189,14 @@ public OffsetDateTime getTime() { return time; } + public void setTime(OffsetDateTime time) { this.time = time; } public MessageSendingCallbackMessage segmentCount(Integer segmentCount) { + this.segmentCount = segmentCount; return this; } @@ -200,12 +210,14 @@ public Integer getSegmentCount() { return segmentCount; } + public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public MessageSendingCallbackMessage direction(MessageDirectionEnum direction) { + this.direction = direction; return this; } @@ -219,12 +231,14 @@ public MessageDirectionEnum getDirection() { return direction; } + public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public MessageSendingCallbackMessage to(Set to) { + this.to = to; return this; } @@ -246,12 +260,14 @@ public Set getTo() { return to; } + public void setTo(Set to) { this.to = to; } public MessageSendingCallbackMessage from(String from) { + this.from = from; return this; } @@ -265,12 +281,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public MessageSendingCallbackMessage text(String text) { + this.text = text; return this; } @@ -284,12 +302,14 @@ public String getText() { return text; } + public void setText(String text) { this.text = text; } public MessageSendingCallbackMessage tag(String tag) { + this.tag = tag; return this; } @@ -303,12 +323,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public MessageSendingCallbackMessage media(List media) { + this.media = media; return this; } @@ -330,12 +352,14 @@ public List getMedia() { return media; } + public void setMedia(List media) { this.media = media; } public MessageSendingCallbackMessage priority(PriorityEnum priority) { + this.priority = priority; return this; } @@ -349,6 +373,7 @@ public PriorityEnum getPriority() { return priority; } + public void setPriority(PriorityEnum priority) { this.priority = priority; } @@ -524,8 +549,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } - // validate the required field `direction` - MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); // ensure the required json array is present if (jsonObj.get("to") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -547,8 +570,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } else if (!jsonObj.get("media").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString())); } - // validate the required field `priority` - PriorityEnum.validateJsonElement(jsonObj.get("priority")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -579,12 +600,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageStatusEnum.java b/src/main/java/com/bandwidth/sdk/model/MessageStatusEnum.java index 80760f09..90a978bf 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageStatusEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageStatusEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -81,10 +80,5 @@ public MessageStatusEnum read(final JsonReader jsonReader) throws IOException { return MessageStatusEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - MessageStatusEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageTypeEnum.java b/src/main/java/com/bandwidth/sdk/model/MessageTypeEnum.java index e12241ca..8ce1bc4b 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageTypeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageTypeEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public MessageTypeEnum read(final JsonReader jsonReader) throws IOException { return MessageTypeEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - MessageTypeEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagesList.java b/src/main/java/com/bandwidth/sdk/model/MessagesList.java index 13bc6bce..8c40885c 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagesList.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagesList.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class MessagesList { public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) @@ -65,12 +66,13 @@ public class MessagesList { public static final String SERIALIZED_NAME_MESSAGES = "messages"; @SerializedName(SERIALIZED_NAME_MESSAGES) - private List messages = new ArrayList<>(); + private List messages; public MessagesList() { } public MessagesList totalCount(Integer totalCount) { + this.totalCount = totalCount; return this; } @@ -84,12 +86,14 @@ public Integer getTotalCount() { return totalCount; } + public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } public MessagesList pageInfo(PageInfo pageInfo) { + this.pageInfo = pageInfo; return this; } @@ -103,12 +107,14 @@ public PageInfo getPageInfo() { return pageInfo; } + public void setPageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; } public MessagesList messages(List messages) { + this.messages = messages; return this; } @@ -130,6 +136,7 @@ public List getMessages() { return messages; } + public void setMessages(List messages) { this.messages = messages; } @@ -299,12 +306,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java index d4224fb0..fb5f2e3d 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class MessagingCodeResponse { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -59,6 +60,7 @@ public MessagingCodeResponse() { } public MessagingCodeResponse messageId(String messageId) { + this.messageId = messageId; return this; } @@ -72,6 +74,7 @@ public String getMessageId() { return messageId; } + public void setMessageId(String messageId) { this.messageId = messageId; } @@ -220,12 +223,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java index 8097ac14..a0f4af11 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class MessagingRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -63,6 +64,7 @@ public MessagingRequestError() { } public MessagingRequestError type(String type) { + this.type = type; return this; } @@ -76,12 +78,14 @@ public String getType() { return type; } + public void setType(String type) { this.type = type; } public MessagingRequestError description(String description) { + this.description = description; return this; } @@ -95,6 +99,7 @@ public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } @@ -258,12 +263,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java index 96e1f5ee..9905efdd 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class MfaForbiddenRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -59,6 +60,7 @@ public MfaForbiddenRequestError() { } public MfaForbiddenRequestError message(String message) { + this.message = message; return this; } @@ -72,6 +74,7 @@ public String getMessage() { return message; } + public void setMessage(String message) { this.message = message; } @@ -220,12 +223,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java index fec8d616..84b45f8a 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class MfaRequestError { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -63,6 +64,7 @@ public MfaRequestError() { } public MfaRequestError error(String error) { + this.error = error; return this; } @@ -76,12 +78,14 @@ public String getError() { return error; } + public void setError(String error) { this.error = error; } public MfaRequestError requestId(String requestId) { + this.requestId = requestId; return this; } @@ -95,6 +99,7 @@ public String getRequestId() { return requestId; } + public void setRequestId(String requestId) { this.requestId = requestId; } @@ -249,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java index 1c9d9966..67320cae 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class MfaUnauthorizedRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -59,6 +60,7 @@ public MfaUnauthorizedRequestError() { } public MfaUnauthorizedRequestError message(String message) { + this.message = message; return this; } @@ -72,6 +74,7 @@ public String getMessage() { return message; } + public void setMessage(String message) { this.message = message; } @@ -220,12 +223,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/PageInfo.java b/src/main/java/com/bandwidth/sdk/model/PageInfo.java index fdc30505..a1c5d8fc 100644 --- a/src/main/java/com/bandwidth/sdk/model/PageInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/PageInfo.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class PageInfo { public static final String SERIALIZED_NAME_PREV_PAGE = "prevPage"; @SerializedName(SERIALIZED_NAME_PREV_PAGE) @@ -71,6 +72,7 @@ public PageInfo() { } public PageInfo prevPage(String prevPage) { + this.prevPage = prevPage; return this; } @@ -84,12 +86,14 @@ public String getPrevPage() { return prevPage; } + public void setPrevPage(String prevPage) { this.prevPage = prevPage; } public PageInfo nextPage(String nextPage) { + this.nextPage = nextPage; return this; } @@ -103,12 +107,14 @@ public String getNextPage() { return nextPage; } + public void setNextPage(String nextPage) { this.nextPage = nextPage; } public PageInfo prevPageToken(String prevPageToken) { + this.prevPageToken = prevPageToken; return this; } @@ -122,12 +128,14 @@ public String getPrevPageToken() { return prevPageToken; } + public void setPrevPageToken(String prevPageToken) { this.prevPageToken = prevPageToken; } public PageInfo nextPageToken(String nextPageToken) { + this.nextPageToken = nextPageToken; return this; } @@ -141,6 +149,7 @@ public String getNextPageToken() { return nextPageToken; } + public void setNextPageToken(String nextPageToken) { this.nextPageToken = nextPageToken; } @@ -307,12 +316,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/PriorityEnum.java b/src/main/java/com/bandwidth/sdk/model/PriorityEnum.java index 75f872e1..6200bb49 100644 --- a/src/main/java/com/bandwidth/sdk/model/PriorityEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/PriorityEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public PriorityEnum read(final JsonReader jsonReader) throws IOException { return PriorityEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PriorityEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java index 7921781a..65d8f7ec 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java @@ -47,6 +47,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +55,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") public class RecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -90,7 +91,7 @@ public class RecordingAvailableCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) @@ -148,6 +149,7 @@ public RecordingAvailableCallback() { } public RecordingAvailableCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -161,12 +163,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public RecordingAvailableCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -180,12 +184,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public RecordingAvailableCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -199,12 +205,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public RecordingAvailableCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -218,12 +226,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public RecordingAvailableCallback from(String from) { + this.from = from; return this; } @@ -237,12 +247,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public RecordingAvailableCallback to(String to) { + this.to = to; return this; } @@ -256,12 +268,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public RecordingAvailableCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -275,12 +289,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public RecordingAvailableCallback callId(String callId) { + this.callId = callId; return this; } @@ -294,12 +310,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public RecordingAvailableCallback callUrl(String callUrl) { + public RecordingAvailableCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -309,16 +327,18 @@ public RecordingAvailableCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public RecordingAvailableCallback parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -332,12 +352,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public RecordingAvailableCallback recordingId(String recordingId) { + this.recordingId = recordingId; return this; } @@ -351,12 +373,14 @@ public String getRecordingId() { return recordingId; } + public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public RecordingAvailableCallback mediaUrl(URI mediaUrl) { + this.mediaUrl = mediaUrl; return this; } @@ -370,12 +394,14 @@ public URI getMediaUrl() { return mediaUrl; } + public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public RecordingAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -389,12 +415,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public RecordingAvailableCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -408,12 +436,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public RecordingAvailableCallback endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -427,12 +457,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public RecordingAvailableCallback duration(String duration) { + this.duration = duration; return this; } @@ -446,12 +478,14 @@ public String getDuration() { return duration; } + public void setDuration(String duration) { this.duration = duration; } public RecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { + this.fileFormat = fileFormat; return this; } @@ -465,12 +499,14 @@ public FileFormatEnum getFileFormat() { return fileFormat; } + public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public RecordingAvailableCallback channels(Integer channels) { + this.channels = channels; return this; } @@ -484,12 +520,14 @@ public Integer getChannels() { return channels; } + public void setChannels(Integer channels) { this.channels = channels; } public RecordingAvailableCallback tag(String tag) { + this.tag = tag; return this; } @@ -503,12 +541,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public RecordingAvailableCallback status(String status) { + this.status = status; return this; } @@ -522,12 +562,14 @@ public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } public RecordingAvailableCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -541,12 +583,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public RecordingAvailableCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -560,6 +604,7 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -764,10 +809,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -786,10 +827,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } - // validate the optional field `fileFormat` - if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { - FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); - } if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } @@ -832,12 +869,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java index 0f7ea796..f91683b8 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java @@ -47,6 +47,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +55,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") public class RecordingCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -90,7 +91,7 @@ public class RecordingCompleteCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) @@ -148,6 +149,7 @@ public RecordingCompleteCallback() { } public RecordingCompleteCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -161,12 +163,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public RecordingCompleteCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -180,12 +184,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public RecordingCompleteCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -199,12 +205,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public RecordingCompleteCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -218,12 +226,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public RecordingCompleteCallback from(String from) { + this.from = from; return this; } @@ -237,12 +247,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public RecordingCompleteCallback to(String to) { + this.to = to; return this; } @@ -256,12 +268,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public RecordingCompleteCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -275,12 +289,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public RecordingCompleteCallback callId(String callId) { + this.callId = callId; return this; } @@ -294,12 +310,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public RecordingCompleteCallback callUrl(String callUrl) { + public RecordingCompleteCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -309,16 +327,18 @@ public RecordingCompleteCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public RecordingCompleteCallback parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -332,12 +352,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public RecordingCompleteCallback recordingId(String recordingId) { + this.recordingId = recordingId; return this; } @@ -351,12 +373,14 @@ public String getRecordingId() { return recordingId; } + public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public RecordingCompleteCallback mediaUrl(URI mediaUrl) { + this.mediaUrl = mediaUrl; return this; } @@ -370,12 +394,14 @@ public URI getMediaUrl() { return mediaUrl; } + public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public RecordingCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -389,12 +415,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public RecordingCompleteCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -408,12 +436,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public RecordingCompleteCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -427,12 +457,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public RecordingCompleteCallback endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -446,12 +478,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public RecordingCompleteCallback duration(String duration) { + this.duration = duration; return this; } @@ -465,12 +499,14 @@ public String getDuration() { return duration; } + public void setDuration(String duration) { this.duration = duration; } public RecordingCompleteCallback fileFormat(FileFormatEnum fileFormat) { + this.fileFormat = fileFormat; return this; } @@ -484,12 +520,14 @@ public FileFormatEnum getFileFormat() { return fileFormat; } + public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public RecordingCompleteCallback channels(Integer channels) { + this.channels = channels; return this; } @@ -503,12 +541,14 @@ public Integer getChannels() { return channels; } + public void setChannels(Integer channels) { this.channels = channels; } public RecordingCompleteCallback tag(String tag) { + this.tag = tag; return this; } @@ -522,12 +562,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public RecordingCompleteCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -541,12 +583,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public RecordingCompleteCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -560,6 +604,7 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -764,10 +809,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -786,10 +827,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } - // validate the optional field `fileFormat` - if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { - FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); - } if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } @@ -829,12 +866,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingStateEnum.java b/src/main/java/com/bandwidth/sdk/model/RecordingStateEnum.java index ff3d9507..9e32ec07 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingStateEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingStateEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public RecordingStateEnum read(final JsonReader jsonReader) throws IOException { return RecordingStateEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - RecordingStateEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java index 6ef1583f..028bc54e 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java @@ -44,6 +44,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +52,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") public class RecordingTranscriptionMetadata { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -73,6 +74,7 @@ public RecordingTranscriptionMetadata() { } public RecordingTranscriptionMetadata id(String id) { + this.id = id; return this; } @@ -86,12 +88,14 @@ public String getId() { return id; } + public void setId(String id) { this.id = id; } public RecordingTranscriptionMetadata status(String status) { + this.status = status; return this; } @@ -105,12 +109,14 @@ public String getStatus() { return status; } + public void setStatus(String status) { this.status = status; } public RecordingTranscriptionMetadata completedTime(OffsetDateTime completedTime) { + this.completedTime = completedTime; return this; } @@ -124,12 +130,14 @@ public OffsetDateTime getCompletedTime() { return completedTime; } + public void setCompletedTime(OffsetDateTime completedTime) { this.completedTime = completedTime; } public RecordingTranscriptionMetadata url(URI url) { + this.url = url; return this; } @@ -143,6 +151,7 @@ public URI getUrl() { return url; } + public void setUrl(URI url) { this.url = url; } @@ -306,12 +315,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java index 96087470..3d66395c 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java @@ -45,6 +45,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,16 +53,17 @@ /** * 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") public class RecordingTranscriptions { public static final String SERIALIZED_NAME_TRANSCRIPTS = "transcripts"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTS) - private List transcripts = new ArrayList<>(); + private List transcripts; public RecordingTranscriptions() { } public RecordingTranscriptions transcripts(List transcripts) { + this.transcripts = transcripts; return this; } @@ -83,6 +85,7 @@ public List getTranscripts() { return transcripts; } + public void setTranscripts(List transcripts) { this.transcripts = transcripts; } @@ -242,12 +245,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java index 352bf6d1..1ea3efdc 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class RedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -88,7 +90,7 @@ public class RedirectCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) @@ -122,6 +124,7 @@ public RedirectCallback() { } public RedirectCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -135,12 +138,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public RedirectCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -154,12 +159,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public RedirectCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -173,12 +180,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public RedirectCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -192,12 +201,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public RedirectCallback from(String from) { + this.from = from; return this; } @@ -211,12 +222,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public RedirectCallback to(String to) { + this.to = to; return this; } @@ -230,12 +243,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public RedirectCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -249,12 +264,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public RedirectCallback callId(String callId) { + this.callId = callId; return this; } @@ -268,12 +285,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public RedirectCallback callUrl(String callUrl) { + public RedirectCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -283,16 +302,18 @@ public RedirectCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public RedirectCallback parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -306,12 +327,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public RedirectCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -325,12 +348,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public RedirectCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -344,12 +369,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public RedirectCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -363,12 +390,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public RedirectCallback tag(String tag) { + this.tag = tag; return this; } @@ -382,12 +411,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public RedirectCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -401,12 +432,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public RedirectCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -420,6 +453,7 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -606,10 +640,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -658,12 +688,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java b/src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java index ef3d6bfd..18c26b22 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java @@ -18,7 +18,6 @@ import java.io.IOException; import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,10 +68,5 @@ public RedirectMethodEnum read(final JsonReader jsonReader) throws IOException { return RedirectMethodEnum.fromValue(value); } } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - RedirectMethodEnum.fromValue(value); - } } diff --git a/src/main/java/com/bandwidth/sdk/model/Region.java b/src/main/java/com/bandwidth/sdk/model/Region.java new file mode 100644 index 00000000..10abfe32 --- /dev/null +++ b/src/main/java/com/bandwidth/sdk/model/Region.java @@ -0,0 +1,72 @@ +/* + * 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.model; + +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Gets or Sets region + */ +@JsonAdapter(Region.Adapter.class) +public enum Region { + + US("US"), + + EU("EU"); + + private String value; + + Region(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static Region fromValue(String value) { + for (Region b : Region.values()) { + if (b.value.equalsIgnoreCase(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final Region enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public Region read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return Region.fromValue(value); + } + } +} + diff --git a/src/main/java/com/bandwidth/sdk/model/StirShaken.java b/src/main/java/com/bandwidth/sdk/model/StirShaken.java index ce8dc501..37f2ed35 100644 --- a/src/main/java/com/bandwidth/sdk/model/StirShaken.java +++ b/src/main/java/com/bandwidth/sdk/model/StirShaken.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class StirShaken { public static final String SERIALIZED_NAME_VERSTAT = "verstat"; @SerializedName(SERIALIZED_NAME_VERSTAT) @@ -67,6 +68,7 @@ public StirShaken() { } public StirShaken verstat(String verstat) { + this.verstat = verstat; return this; } @@ -80,12 +82,14 @@ public String getVerstat() { return verstat; } + public void setVerstat(String verstat) { this.verstat = verstat; } public StirShaken attestationIndicator(String attestationIndicator) { + this.attestationIndicator = attestationIndicator; return this; } @@ -99,12 +103,14 @@ public String getAttestationIndicator() { return attestationIndicator; } + public void setAttestationIndicator(String attestationIndicator) { this.attestationIndicator = attestationIndicator; } public StirShaken originatingId(String originatingId) { + this.originatingId = originatingId; return this; } @@ -118,6 +124,7 @@ public String getOriginatingId() { return originatingId; } + public void setOriginatingId(String originatingId) { this.originatingId = originatingId; } @@ -278,12 +285,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/Tag.java b/src/main/java/com/bandwidth/sdk/model/Tag.java index 0607f53c..6964e4d8 100644 --- a/src/main/java/com/bandwidth/sdk/model/Tag.java +++ b/src/main/java/com/bandwidth/sdk/model/Tag.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class Tag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -63,6 +64,7 @@ public Tag() { } public Tag key(String key) { + this.key = key; return this; } @@ -76,12 +78,14 @@ public String getKey() { return key; } + public void setKey(String key) { this.key = key; } public Tag value(String value) { + this.value = value; return this; } @@ -95,6 +99,7 @@ public String getValue() { return value; } + public void setValue(String value) { this.value = value; } @@ -249,12 +254,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java index 8737295b..1cfa0ab4 100644 --- a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class TnLookupRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -59,6 +60,7 @@ public TnLookupRequestError() { } public TnLookupRequestError message(String message) { + this.message = message; return this; } @@ -72,6 +74,7 @@ public String getMessage() { return message; } + public void setMessage(String message) { this.message = message; } @@ -220,12 +223,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java index 4bcf208f..f5680890 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java @@ -45,6 +45,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +53,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") public class TranscribeRecording { public static final String SERIALIZED_NAME_CALLBACK_URL = "callbackUrl"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) @@ -86,6 +87,7 @@ public TranscribeRecording() { } public TranscribeRecording callbackUrl(URI callbackUrl) { + this.callbackUrl = callbackUrl; return this; } @@ -99,12 +101,14 @@ public URI getCallbackUrl() { return callbackUrl; } + public void setCallbackUrl(URI callbackUrl) { this.callbackUrl = callbackUrl; } public TranscribeRecording callbackMethod(CallbackMethodEnum callbackMethod) { + this.callbackMethod = callbackMethod; return this; } @@ -118,12 +122,14 @@ public CallbackMethodEnum getCallbackMethod() { return callbackMethod; } + public void setCallbackMethod(CallbackMethodEnum callbackMethod) { this.callbackMethod = callbackMethod; } public TranscribeRecording username(String username) { + this.username = username; return this; } @@ -137,12 +143,14 @@ public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public TranscribeRecording password(String password) { + this.password = password; return this; } @@ -156,12 +164,14 @@ public String getPassword() { return password; } + public void setPassword(String password) { this.password = password; } public TranscribeRecording tag(String tag) { + this.tag = tag; return this; } @@ -175,12 +185,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public TranscribeRecording callbackTimeout(Double callbackTimeout) { + this.callbackTimeout = callbackTimeout; return this; } @@ -196,12 +208,14 @@ public Double getCallbackTimeout() { return callbackTimeout; } + public void setCallbackTimeout(Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } public TranscribeRecording detectLanguage(Boolean detectLanguage) { + this.detectLanguage = detectLanguage; return this; } @@ -215,6 +229,7 @@ public Boolean getDetectLanguage() { return detectLanguage; } + public void setDetectLanguage(Boolean detectLanguage) { this.detectLanguage = detectLanguage; } @@ -362,10 +377,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("callbackUrl") != null && !jsonObj.get("callbackUrl").isJsonNull()) && !jsonObj.get("callbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callbackUrl").toString())); } - // validate the optional field `callbackMethod` - if (jsonObj.get("callbackMethod") != null && !jsonObj.get("callbackMethod").isJsonNull()) { - CallbackMethodEnum.validateJsonElement(jsonObj.get("callbackMethod")); - } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -405,12 +416,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/Transcription.java b/src/main/java/com/bandwidth/sdk/model/Transcription.java index 69a77729..dc3f1c32 100644 --- a/src/main/java/com/bandwidth/sdk/model/Transcription.java +++ b/src/main/java/com/bandwidth/sdk/model/Transcription.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class Transcription { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -63,6 +64,7 @@ public Transcription() { } public Transcription text(String text) { + this.text = text; return this; } @@ -76,12 +78,14 @@ public String getText() { return text; } + public void setText(String text) { this.text = text; } public Transcription confidence(Double confidence) { + this.confidence = confidence; return this; } @@ -95,6 +99,7 @@ public Double getConfidence() { return confidence; } + public void setConfidence(Double confidence) { this.confidence = confidence; } @@ -246,12 +251,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java index a40236f0..467d85e0 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java @@ -48,6 +48,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,7 +56,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") public class TranscriptionAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -91,7 +92,7 @@ public class TranscriptionAvailableCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_MEDIA_URL = "mediaUrl"; @SerializedName(SERIALIZED_NAME_MEDIA_URL) @@ -145,6 +146,7 @@ public TranscriptionAvailableCallback() { } public TranscriptionAvailableCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -158,12 +160,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public TranscriptionAvailableCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -177,12 +181,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public TranscriptionAvailableCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -196,12 +202,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public TranscriptionAvailableCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -215,12 +223,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public TranscriptionAvailableCallback from(String from) { + this.from = from; return this; } @@ -234,12 +244,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public TranscriptionAvailableCallback to(String to) { + this.to = to; return this; } @@ -253,12 +265,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public TranscriptionAvailableCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -272,12 +286,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public TranscriptionAvailableCallback callId(String callId) { + this.callId = callId; return this; } @@ -291,12 +307,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public TranscriptionAvailableCallback callUrl(String callUrl) { + public TranscriptionAvailableCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -306,16 +324,18 @@ public TranscriptionAvailableCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public TranscriptionAvailableCallback mediaUrl(URI mediaUrl) { + this.mediaUrl = mediaUrl; return this; } @@ -329,12 +349,14 @@ public URI getMediaUrl() { return mediaUrl; } + public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public TranscriptionAvailableCallback parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -348,12 +370,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public TranscriptionAvailableCallback recordingId(String recordingId) { + this.recordingId = recordingId; return this; } @@ -367,12 +391,14 @@ public String getRecordingId() { return recordingId; } + public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public TranscriptionAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -386,12 +412,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public TranscriptionAvailableCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -405,12 +433,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public TranscriptionAvailableCallback endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -424,12 +454,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public TranscriptionAvailableCallback duration(String duration) { + this.duration = duration; return this; } @@ -443,12 +475,14 @@ public String getDuration() { return duration; } + public void setDuration(String duration) { this.duration = duration; } public TranscriptionAvailableCallback fileFormat(FileFormatEnum fileFormat) { + this.fileFormat = fileFormat; return this; } @@ -462,12 +496,14 @@ public FileFormatEnum getFileFormat() { return fileFormat; } + public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public TranscriptionAvailableCallback tag(String tag) { + this.tag = tag; return this; } @@ -481,12 +517,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public TranscriptionAvailableCallback transcription(Transcription transcription) { + this.transcription = transcription; return this; } @@ -500,12 +538,14 @@ public Transcription getTranscription() { return transcription; } + public void setTranscription(Transcription transcription) { this.transcription = transcription; } public TranscriptionAvailableCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -519,12 +559,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public TranscriptionAvailableCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -538,6 +580,7 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -739,10 +782,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -761,10 +800,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } - // validate the optional field `fileFormat` - if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { - FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); - } if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } @@ -808,12 +843,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java index 64ecfeda..8211e368 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class TransferAnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -88,7 +90,7 @@ public class TransferAnswerCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -118,6 +120,7 @@ public TransferAnswerCallback() { } public TransferAnswerCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -131,12 +134,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public TransferAnswerCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -150,12 +155,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public TransferAnswerCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -169,12 +176,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public TransferAnswerCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -188,12 +197,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public TransferAnswerCallback from(String from) { + this.from = from; return this; } @@ -207,12 +218,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public TransferAnswerCallback to(String to) { + this.to = to; return this; } @@ -226,12 +239,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public TransferAnswerCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -245,12 +260,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public TransferAnswerCallback callId(String callId) { + this.callId = callId; return this; } @@ -264,12 +281,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public TransferAnswerCallback callUrl(String callUrl) { + public TransferAnswerCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -279,16 +298,18 @@ public TransferAnswerCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public TransferAnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -302,12 +323,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public TransferAnswerCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -321,12 +344,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public TransferAnswerCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -340,12 +365,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public TransferAnswerCallback tag(String tag) { + this.tag = tag; return this; } @@ -359,12 +386,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public TransferAnswerCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -378,12 +407,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public TransferAnswerCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -397,6 +428,7 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -580,10 +612,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -629,12 +657,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java index 57410ffc..d394b1e9 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class TransferCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -88,7 +90,7 @@ public class TransferCompleteCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) @@ -130,6 +132,7 @@ public TransferCompleteCallback() { } public TransferCompleteCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -143,12 +146,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public TransferCompleteCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -162,12 +167,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public TransferCompleteCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -181,12 +188,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public TransferCompleteCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -200,12 +209,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public TransferCompleteCallback from(String from) { + this.from = from; return this; } @@ -219,12 +230,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public TransferCompleteCallback to(String to) { + this.to = to; return this; } @@ -238,12 +251,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public TransferCompleteCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -257,12 +272,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public TransferCompleteCallback callId(String callId) { + this.callId = callId; return this; } @@ -276,12 +293,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public TransferCompleteCallback callUrl(String callUrl) { + public TransferCompleteCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -291,16 +310,18 @@ public TransferCompleteCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public TransferCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -314,12 +335,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public TransferCompleteCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -333,12 +356,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public TransferCompleteCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -352,12 +377,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public TransferCompleteCallback tag(String tag) { + this.tag = tag; return this; } @@ -371,12 +398,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public TransferCompleteCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -390,12 +419,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public TransferCompleteCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -409,12 +440,14 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public TransferCompleteCallback cause(String cause) { + this.cause = cause; return this; } @@ -428,12 +461,14 @@ public String getCause() { return cause; } + public void setCause(String cause) { this.cause = cause; } public TransferCompleteCallback errorMessage(String errorMessage) { + this.errorMessage = errorMessage; return this; } @@ -447,12 +482,14 @@ public String getErrorMessage() { return errorMessage; } + public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public TransferCompleteCallback errorId(String errorId) { + this.errorId = errorId; return this; } @@ -466,6 +503,7 @@ public String getErrorId() { return errorId; } + public void setErrorId(String errorId) { this.errorId = errorId; } @@ -658,10 +696,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -716,12 +750,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java index 594a9730..aa2ad876 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java @@ -21,6 +21,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.net.URI; import java.time.OffsetDateTime; import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; @@ -45,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +54,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") public class TransferDisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -88,7 +90,7 @@ public class TransferDisconnectCallback { public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) - private String callUrl; + private URI callUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) @@ -138,6 +140,7 @@ public TransferDisconnectCallback() { } public TransferDisconnectCallback eventType(String eventType) { + this.eventType = eventType; return this; } @@ -151,12 +154,14 @@ public String getEventType() { return eventType; } + public void setEventType(String eventType) { this.eventType = eventType; } public TransferDisconnectCallback eventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -170,12 +175,14 @@ public OffsetDateTime getEventTime() { return eventTime; } + public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public TransferDisconnectCallback accountId(String accountId) { + this.accountId = accountId; return this; } @@ -189,12 +196,14 @@ public String getAccountId() { return accountId; } + public void setAccountId(String accountId) { this.accountId = accountId; } public TransferDisconnectCallback applicationId(String applicationId) { + this.applicationId = applicationId; return this; } @@ -208,12 +217,14 @@ public String getApplicationId() { return applicationId; } + public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public TransferDisconnectCallback from(String from) { + this.from = from; return this; } @@ -227,12 +238,14 @@ public String getFrom() { return from; } + public void setFrom(String from) { this.from = from; } public TransferDisconnectCallback to(String to) { + this.to = to; return this; } @@ -246,12 +259,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public TransferDisconnectCallback direction(CallDirectionEnum direction) { + this.direction = direction; return this; } @@ -265,12 +280,14 @@ public CallDirectionEnum getDirection() { return direction; } + public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public TransferDisconnectCallback callId(String callId) { + this.callId = callId; return this; } @@ -284,12 +301,14 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } - public TransferDisconnectCallback callUrl(String callUrl) { + public TransferDisconnectCallback callUrl(URI callUrl) { + this.callUrl = callUrl; return this; } @@ -299,16 +318,18 @@ public TransferDisconnectCallback callUrl(String callUrl) { * @return callUrl **/ @javax.annotation.Nullable - public String getCallUrl() { + public URI getCallUrl() { return callUrl; } - public void setCallUrl(String callUrl) { + + public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public TransferDisconnectCallback parentCallId(String parentCallId) { + this.parentCallId = parentCallId; return this; } @@ -322,12 +343,14 @@ public String getParentCallId() { return parentCallId; } + public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public TransferDisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { + this.enqueuedTime = enqueuedTime; return this; } @@ -341,12 +364,14 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } + public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public TransferDisconnectCallback startTime(OffsetDateTime startTime) { + this.startTime = startTime; return this; } @@ -360,12 +385,14 @@ public OffsetDateTime getStartTime() { return startTime; } + public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public TransferDisconnectCallback answerTime(OffsetDateTime answerTime) { + this.answerTime = answerTime; return this; } @@ -379,12 +406,14 @@ public OffsetDateTime getAnswerTime() { return answerTime; } + public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public TransferDisconnectCallback endTime(OffsetDateTime endTime) { + this.endTime = endTime; return this; } @@ -398,12 +427,14 @@ public OffsetDateTime getEndTime() { return endTime; } + public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public TransferDisconnectCallback tag(String tag) { + this.tag = tag; return this; } @@ -417,12 +448,14 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } public TransferDisconnectCallback transferCallerId(String transferCallerId) { + this.transferCallerId = transferCallerId; return this; } @@ -436,12 +469,14 @@ public String getTransferCallerId() { return transferCallerId; } + public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public TransferDisconnectCallback transferTo(String transferTo) { + this.transferTo = transferTo; return this; } @@ -455,12 +490,14 @@ public String getTransferTo() { return transferTo; } + public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public TransferDisconnectCallback cause(String cause) { + this.cause = cause; return this; } @@ -474,12 +511,14 @@ public String getCause() { return cause; } + public void setCause(String cause) { this.cause = cause; } public TransferDisconnectCallback errorMessage(String errorMessage) { + this.errorMessage = errorMessage; return this; } @@ -493,12 +532,14 @@ public String getErrorMessage() { return errorMessage; } + public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public TransferDisconnectCallback errorId(String errorId) { + this.errorId = errorId; return this; } @@ -512,6 +553,7 @@ public String getErrorId() { return errorId; } + public void setErrorId(String errorId) { this.errorId = errorId; } @@ -710,10 +752,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } - // validate the optional field `direction` - if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { - CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); - } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -771,12 +809,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java index dd2cc35c..c367471e 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class UpdateCall { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -99,6 +100,7 @@ public UpdateCall() { } public UpdateCall state(CallStateEnum state) { + this.state = state; return this; } @@ -112,12 +114,14 @@ public CallStateEnum getState() { return state; } + public void setState(CallStateEnum state) { this.state = state; } public UpdateCall redirectUrl(URI redirectUrl) { + this.redirectUrl = redirectUrl; return this; } @@ -131,12 +135,14 @@ public URI getRedirectUrl() { return redirectUrl; } + public void setRedirectUrl(URI redirectUrl) { this.redirectUrl = redirectUrl; } public UpdateCall redirectMethod(RedirectMethodEnum redirectMethod) { + this.redirectMethod = redirectMethod; return this; } @@ -150,12 +156,14 @@ public RedirectMethodEnum getRedirectMethod() { return redirectMethod; } + public void setRedirectMethod(RedirectMethodEnum redirectMethod) { this.redirectMethod = redirectMethod; } public UpdateCall username(String username) { + this.username = username; return this; } @@ -169,12 +177,14 @@ public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public UpdateCall password(String password) { + this.password = password; return this; } @@ -188,12 +198,14 @@ public String getPassword() { return password; } + public void setPassword(String password) { this.password = password; } public UpdateCall redirectFallbackUrl(URI redirectFallbackUrl) { + this.redirectFallbackUrl = redirectFallbackUrl; return this; } @@ -207,12 +219,14 @@ public URI getRedirectFallbackUrl() { return redirectFallbackUrl; } + public void setRedirectFallbackUrl(URI redirectFallbackUrl) { this.redirectFallbackUrl = redirectFallbackUrl; } public UpdateCall redirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { + this.redirectFallbackMethod = redirectFallbackMethod; return this; } @@ -226,12 +240,14 @@ public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; } + public void setRedirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { this.redirectFallbackMethod = redirectFallbackMethod; } public UpdateCall fallbackUsername(String fallbackUsername) { + this.fallbackUsername = fallbackUsername; return this; } @@ -245,12 +261,14 @@ public String getFallbackUsername() { return fallbackUsername; } + public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public UpdateCall fallbackPassword(String fallbackPassword) { + this.fallbackPassword = fallbackPassword; return this; } @@ -264,12 +282,14 @@ public String getFallbackPassword() { return fallbackPassword; } + public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } public UpdateCall tag(String tag) { + this.tag = tag; return this; } @@ -283,6 +303,7 @@ public String getTag() { return tag; } + public void setTag(String tag) { this.tag = tag; } @@ -436,17 +457,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `state` - if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { - CallStateEnum.validateJsonElement(jsonObj.get("state")); - } if ((jsonObj.get("redirectUrl") != null && !jsonObj.get("redirectUrl").isJsonNull()) && !jsonObj.get("redirectUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `redirectUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redirectUrl").toString())); } - // validate the optional field `redirectMethod` - if (jsonObj.get("redirectMethod") != null && !jsonObj.get("redirectMethod").isJsonNull()) { - RedirectMethodEnum.validateJsonElement(jsonObj.get("redirectMethod")); - } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -456,10 +469,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("redirectFallbackUrl") != null && !jsonObj.get("redirectFallbackUrl").isJsonNull()) && !jsonObj.get("redirectFallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `redirectFallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redirectFallbackUrl").toString())); } - // validate the optional field `redirectFallbackMethod` - if (jsonObj.get("redirectFallbackMethod") != null && !jsonObj.get("redirectFallbackMethod").isJsonNull()) { - RedirectMethodEnum.validateJsonElement(jsonObj.get("redirectFallbackMethod")); - } if ((jsonObj.get("fallbackUsername") != null && !jsonObj.get("fallbackUsername").isJsonNull()) && !jsonObj.get("fallbackUsername").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUsername").toString())); } @@ -499,12 +508,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java index b7eec69c..90e9148f 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java @@ -43,6 +43,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +51,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") public class UpdateCallRecording { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -60,6 +61,7 @@ public UpdateCallRecording() { } public UpdateCallRecording state(RecordingStateEnum state) { + this.state = state; return this; } @@ -73,6 +75,7 @@ public RecordingStateEnum getState() { return state; } + public void setState(RecordingStateEnum state) { this.state = state; } @@ -196,8 +199,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the required field `state` - RecordingStateEnum.validateJsonElement(jsonObj.get("state")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -228,12 +229,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java index 511da727..afa2ae1c 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java @@ -46,6 +46,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +54,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") public class UpdateConference { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -95,6 +96,7 @@ public UpdateConference() { } public UpdateConference status(ConferenceStateEnum status) { + this.status = status; return this; } @@ -108,12 +110,14 @@ public ConferenceStateEnum getStatus() { return status; } + public void setStatus(ConferenceStateEnum status) { this.status = status; } public UpdateConference redirectUrl(URI redirectUrl) { + this.redirectUrl = redirectUrl; return this; } @@ -127,12 +131,14 @@ public URI getRedirectUrl() { return redirectUrl; } + public void setRedirectUrl(URI redirectUrl) { this.redirectUrl = redirectUrl; } public UpdateConference redirectMethod(RedirectMethodEnum redirectMethod) { + this.redirectMethod = redirectMethod; return this; } @@ -146,12 +152,14 @@ public RedirectMethodEnum getRedirectMethod() { return redirectMethod; } + public void setRedirectMethod(RedirectMethodEnum redirectMethod) { this.redirectMethod = redirectMethod; } public UpdateConference username(String username) { + this.username = username; return this; } @@ -165,12 +173,14 @@ public String getUsername() { return username; } + public void setUsername(String username) { this.username = username; } public UpdateConference password(String password) { + this.password = password; return this; } @@ -184,12 +194,14 @@ public String getPassword() { return password; } + public void setPassword(String password) { this.password = password; } public UpdateConference redirectFallbackUrl(URI redirectFallbackUrl) { + this.redirectFallbackUrl = redirectFallbackUrl; return this; } @@ -203,12 +215,14 @@ public URI getRedirectFallbackUrl() { return redirectFallbackUrl; } + public void setRedirectFallbackUrl(URI redirectFallbackUrl) { this.redirectFallbackUrl = redirectFallbackUrl; } public UpdateConference redirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { + this.redirectFallbackMethod = redirectFallbackMethod; return this; } @@ -222,12 +236,14 @@ public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; } + public void setRedirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { this.redirectFallbackMethod = redirectFallbackMethod; } public UpdateConference fallbackUsername(String fallbackUsername) { + this.fallbackUsername = fallbackUsername; return this; } @@ -241,12 +257,14 @@ public String getFallbackUsername() { return fallbackUsername; } + public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public UpdateConference fallbackPassword(String fallbackPassword) { + this.fallbackPassword = fallbackPassword; return this; } @@ -260,6 +278,7 @@ public String getFallbackPassword() { return fallbackPassword; } + public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } @@ -410,17 +429,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // validate the optional field `status` - if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { - ConferenceStateEnum.validateJsonElement(jsonObj.get("status")); - } if ((jsonObj.get("redirectUrl") != null && !jsonObj.get("redirectUrl").isJsonNull()) && !jsonObj.get("redirectUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `redirectUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redirectUrl").toString())); } - // validate the optional field `redirectMethod` - if (jsonObj.get("redirectMethod") != null && !jsonObj.get("redirectMethod").isJsonNull()) { - RedirectMethodEnum.validateJsonElement(jsonObj.get("redirectMethod")); - } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -430,10 +441,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("redirectFallbackUrl") != null && !jsonObj.get("redirectFallbackUrl").isJsonNull()) && !jsonObj.get("redirectFallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `redirectFallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redirectFallbackUrl").toString())); } - // validate the optional field `redirectFallbackMethod` - if (jsonObj.get("redirectFallbackMethod") != null && !jsonObj.get("redirectFallbackMethod").isJsonNull()) { - RedirectMethodEnum.validateJsonElement(jsonObj.get("redirectFallbackMethod")); - } if ((jsonObj.get("fallbackUsername") != null && !jsonObj.get("fallbackUsername").isJsonNull()) && !jsonObj.get("fallbackUsername").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUsername").toString())); } @@ -470,12 +477,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java index d80e102f..00cffd4f 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java @@ -45,6 +45,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +53,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") public class UpdateConferenceMember { public static final String SERIALIZED_NAME_MUTE = "mute"; @SerializedName(SERIALIZED_NAME_MUTE) @@ -70,6 +71,7 @@ public UpdateConferenceMember() { } public UpdateConferenceMember mute(Boolean mute) { + this.mute = mute; return this; } @@ -83,12 +85,14 @@ public Boolean getMute() { return mute; } + public void setMute(Boolean mute) { this.mute = mute; } public UpdateConferenceMember hold(Boolean hold) { + this.hold = hold; return this; } @@ -102,12 +106,14 @@ public Boolean getHold() { return hold; } + public void setHold(Boolean hold) { this.hold = hold; } public UpdateConferenceMember callIdsToCoach(List callIdsToCoach) { + this.callIdsToCoach = callIdsToCoach; return this; } @@ -129,6 +135,7 @@ public List getCallIdsToCoach() { return callIdsToCoach; } + public void setCallIdsToCoach(List callIdsToCoach) { this.callIdsToCoach = callIdsToCoach; } @@ -295,12 +302,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java index 9bf0a02d..87c6d224 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java @@ -43,6 +43,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +51,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") public class VerifyCodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -72,6 +73,7 @@ public VerifyCodeRequest() { } public VerifyCodeRequest to(String to) { + this.to = to; return this; } @@ -85,12 +87,14 @@ public String getTo() { return to; } + public void setTo(String to) { this.to = to; } public VerifyCodeRequest scope(String scope) { + this.scope = scope; return this; } @@ -104,12 +108,14 @@ public String getScope() { return scope; } + public void setScope(String scope) { this.scope = scope; } public VerifyCodeRequest expirationTimeInMinutes(BigDecimal expirationTimeInMinutes) { + this.expirationTimeInMinutes = expirationTimeInMinutes; return this; } @@ -125,12 +131,14 @@ public BigDecimal getExpirationTimeInMinutes() { return expirationTimeInMinutes; } + public void setExpirationTimeInMinutes(BigDecimal expirationTimeInMinutes) { this.expirationTimeInMinutes = expirationTimeInMinutes; } public VerifyCodeRequest code(String code) { + this.code = code; return this; } @@ -144,6 +152,7 @@ public String getCode() { return code; } + public void setCode(String code) { this.code = code; } @@ -317,12 +326,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java index 397c5e6c..595c8057 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class VerifyCodeResponse { public static final String SERIALIZED_NAME_VALID = "valid"; @SerializedName(SERIALIZED_NAME_VALID) @@ -59,6 +60,7 @@ public VerifyCodeResponse() { } public VerifyCodeResponse valid(Boolean valid) { + this.valid = valid; return this; } @@ -72,6 +74,7 @@ public Boolean getValid() { return valid; } + public void setValid(Boolean valid) { this.valid = valid; } @@ -217,12 +220,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java index 5d049049..905ebfcd 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java @@ -43,6 +43,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +51,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") public class VoiceApiError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -68,6 +69,7 @@ public VoiceApiError() { } public VoiceApiError type(String type) { + this.type = type; return this; } @@ -81,12 +83,14 @@ public String getType() { return type; } + public void setType(String type) { this.type = type; } public VoiceApiError description(String description) { + this.description = description; return this; } @@ -100,12 +104,14 @@ public String getDescription() { return description; } + public void setDescription(String description) { this.description = description; } public VoiceApiError id(String id) { + this.id = id; return this; } @@ -119,6 +125,7 @@ public String getId() { return id; } + public void setId(String id) { this.id = id; } @@ -290,12 +297,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java index 7976d567..e63e8932 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java @@ -42,6 +42,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -49,7 +50,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") public class VoiceCodeResponse { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -59,6 +60,7 @@ public VoiceCodeResponse() { } public VoiceCodeResponse callId(String callId) { + this.callId = callId; return this; } @@ -72,6 +74,7 @@ public String getCallId() { return callId; } + public void setCallId(String callId) { this.callId = callId; } @@ -220,12 +223,7 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - JsonElement jsonElement = gson.toJsonTree(entry.getValue()); - if (jsonElement.isJsonArray()) { - obj.add(entry.getKey(), jsonElement.getAsJsonArray()); - } else { - obj.add(entry.getKey(), jsonElement.getAsJsonObject()); - } + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); } } } diff --git a/src/test/java/com/bandwidth/sdk/api/CallsApiTest.java b/src/test/java/com/bandwidth/sdk/api/CallsApiTest.java new file mode 100644 index 00000000..b59fa7da --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/CallsApiTest.java @@ -0,0 +1,121 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import com.bandwidth.sdk.model.CallState; +import com.bandwidth.sdk.model.CreateCall; +import com.bandwidth.sdk.model.CreateCallResponse; +import com.bandwidth.sdk.model.UpdateCall; +import com.bandwidth.sdk.model.VoiceApiError; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CallsApi + */ +@Disabled +public class CallsApiTest { + + private final CallsApi api = new CallsApi(); + + /** + * Create Call + * + * Creates an outbound phone call. All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to \"fire and forget\" when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand. <b>Please note:</b> Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed. + * + * @throws ApiException if the Api call fails + */ + @Test + public void createCallTest() throws ApiException { + String accountId = null; + CreateCall createCall = null; + CreateCallResponse response = api.createCall(accountId, createCall); + // TODO: test validations + } + + /** + * Get Call State Information + * + * Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint. **Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCallStateTest() throws ApiException { + String accountId = null; + String callId = null; + CallState response = api.getCallState(accountId, callId); + // TODO: test validations + } + + /** + * Get Calls + * + * Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of call records. Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listCallsTest() throws ApiException { + String accountId = null; + String to = null; + String from = null; + String minStartTime = null; + String maxStartTime = null; + String disconnectCause = null; + Integer pageSize = null; + String pageToken = null; + List response = api.listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken); + // TODO: test validations + } + + /** + * Update Call + * + * Interrupts and redirects a call to a different URL that should return a BXML document. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateCallTest() throws ApiException { + String accountId = null; + String callId = null; + UpdateCall updateCall = null; + api.updateCall(accountId, callId, updateCall); + // TODO: test validations + } + + /** + * Update Call BXML + * + * Interrupts and replaces an active call's BXML document. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateCallBxmlTest() throws ApiException { + String accountId = null; + String callId = null; + String body = null; + api.updateCallBxml(accountId, callId, body); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java b/src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java new file mode 100644 index 00000000..badc8c2a --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java @@ -0,0 +1,186 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import com.bandwidth.sdk.model.Conference; +import com.bandwidth.sdk.model.ConferenceMember; +import com.bandwidth.sdk.model.ConferenceRecordingMetadata; +import java.io.File; +import com.bandwidth.sdk.model.UpdateConference; +import com.bandwidth.sdk.model.UpdateConferenceMember; +import com.bandwidth.sdk.model.VoiceApiError; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ConferencesApi + */ +@Disabled +public class ConferencesApiTest { + + private final ConferencesApi api = new ConferencesApi(); + + /** + * Download Conference Recording + * + * Downloads the specified recording file. + * + * @throws ApiException if the Api call fails + */ + @Test + public void downloadConferenceRecordingTest() throws ApiException { + String accountId = null; + String conferenceId = null; + String recordingId = null; + File response = api.downloadConferenceRecording(accountId, conferenceId, recordingId); + // TODO: test validations + } + + /** + * Get Conference Information + * + * Returns information about the specified conference. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getConferenceTest() throws ApiException { + String accountId = null; + String conferenceId = null; + Conference response = api.getConference(accountId, conferenceId); + // TODO: test validations + } + + /** + * Get Conference Member + * + * Returns information about the specified conference member. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getConferenceMemberTest() throws ApiException { + String accountId = null; + String conferenceId = null; + String memberId = null; + ConferenceMember response = api.getConferenceMember(accountId, conferenceId, memberId); + // TODO: test validations + } + + /** + * Get Conference Recording Information + * + * Returns metadata for the specified recording. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getConferenceRecordingTest() throws ApiException { + String accountId = null; + String conferenceId = null; + String recordingId = null; + ConferenceRecordingMetadata response = api.getConferenceRecording(accountId, conferenceId, recordingId); + // TODO: test validations + } + + /** + * Get Conference Recordings + * + * Returns a (potentially empty) list of metadata for the recordings that took place during the specified conference. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listConferenceRecordingsTest() throws ApiException { + String accountId = null; + String conferenceId = null; + List response = api.listConferenceRecordings(accountId, conferenceId); + // TODO: test validations + } + + /** + * Get Conferences + * + * Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of conference records. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listConferencesTest() throws ApiException { + String accountId = null; + String name = null; + String minCreatedTime = null; + String maxCreatedTime = null; + Integer pageSize = null; + String pageToken = null; + List response = api.listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken); + // TODO: test validations + } + + /** + * Update Conference + * + * Update the conference state. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateConferenceTest() throws ApiException { + String accountId = null; + String conferenceId = null; + UpdateConference updateConference = null; + api.updateConference(accountId, conferenceId, updateConference); + // TODO: test validations + } + + /** + * Update Conference BXML + * + * Update the conference BXML document. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateConferenceBxmlTest() throws ApiException { + String accountId = null; + String conferenceId = null; + String body = null; + api.updateConferenceBxml(accountId, conferenceId, body); + // TODO: test validations + } + + /** + * Update Conference Member + * + * Updates settings for a particular conference member. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateConferenceMemberTest() throws ApiException { + String accountId = null; + String conferenceId = null; + String memberId = null; + UpdateConferenceMember updateConferenceMember = null; + api.updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/api/MediaApiTest.java b/src/test/java/com/bandwidth/sdk/api/MediaApiTest.java new file mode 100644 index 00000000..50996132 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/MediaApiTest.java @@ -0,0 +1,99 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import java.io.File; +import com.bandwidth.sdk.model.Media; +import com.bandwidth.sdk.model.MessagingRequestError; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for MediaApi + */ +@Disabled +public class MediaApiTest { + + private final MediaApi api = new MediaApi(); + + /** + * Delete Media + * + * Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteMediaTest() throws ApiException { + String accountId = null; + String mediaId = null; + api.deleteMedia(accountId, mediaId); + // TODO: test validations + } + + /** + * Get Media + * + * Downloads a media file you previously uploaded. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getMediaTest() throws ApiException { + String accountId = null; + String mediaId = null; + File response = api.getMedia(accountId, mediaId); + // TODO: test validations + } + + /** + * List Media + * + * Gets a list of your media files. No query parameters are supported. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listMediaTest() throws ApiException { + String accountId = null; + String continuationToken = null; + List response = api.listMedia(accountId, continuationToken); + // TODO: test validations + } + + /** + * Upload Media + * + * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-). + * + * @throws ApiException if the Api call fails + */ + @Test + public void uploadMediaTest() throws ApiException { + String accountId = null; + String mediaId = null; + File body = null; + String contentType = null; + String cacheControl = null; + api.uploadMedia(accountId, mediaId, body, contentType, cacheControl); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java b/src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java new file mode 100644 index 00000000..f9570693 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java @@ -0,0 +1,87 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import com.bandwidth.sdk.model.CreateMessageRequestError; +import com.bandwidth.sdk.model.ListMessageDirectionEnum; +import com.bandwidth.sdk.model.Message; +import com.bandwidth.sdk.model.MessageRequest; +import com.bandwidth.sdk.model.MessageStatusEnum; +import com.bandwidth.sdk.model.MessageTypeEnum; +import com.bandwidth.sdk.model.MessagesList; +import com.bandwidth.sdk.model.MessagingRequestError; +import com.bandwidth.sdk.model.Region; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for MessagesApi + */ +@Disabled +public class MessagesApiTest { + + private final MessagesApi api = new MessagesApi(); + + /** + * Create Message + * + * Endpoint for sending text messages and picture messages using V2 messaging. + * + * @throws ApiException if the Api call fails + */ + @Test + public void createMessageTest() throws ApiException { + String accountId = null; + MessageRequest messageRequest = null; + Message response = api.createMessage(accountId, messageRequest); + // TODO: test validations + } + + /** + * List Messages + * + * Returns a list of messages based on query parameters. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listMessagesTest() throws ApiException { + String accountId = null; + String messageId = null; + String sourceTn = null; + String destinationTn = null; + MessageStatusEnum messageStatus = null; + ListMessageDirectionEnum messageDirection = null; + String carrierName = null; + MessageTypeEnum messageType = null; + Integer errorCode = null; + String fromDateTime = null; + String toDateTime = null; + String campaignId = null; + String sort = null; + String pageToken = null; + Integer limit = null; + Boolean limitTotalCount = null; + Region region = null; + MessagesList response = api.listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, region); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/api/MfaApiTest.java b/src/test/java/com/bandwidth/sdk/api/MfaApiTest.java new file mode 100644 index 00000000..2af13832 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/MfaApiTest.java @@ -0,0 +1,86 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import com.bandwidth.sdk.model.CodeRequest; +import com.bandwidth.sdk.model.MessagingCodeResponse; +import com.bandwidth.sdk.model.MfaForbiddenRequestError; +import com.bandwidth.sdk.model.MfaRequestError; +import com.bandwidth.sdk.model.MfaUnauthorizedRequestError; +import com.bandwidth.sdk.model.VerifyCodeRequest; +import com.bandwidth.sdk.model.VerifyCodeResponse; +import com.bandwidth.sdk.model.VoiceCodeResponse; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for MfaApi + */ +@Disabled +public class MfaApiTest { + + private final MfaApi api = new MfaApi(); + + /** + * Messaging Authentication Code + * + * Send an MFA code via text message (SMS). + * + * @throws ApiException if the Api call fails + */ + @Test + public void generateMessagingCodeTest() throws ApiException { + String accountId = null; + CodeRequest codeRequest = null; + MessagingCodeResponse response = api.generateMessagingCode(accountId, codeRequest); + // TODO: test validations + } + + /** + * Voice Authentication Code + * + * Send an MFA Code via a phone call. + * + * @throws ApiException if the Api call fails + */ + @Test + public void generateVoiceCodeTest() throws ApiException { + String accountId = null; + CodeRequest codeRequest = null; + VoiceCodeResponse response = api.generateVoiceCode(accountId, codeRequest); + // TODO: test validations + } + + /** + * Verify Authentication Code + * + * Verify a previously sent MFA code. + * + * @throws ApiException if the Api call fails + */ + @Test + public void verifyCodeTest() throws ApiException { + String accountId = null; + VerifyCodeRequest verifyCodeRequest = null; + VerifyCodeResponse response = api.verifyCode(accountId, verifyCodeRequest); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java b/src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java new file mode 100644 index 00000000..0ea70098 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java @@ -0,0 +1,67 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import com.bandwidth.sdk.model.CreateLookupResponse; +import com.bandwidth.sdk.model.LookupRequest; +import com.bandwidth.sdk.model.LookupStatus; +import com.bandwidth.sdk.model.TnLookupRequestError; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PhoneNumberLookupApi + */ +@Disabled +public class PhoneNumberLookupApiTest { + + private final PhoneNumberLookupApi api = new PhoneNumberLookupApi(); + + /** + * Create Lookup + * + * Create a Phone Number Lookup Request. + * + * @throws ApiException if the Api call fails + */ + @Test + public void createLookupTest() throws ApiException { + String accountId = null; + LookupRequest lookupRequest = null; + CreateLookupResponse response = api.createLookup(accountId, lookupRequest); + // TODO: test validations + } + + /** + * Get Lookup Request Status + * + * Get an existing Phone Number Lookup Request. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getLookupStatusTest() throws ApiException { + String accountId = null; + String requestId = null; + LookupStatus response = api.getLookupStatus(accountId, requestId); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java b/src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java new file mode 100644 index 00000000..1df9d4c3 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java @@ -0,0 +1,201 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import com.bandwidth.sdk.model.CallRecordingMetadata; +import java.io.File; +import com.bandwidth.sdk.model.RecordingTranscriptions; +import com.bandwidth.sdk.model.TranscribeRecording; +import com.bandwidth.sdk.model.UpdateCallRecording; +import com.bandwidth.sdk.model.VoiceApiError; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for RecordingsApi + */ +@Disabled +public class RecordingsApiTest { + + private final RecordingsApi api = new RecordingsApi(); + + /** + * Delete Recording + * + * Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRecordingTest() throws ApiException { + String accountId = null; + String callId = null; + String recordingId = null; + api.deleteRecording(accountId, callId, recordingId); + // TODO: test validations + } + + /** + * Delete Recording Media + * + * Deletes the specified recording's media. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRecordingMediaTest() throws ApiException { + String accountId = null; + String callId = null; + String recordingId = null; + api.deleteRecordingMedia(accountId, callId, recordingId); + // TODO: test validations + } + + /** + * Delete Transcription + * + * Deletes the specified recording's transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRecordingTranscriptionTest() throws ApiException { + String accountId = null; + String callId = null; + String recordingId = null; + api.deleteRecordingTranscription(accountId, callId, recordingId); + // TODO: test validations + } + + /** + * Download Recording + * + * Downloads the specified recording. + * + * @throws ApiException if the Api call fails + */ + @Test + public void downloadCallRecordingTest() throws ApiException { + String accountId = null; + String callId = null; + String recordingId = null; + File response = api.downloadCallRecording(accountId, callId, recordingId); + // TODO: test validations + } + + /** + * Get Call Recording + * + * Returns metadata for the specified recording. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getCallRecordingTest() throws ApiException { + String accountId = null; + String callId = null; + String recordingId = null; + CallRecordingMetadata response = api.getCallRecording(accountId, callId, recordingId); + // TODO: test validations + } + + /** + * Get Transcription + * + * Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRecordingTranscriptionTest() throws ApiException { + String accountId = null; + String callId = null; + String recordingId = null; + RecordingTranscriptions response = api.getRecordingTranscription(accountId, callId, recordingId); + // TODO: test validations + } + + /** + * Get Call Recordings + * + * Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listAccountCallRecordingsTest() throws ApiException { + String accountId = null; + String to = null; + String from = null; + String minStartTime = null; + String maxStartTime = null; + List response = api.listAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime); + // TODO: test validations + } + + /** + * List Call Recordings + * + * Returns a (potentially empty) list of metadata for the recordings that took place during the specified call. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listCallRecordingsTest() throws ApiException { + String accountId = null; + String callId = null; + List response = api.listCallRecordings(accountId, callId); + // TODO: test validations + } + + /** + * Create Transcription Request + * + * Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours. + * + * @throws ApiException if the Api call fails + */ + @Test + public void transcribeCallRecordingTest() throws ApiException { + String accountId = null; + String callId = null; + String recordingId = null; + TranscribeRecording transcribeRecording = null; + api.transcribeCallRecording(accountId, callId, recordingId, transcribeRecording); + // TODO: test validations + } + + /** + * Update Recording + * + * Pause or resume a recording on an active phone call. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateCallRecordingStateTest() throws ApiException { + String accountId = null; + String callId = null; + UpdateCallRecording updateCallRecording = null; + api.updateCallRecordingState(accountId, callId, updateCallRecording); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java b/src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java new file mode 100644 index 00000000..5f5d855b --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java @@ -0,0 +1,49 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import com.bandwidth.sdk.model.AccountStatistics; +import com.bandwidth.sdk.model.VoiceApiError; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for StatisticsApi + */ +@Disabled +public class StatisticsApiTest { + + private final StatisticsApi api = new StatisticsApi(); + + /** + * Get Account Statistics + * + * Returns details about the current state of the account. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getStatisticsTest() throws ApiException { + String accountId = null; + AccountStatistics response = api.getStatistics(accountId); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java b/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java new file mode 100644 index 00000000..825a0b39 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java @@ -0,0 +1,83 @@ +/* + * 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.api; + +import com.bandwidth.sdk.ApiException; +import com.bandwidth.sdk.model.CallTranscriptionMetadata; +import com.bandwidth.sdk.model.CallTranscriptionResponse; +import com.bandwidth.sdk.model.VoiceApiError; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for TranscriptionsApi + */ +@Disabled +public class TranscriptionsApiTest { + + private final TranscriptionsApi api = new TranscriptionsApi(); + + /** + * Delete a specific transcription + * + * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRealTimeTranscriptionTest() throws ApiException { + String accountId = null; + String callId = null; + String transcriptionId = null; + api.deleteRealTimeTranscription(accountId, callId, transcriptionId); + // TODO: test validations + } + + /** + * Retrieve a specific transcription + * + * Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRealTimeTranscriptionTest() throws ApiException { + String accountId = null; + String callId = null; + String transcriptionId = null; + CallTranscriptionResponse response = api.getRealTimeTranscription(accountId, callId, transcriptionId); + // TODO: test validations + } + + /** + * Enumerate transcriptions made with StartTranscription + * + * Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). + * + * @throws ApiException if the Api call fails + */ + @Test + public void listRealTimeTranscriptionsTest() throws ApiException { + String accountId = null; + String callId = null; + List response = api.listRealTimeTranscriptions(accountId, callId); + // TODO: test validations + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java b/src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java new file mode 100644 index 00000000..9ab0f3ee --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java @@ -0,0 +1,56 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AccountStatistics + */ +public class AccountStatisticsTest { + private final AccountStatistics model = new AccountStatistics(); + + /** + * Model tests for AccountStatistics + */ + @Test + public void testAccountStatistics() { + // TODO: test AccountStatistics + } + + /** + * Test the property 'currentCallQueueSize' + */ + @Test + public void currentCallQueueSizeTest() { + // TODO: test currentCallQueueSize + } + + /** + * Test the property 'maxCallQueueSize' + */ + @Test + public void maxCallQueueSizeTest() { + // TODO: test maxCallQueueSize + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java new file mode 100644 index 00000000..9b90d2ac --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java @@ -0,0 +1,157 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.MachineDetectionResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AnswerCallback + */ +public class AnswerCallbackTest { + private final AnswerCallback model = new AnswerCallback(); + + /** + * Model tests for AnswerCallback + */ + @Test + public void testAnswerCallback() { + // TODO: test AnswerCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'machineDetectionResult' + */ + @Test + public void machineDetectionResultTest() { + // TODO: test machineDetectionResult + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java new file mode 100644 index 00000000..7215201f --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java @@ -0,0 +1,172 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BridgeCompleteCallback + */ +public class BridgeCompleteCallbackTest { + private final BridgeCompleteCallback model = new BridgeCompleteCallback(); + + /** + * Model tests for BridgeCompleteCallback + */ + @Test + public void testBridgeCompleteCallback() { + // TODO: test BridgeCompleteCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'cause' + */ + @Test + public void causeTest() { + // TODO: test cause + } + + /** + * Test the property 'errorMessage' + */ + @Test + public void errorMessageTest() { + // TODO: test errorMessage + } + + /** + * Test the property 'errorId' + */ + @Test + public void errorIdTest() { + // TODO: test errorId + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java new file mode 100644 index 00000000..8695a23d --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java @@ -0,0 +1,148 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BridgeTargetCompleteCallback + */ +public class BridgeTargetCompleteCallbackTest { + private final BridgeTargetCompleteCallback model = new BridgeTargetCompleteCallback(); + + /** + * Model tests for BridgeTargetCompleteCallback + */ + @Test + public void testBridgeTargetCompleteCallback() { + // TODO: test BridgeTargetCompleteCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java new file mode 100644 index 00000000..71835091 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallDirectionEnum + */ +public class CallDirectionEnumTest { + /** + * Model tests for CallDirectionEnum + */ + @Test + public void testCallDirectionEnum() { + // TODO: test CallDirectionEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java b/src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java new file mode 100644 index 00000000..566ce0c2 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java @@ -0,0 +1,198 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.FileFormatEnum; +import com.bandwidth.sdk.model.RecordingTranscriptionMetadata; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallRecordingMetadata + */ +public class CallRecordingMetadataTest { + private final CallRecordingMetadata model = new CallRecordingMetadata(); + + /** + * Model tests for CallRecordingMetadata + */ + @Test + public void testCallRecordingMetadata() { + // TODO: test CallRecordingMetadata + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'recordingId' + */ + @Test + public void recordingIdTest() { + // TODO: test recordingId + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'fileFormat' + */ + @Test + public void fileFormatTest() { + // TODO: test fileFormat + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'mediaUrl' + */ + @Test + public void mediaUrlTest() { + // TODO: test mediaUrl + } + + /** + * Test the property 'transcription' + */ + @Test + public void transcriptionTest() { + // TODO: test transcription + } + + /** + * Test the property 'recordingName' + */ + @Test + public void recordingNameTest() { + // TODO: test recordingName + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java new file mode 100644 index 00000000..1bccdbb0 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallStateEnum + */ +public class CallStateEnumTest { + /** + * Model tests for CallStateEnum + */ + @Test + public void testCallStateEnum() { + // TODO: test CallStateEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallStateTest.java b/src/test/java/com/bandwidth/sdk/model/CallStateTest.java new file mode 100644 index 00000000..425cf9cb --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallStateTest.java @@ -0,0 +1,189 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallState + */ +public class CallStateTest { + private final CallState model = new CallState(); + + /** + * Model tests for CallState + */ + @Test + public void testCallState() { + // TODO: test CallState + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + + /** + * Test the property 'stirShaken' + */ + @Test + public void stirShakenTest() { + // TODO: test stirShaken + } + + /** + * Test the property 'identity' + */ + @Test + public void identityTest() { + // TODO: test identity + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'disconnectCause' + */ + @Test + public void disconnectCauseTest() { + // TODO: test disconnectCause + } + + /** + * Test the property 'errorMessage' + */ + @Test + public void errorMessageTest() { + // TODO: test errorMessage + } + + /** + * Test the property 'errorId' + */ + @Test + public void errorIdTest() { + // TODO: test errorId + } + + /** + * Test the property 'lastUpdate' + */ + @Test + public void lastUpdateTest() { + // TODO: test lastUpdate + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java new file mode 100644 index 00000000..f6ac2eda --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallTranscriptionDetectedLanguageEnum + */ +public class CallTranscriptionDetectedLanguageEnumTest { + /** + * Model tests for CallTranscriptionDetectedLanguageEnum + */ + @Test + public void testCallTranscriptionDetectedLanguageEnum() { + // TODO: test CallTranscriptionDetectedLanguageEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java new file mode 100644 index 00000000..70e4ab38 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java @@ -0,0 +1,64 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallTranscriptionMetadata + */ +public class CallTranscriptionMetadataTest { + private final CallTranscriptionMetadata model = new CallTranscriptionMetadata(); + + /** + * Model tests for CallTranscriptionMetadata + */ + @Test + public void testCallTranscriptionMetadata() { + // TODO: test CallTranscriptionMetadata + } + + /** + * Test the property 'transcriptionId' + */ + @Test + public void transcriptionIdTest() { + // TODO: test transcriptionId + } + + /** + * Test the property 'transcriptionName' + */ + @Test + public void transcriptionNameTest() { + // TODO: test transcriptionName + } + + /** + * Test the property 'transcriptionUrl' + */ + @Test + public void transcriptionUrlTest() { + // TODO: test transcriptionUrl + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java new file mode 100644 index 00000000..b725b6d9 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java @@ -0,0 +1,75 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallTranscription; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallTranscriptionResponse + */ +public class CallTranscriptionResponseTest { + private final CallTranscriptionResponse model = new CallTranscriptionResponse(); + + /** + * Model tests for CallTranscriptionResponse + */ + @Test + public void testCallTranscriptionResponse() { + // TODO: test CallTranscriptionResponse + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'transcriptionId' + */ + @Test + public void transcriptionIdTest() { + // TODO: test transcriptionId + } + + /** + * Test the property 'tracks' + */ + @Test + public void tracksTest() { + // TODO: test tracks + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java new file mode 100644 index 00000000..83096973 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java @@ -0,0 +1,74 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallTranscriptionDetectedLanguageEnum; +import com.bandwidth.sdk.model.CallTranscriptionTrackEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallTranscription + */ +public class CallTranscriptionTest { + private final CallTranscription model = new CallTranscription(); + + /** + * Model tests for CallTranscription + */ + @Test + public void testCallTranscription() { + // TODO: test CallTranscription + } + + /** + * Test the property 'detectedLanguage' + */ + @Test + public void detectedLanguageTest() { + // TODO: test detectedLanguage + } + + /** + * Test the property 'track' + */ + @Test + public void trackTest() { + // TODO: test track + } + + /** + * Test the property 'transcript' + */ + @Test + public void transcriptTest() { + // TODO: test transcript + } + + /** + * Test the property 'confidence' + */ + @Test + public void confidenceTest() { + // TODO: test confidence + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java new file mode 100644 index 00000000..7b07c1ef --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallTranscriptionTrackEnum + */ +public class CallTranscriptionTrackEnumTest { + /** + * Model tests for CallTranscriptionTrackEnum + */ + @Test + public void testCallTranscriptionTrackEnum() { + // TODO: test CallTranscriptionTrackEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java new file mode 100644 index 00000000..9f4393b1 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallbackMethodEnum + */ +public class CallbackMethodEnumTest { + /** + * Model tests for CallbackMethodEnum + */ + @Test + public void testCallbackMethodEnum() { + // TODO: test CallbackMethodEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java b/src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java new file mode 100644 index 00000000..4c4fb9e9 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java @@ -0,0 +1,88 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CodeRequest + */ +public class CodeRequestTest { + private final CodeRequest model = new CodeRequest(); + + /** + * Model tests for CodeRequest + */ + @Test + public void testCodeRequest() { + // TODO: test CodeRequest + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'digits' + */ + @Test + public void digitsTest() { + // TODO: test digits + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java new file mode 100644 index 00000000..3d6a3e22 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java @@ -0,0 +1,82 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceCompletedCallback + */ +public class ConferenceCompletedCallbackTest { + private final ConferenceCompletedCallback model = new ConferenceCompletedCallback(); + + /** + * Model tests for ConferenceCompletedCallback + */ + @Test + public void testConferenceCompletedCallback() { + // TODO: test ConferenceCompletedCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'conferenceId' + */ + @Test + public void conferenceIdTest() { + // TODO: test conferenceId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java new file mode 100644 index 00000000..06263dea --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java @@ -0,0 +1,82 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceCreatedCallback + */ +public class ConferenceCreatedCallbackTest { + private final ConferenceCreatedCallback model = new ConferenceCreatedCallback(); + + /** + * Model tests for ConferenceCreatedCallback + */ + @Test + public void testConferenceCreatedCallback() { + // TODO: test ConferenceCreatedCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'conferenceId' + */ + @Test + public void conferenceIdTest() { + // TODO: test conferenceId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java new file mode 100644 index 00000000..71a55ee6 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java @@ -0,0 +1,106 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceMemberExitCallback + */ +public class ConferenceMemberExitCallbackTest { + private final ConferenceMemberExitCallback model = new ConferenceMemberExitCallback(); + + /** + * Model tests for ConferenceMemberExitCallback + */ + @Test + public void testConferenceMemberExitCallback() { + // TODO: test ConferenceMemberExitCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'conferenceId' + */ + @Test + public void conferenceIdTest() { + // TODO: test conferenceId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java new file mode 100644 index 00000000..742883e0 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java @@ -0,0 +1,106 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceMemberJoinCallback + */ +public class ConferenceMemberJoinCallbackTest { + private final ConferenceMemberJoinCallback model = new ConferenceMemberJoinCallback(); + + /** + * Model tests for ConferenceMemberJoinCallback + */ + @Test + public void testConferenceMemberJoinCallback() { + // TODO: test ConferenceMemberJoinCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'conferenceId' + */ + @Test + public void conferenceIdTest() { + // TODO: test conferenceId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java new file mode 100644 index 00000000..00dc4101 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java @@ -0,0 +1,92 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceMember + */ +public class ConferenceMemberTest { + private final ConferenceMember model = new ConferenceMember(); + + /** + * Model tests for ConferenceMember + */ + @Test + public void testConferenceMember() { + // TODO: test ConferenceMember + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'conferenceId' + */ + @Test + public void conferenceIdTest() { + // TODO: test conferenceId + } + + /** + * Test the property 'memberUrl' + */ + @Test + public void memberUrlTest() { + // TODO: test memberUrl + } + + /** + * Test the property 'mute' + */ + @Test + public void muteTest() { + // TODO: test mute + } + + /** + * Test the property 'hold' + */ + @Test + public void holdTest() { + // TODO: test hold + } + + /** + * Test the property 'callIdsToCoach' + */ + @Test + public void callIdsToCoachTest() { + // TODO: test callIdsToCoach + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java new file mode 100644 index 00000000..c2b175db --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java @@ -0,0 +1,156 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.FileFormatEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceRecordingAvailableCallback + */ +public class ConferenceRecordingAvailableCallbackTest { + private final ConferenceRecordingAvailableCallback model = new ConferenceRecordingAvailableCallback(); + + /** + * Model tests for ConferenceRecordingAvailableCallback + */ + @Test + public void testConferenceRecordingAvailableCallback() { + // TODO: test ConferenceRecordingAvailableCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'conferenceId' + */ + @Test + public void conferenceIdTest() { + // TODO: test conferenceId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'recordingId' + */ + @Test + public void recordingIdTest() { + // TODO: test recordingId + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + + /** + * Test the property 'fileFormat' + */ + @Test + public void fileFormatTest() { + // TODO: test fileFormat + } + + /** + * Test the property 'mediaUrl' + */ + @Test + public void mediaUrlTest() { + // TODO: test mediaUrl + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java new file mode 100644 index 00000000..b2625687 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java @@ -0,0 +1,140 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.FileFormatEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceRecordingMetadata + */ +public class ConferenceRecordingMetadataTest { + private final ConferenceRecordingMetadata model = new ConferenceRecordingMetadata(); + + /** + * Model tests for ConferenceRecordingMetadata + */ + @Test + public void testConferenceRecordingMetadata() { + // TODO: test ConferenceRecordingMetadata + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'conferenceId' + */ + @Test + public void conferenceIdTest() { + // TODO: test conferenceId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'recordingId' + */ + @Test + public void recordingIdTest() { + // TODO: test recordingId + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'fileFormat' + */ + @Test + public void fileFormatTest() { + // TODO: test fileFormat + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'mediaUrl' + */ + @Test + public void mediaUrlTest() { + // TODO: test mediaUrl + } + + /** + * Test the property 'recordingName' + */ + @Test + public void recordingNameTest() { + // TODO: test recordingName + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java new file mode 100644 index 00000000..abbeba30 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java @@ -0,0 +1,82 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceRedirectCallback + */ +public class ConferenceRedirectCallbackTest { + private final ConferenceRedirectCallback model = new ConferenceRedirectCallback(); + + /** + * Model tests for ConferenceRedirectCallback + */ + @Test + public void testConferenceRedirectCallback() { + // TODO: test ConferenceRedirectCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'conferenceId' + */ + @Test + public void conferenceIdTest() { + // TODO: test conferenceId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java new file mode 100644 index 00000000..6513fad6 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConferenceStateEnum + */ +public class ConferenceStateEnumTest { + /** + * Model tests for ConferenceStateEnum + */ + @Test + public void testConferenceStateEnum() { + // TODO: test ConferenceStateEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceTest.java new file mode 100644 index 00000000..d88ca4f4 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ConferenceTest.java @@ -0,0 +1,111 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallbackMethodEnum; +import com.bandwidth.sdk.model.ConferenceMember; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Conference + */ +public class ConferenceTest { + private final Conference model = new Conference(); + + /** + * Model tests for Conference + */ + @Test + public void testConference() { + // TODO: test Conference + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'createdTime' + */ + @Test + public void createdTimeTest() { + // TODO: test createdTime + } + + /** + * Test the property 'completedTime' + */ + @Test + public void completedTimeTest() { + // TODO: test completedTime + } + + /** + * Test the property 'conferenceEventUrl' + */ + @Test + public void conferenceEventUrlTest() { + // TODO: test conferenceEventUrl + } + + /** + * Test the property 'conferenceEventMethod' + */ + @Test + public void conferenceEventMethodTest() { + // TODO: test conferenceEventMethod + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'activeMembers' + */ + @Test + public void activeMembersTest() { + // TODO: test activeMembers + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java b/src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java new file mode 100644 index 00000000..4d9de0ea --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java @@ -0,0 +1,212 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallbackMethodEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateCallResponse + */ +public class CreateCallResponseTest { + private final CreateCallResponse model = new CreateCallResponse(); + + /** + * Model tests for CreateCallResponse + */ + @Test + public void testCreateCallResponse() { + // TODO: test CreateCallResponse + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'callTimeout' + */ + @Test + public void callTimeoutTest() { + // TODO: test callTimeout + } + + /** + * Test the property 'callbackTimeout' + */ + @Test + public void callbackTimeoutTest() { + // TODO: test callbackTimeout + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'answerMethod' + */ + @Test + public void answerMethodTest() { + // TODO: test answerMethod + } + + /** + * Test the property 'answerUrl' + */ + @Test + public void answerUrlTest() { + // TODO: test answerUrl + } + + /** + * Test the property 'answerFallbackMethod' + */ + @Test + public void answerFallbackMethodTest() { + // TODO: test answerFallbackMethod + } + + /** + * Test the property 'answerFallbackUrl' + */ + @Test + public void answerFallbackUrlTest() { + // TODO: test answerFallbackUrl + } + + /** + * Test the property 'disconnectMethod' + */ + @Test + public void disconnectMethodTest() { + // TODO: test disconnectMethod + } + + /** + * Test the property 'disconnectUrl' + */ + @Test + public void disconnectUrlTest() { + // TODO: test disconnectUrl + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + + /** + * Test the property 'fallbackUsername' + */ + @Test + public void fallbackUsernameTest() { + // TODO: test fallbackUsername + } + + /** + * Test the property 'fallbackPassword' + */ + @Test + public void fallbackPasswordTest() { + // TODO: test fallbackPassword + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CreateCallTest.java b/src/test/java/com/bandwidth/sdk/model/CreateCallTest.java new file mode 100644 index 00000000..f8de1dcc --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CreateCallTest.java @@ -0,0 +1,212 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallbackMethodEnum; +import com.bandwidth.sdk.model.MachineDetectionConfiguration; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateCall + */ +public class CreateCallTest { + private final CreateCall model = new CreateCall(); + + /** + * Model tests for CreateCall + */ + @Test + public void testCreateCall() { + // TODO: test CreateCall + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'privacy' + */ + @Test + public void privacyTest() { + // TODO: test privacy + } + + /** + * Test the property 'displayName' + */ + @Test + public void displayNameTest() { + // TODO: test displayName + } + + /** + * Test the property 'uui' + */ + @Test + public void uuiTest() { + // TODO: test uui + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'answerUrl' + */ + @Test + public void answerUrlTest() { + // TODO: test answerUrl + } + + /** + * Test the property 'answerMethod' + */ + @Test + public void answerMethodTest() { + // TODO: test answerMethod + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + + /** + * Test the property 'answerFallbackUrl' + */ + @Test + public void answerFallbackUrlTest() { + // TODO: test answerFallbackUrl + } + + /** + * Test the property 'answerFallbackMethod' + */ + @Test + public void answerFallbackMethodTest() { + // TODO: test answerFallbackMethod + } + + /** + * Test the property 'fallbackUsername' + */ + @Test + public void fallbackUsernameTest() { + // TODO: test fallbackUsername + } + + /** + * Test the property 'fallbackPassword' + */ + @Test + public void fallbackPasswordTest() { + // TODO: test fallbackPassword + } + + /** + * Test the property 'disconnectUrl' + */ + @Test + public void disconnectUrlTest() { + // TODO: test disconnectUrl + } + + /** + * Test the property 'disconnectMethod' + */ + @Test + public void disconnectMethodTest() { + // TODO: test disconnectMethod + } + + /** + * Test the property 'callTimeout' + */ + @Test + public void callTimeoutTest() { + // TODO: test callTimeout + } + + /** + * Test the property 'callbackTimeout' + */ + @Test + public void callbackTimeoutTest() { + // TODO: test callbackTimeout + } + + /** + * Test the property 'machineDetection' + */ + @Test + public void machineDetectionTest() { + // TODO: test machineDetection + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java b/src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java new file mode 100644 index 00000000..ab7a8e8f --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java @@ -0,0 +1,57 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.LookupStatusEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateLookupResponse + */ +public class CreateLookupResponseTest { + private final CreateLookupResponse model = new CreateLookupResponse(); + + /** + * Model tests for CreateLookupResponse + */ + @Test + public void testCreateLookupResponse() { + // TODO: test CreateLookupResponse + } + + /** + * Test the property 'requestId' + */ + @Test + public void requestIdTest() { + // TODO: test requestId + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java new file mode 100644 index 00000000..c1e3a81e --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java @@ -0,0 +1,67 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.FieldError; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateMessageRequestError + */ +public class CreateMessageRequestErrorTest { + private final CreateMessageRequestError model = new CreateMessageRequestError(); + + /** + * Model tests for CreateMessageRequestError + */ + @Test + public void testCreateMessageRequestError() { + // TODO: test CreateMessageRequestError + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'fieldErrors' + */ + @Test + public void fieldErrorsTest() { + // TODO: test fieldErrors + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java b/src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java new file mode 100644 index 00000000..7b58054d --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java @@ -0,0 +1,56 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DeferredResult + */ +public class DeferredResultTest { + private final DeferredResult model = new DeferredResult(); + + /** + * Model tests for DeferredResult + */ + @Test + public void testDeferredResult() { + // TODO: test DeferredResult + } + + /** + * Test the property 'result' + */ + @Test + public void resultTest() { + // TODO: test result + } + + /** + * Test the property 'setOrExpired' + */ + @Test + public void setOrExpiredTest() { + // TODO: test setOrExpired + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java new file mode 100644 index 00000000..93ed016e --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java @@ -0,0 +1,180 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DisconnectCallback + */ +public class DisconnectCallbackTest { + private final DisconnectCallback model = new DisconnectCallback(); + + /** + * Model tests for DisconnectCallback + */ + @Test + public void testDisconnectCallback() { + // TODO: test DisconnectCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'cause' + */ + @Test + public void causeTest() { + // TODO: test cause + } + + /** + * Test the property 'errorMessage' + */ + @Test + public void errorMessageTest() { + // TODO: test errorMessage + } + + /** + * Test the property 'errorId' + */ + @Test + public void errorIdTest() { + // TODO: test errorId + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/DiversionTest.java b/src/test/java/com/bandwidth/sdk/model/DiversionTest.java new file mode 100644 index 00000000..b07c2b83 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/DiversionTest.java @@ -0,0 +1,96 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Diversion + */ +public class DiversionTest { + private final Diversion model = new Diversion(); + + /** + * Model tests for Diversion + */ + @Test + public void testDiversion() { + // TODO: test Diversion + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'privacy' + */ + @Test + public void privacyTest() { + // TODO: test privacy + } + + /** + * Test the property 'screen' + */ + @Test + public void screenTest() { + // TODO: test screen + } + + /** + * Test the property 'counter' + */ + @Test + public void counterTest() { + // TODO: test counter + } + + /** + * Test the property 'limit' + */ + @Test + public void limitTest() { + // TODO: test limit + } + + /** + * Test the property 'unknown' + */ + @Test + public void unknownTest() { + // TODO: test unknown + } + + /** + * Test the property 'origTo' + */ + @Test + public void origToTest() { + // TODO: test origTo + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java new file mode 100644 index 00000000..7760b1a0 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java @@ -0,0 +1,180 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DtmfCallback + */ +public class DtmfCallbackTest { + private final DtmfCallback model = new DtmfCallback(); + + /** + * Model tests for DtmfCallback + */ + @Test + public void testDtmfCallback() { + // TODO: test DtmfCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'digit' + */ + @Test + public void digitTest() { + // TODO: test digit + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java b/src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java new file mode 100644 index 00000000..093204d5 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java @@ -0,0 +1,56 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FieldError + */ +public class FieldErrorTest { + private final FieldError model = new FieldError(); + + /** + * Model tests for FieldError + */ + @Test + public void testFieldError() { + // TODO: test FieldError + } + + /** + * Test the property 'fieldName' + */ + @Test + public void fieldNameTest() { + // TODO: test fieldName + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java b/src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java new file mode 100644 index 00000000..534ac98e --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FileFormatEnum + */ +public class FileFormatEnumTest { + /** + * Model tests for FileFormatEnum + */ + @Test + public void testFileFormatEnum() { + // TODO: test FileFormatEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java new file mode 100644 index 00000000..1dd2865a --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java @@ -0,0 +1,188 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GatherCallback + */ +public class GatherCallbackTest { + private final GatherCallback model = new GatherCallback(); + + /** + * Model tests for GatherCallback + */ + @Test + public void testGatherCallback() { + // TODO: test GatherCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'digits' + */ + @Test + public void digitsTest() { + // TODO: test digits + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'terminatingDigit' + */ + @Test + public void terminatingDigitTest() { + // TODO: test terminatingDigit + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java b/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java new file mode 100644 index 00000000..07561e43 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java @@ -0,0 +1,144 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.MessageDirectionEnum; +import com.bandwidth.sdk.model.PriorityEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InboundMessageCallbackMessage + */ +public class InboundMessageCallbackMessageTest { + private final InboundMessageCallbackMessage model = new InboundMessageCallbackMessage(); + + /** + * Model tests for InboundMessageCallbackMessage + */ + @Test + public void testInboundMessageCallbackMessage() { + // TODO: test InboundMessageCallbackMessage + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'owner' + */ + @Test + public void ownerTest() { + // TODO: test owner + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'segmentCount' + */ + @Test + public void segmentCountTest() { + // TODO: test segmentCount + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'media' + */ + @Test + public void mediaTest() { + // TODO: test media + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java new file mode 100644 index 00000000..75b239c8 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java @@ -0,0 +1,82 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.InboundMessageCallbackMessage; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InboundMessageCallback + */ +public class InboundMessageCallbackTest { + private final InboundMessageCallback model = new InboundMessageCallback(); + + /** + * Model tests for InboundMessageCallback + */ + @Test + public void testInboundMessageCallback() { + // TODO: test InboundMessageCallback + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java new file mode 100644 index 00000000..17e86e7b --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java @@ -0,0 +1,141 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.Diversion; +import com.bandwidth.sdk.model.StirShaken; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InitiateCallback + */ +public class InitiateCallbackTest { + private final InitiateCallback model = new InitiateCallback(); + + /** + * Model tests for InitiateCallback + */ + @Test + public void testInitiateCallback() { + // TODO: test InitiateCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'diversion' + */ + @Test + public void diversionTest() { + // TODO: test diversion + } + + /** + * Test the property 'stirShaken' + */ + @Test + public void stirShakenTest() { + // TODO: test stirShaken + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java b/src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java new file mode 100644 index 00000000..1de5df7a --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListMessageDirectionEnum + */ +public class ListMessageDirectionEnumTest { + /** + * Model tests for ListMessageDirectionEnum + */ + @Test + public void testListMessageDirectionEnum() { + // TODO: test ListMessageDirectionEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java b/src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java new file mode 100644 index 00000000..d01e86a0 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java @@ -0,0 +1,181 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.ListMessageDirectionEnum; +import com.bandwidth.sdk.model.MessageStatusEnum; +import com.bandwidth.sdk.model.MessageTypeEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListMessageItem + */ +public class ListMessageItemTest { + private final ListMessageItem model = new ListMessageItem(); + + /** + * Model tests for ListMessageItem + */ + @Test + public void testListMessageItem() { + // TODO: test ListMessageItem + } + + /** + * Test the property 'messageId' + */ + @Test + public void messageIdTest() { + // TODO: test messageId + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'sourceTn' + */ + @Test + public void sourceTnTest() { + // TODO: test sourceTn + } + + /** + * Test the property 'destinationTn' + */ + @Test + public void destinationTnTest() { + // TODO: test destinationTn + } + + /** + * Test the property 'messageStatus' + */ + @Test + public void messageStatusTest() { + // TODO: test messageStatus + } + + /** + * Test the property 'messageDirection' + */ + @Test + public void messageDirectionTest() { + // TODO: test messageDirection + } + + /** + * Test the property 'messageType' + */ + @Test + public void messageTypeTest() { + // TODO: test messageType + } + + /** + * Test the property 'segmentCount' + */ + @Test + public void segmentCountTest() { + // TODO: test segmentCount + } + + /** + * Test the property 'errorCode' + */ + @Test + public void errorCodeTest() { + // TODO: test errorCode + } + + /** + * Test the property 'receiveTime' + */ + @Test + public void receiveTimeTest() { + // TODO: test receiveTime + } + + /** + * Test the property 'carrierName' + */ + @Test + public void carrierNameTest() { + // TODO: test carrierName + } + + /** + * Test the property 'messageSize' + */ + @Test + public void messageSizeTest() { + // TODO: test messageSize + } + + /** + * Test the property 'messageLength' + */ + @Test + public void messageLengthTest() { + // TODO: test messageLength + } + + /** + * Test the property 'attachmentCount' + */ + @Test + public void attachmentCountTest() { + // TODO: test attachmentCount + } + + /** + * Test the property 'recipientCount' + */ + @Test + public void recipientCountTest() { + // TODO: test recipientCount + } + + /** + * Test the property 'campaignClass' + */ + @Test + public void campaignClassTest() { + // TODO: test campaignClass + } + + /** + * Test the property 'campaignId' + */ + @Test + public void campaignIdTest() { + // TODO: test campaignId + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java b/src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java new file mode 100644 index 00000000..f62bdb7c --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java @@ -0,0 +1,50 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LookupRequest + */ +public class LookupRequestTest { + private final LookupRequest model = new LookupRequest(); + + /** + * Model tests for LookupRequest + */ + @Test + public void testLookupRequest() { + // TODO: test LookupRequest + } + + /** + * Test the property 'tns' + */ + @Test + public void tnsTest() { + // TODO: test tns + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/LookupResultTest.java b/src/test/java/com/bandwidth/sdk/model/LookupResultTest.java new file mode 100644 index 00000000..2d4d24e6 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/LookupResultTest.java @@ -0,0 +1,112 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LookupResult + */ +public class LookupResultTest { + private final LookupResult model = new LookupResult(); + + /** + * Model tests for LookupResult + */ + @Test + public void testLookupResult() { + // TODO: test LookupResult + } + + /** + * Test the property 'responseCode' + */ + @Test + public void responseCodeTest() { + // TODO: test responseCode + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'e164Format' + */ + @Test + public void e164FormatTest() { + // TODO: test e164Format + } + + /** + * Test the property 'formatted' + */ + @Test + public void formattedTest() { + // TODO: test formatted + } + + /** + * Test the property 'country' + */ + @Test + public void countryTest() { + // TODO: test country + } + + /** + * Test the property 'lineType' + */ + @Test + public void lineTypeTest() { + // TODO: test lineType + } + + /** + * Test the property 'lineProvider' + */ + @Test + public void lineProviderTest() { + // TODO: test lineProvider + } + + /** + * Test the property 'mobileCountryCode' + */ + @Test + public void mobileCountryCodeTest() { + // TODO: test mobileCountryCode + } + + /** + * Test the property 'mobileNetworkCode' + */ + @Test + public void mobileNetworkCodeTest() { + // TODO: test mobileNetworkCode + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java b/src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java new file mode 100644 index 00000000..a319141c --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LookupStatusEnum + */ +public class LookupStatusEnumTest { + /** + * Model tests for LookupStatusEnum + */ + @Test + public void testLookupStatusEnum() { + // TODO: test LookupStatusEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java b/src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java new file mode 100644 index 00000000..8dd2e2ed --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java @@ -0,0 +1,76 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.LookupResult; +import com.bandwidth.sdk.model.LookupStatusEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LookupStatus + */ +public class LookupStatusTest { + private final LookupStatus model = new LookupStatus(); + + /** + * Model tests for LookupStatus + */ + @Test + public void testLookupStatus() { + // TODO: test LookupStatus + } + + /** + * Test the property 'requestId' + */ + @Test + public void requestIdTest() { + // TODO: test requestId + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'result' + */ + @Test + public void resultTest() { + // TODO: test result + } + + /** + * Test the property 'failedTelephoneNumbers' + */ + @Test + public void failedTelephoneNumbersTest() { + // TODO: test failedTelephoneNumbers + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java new file mode 100644 index 00000000..f3df366f --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java @@ -0,0 +1,157 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.MachineDetectionResult; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MachineDetectionCompleteCallback + */ +public class MachineDetectionCompleteCallbackTest { + private final MachineDetectionCompleteCallback model = new MachineDetectionCompleteCallback(); + + /** + * Model tests for MachineDetectionCompleteCallback + */ + @Test + public void testMachineDetectionCompleteCallback() { + // TODO: test MachineDetectionCompleteCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'machineDetectionResult' + */ + @Test + public void machineDetectionResultTest() { + // TODO: test machineDetectionResult + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java b/src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java new file mode 100644 index 00000000..da68183d --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java @@ -0,0 +1,164 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallbackMethodEnum; +import com.bandwidth.sdk.model.MachineDetectionModeEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MachineDetectionConfiguration + */ +public class MachineDetectionConfigurationTest { + private final MachineDetectionConfiguration model = new MachineDetectionConfiguration(); + + /** + * Model tests for MachineDetectionConfiguration + */ + @Test + public void testMachineDetectionConfiguration() { + // TODO: test MachineDetectionConfiguration + } + + /** + * Test the property 'mode' + */ + @Test + public void modeTest() { + // TODO: test mode + } + + /** + * Test the property 'detectionTimeout' + */ + @Test + public void detectionTimeoutTest() { + // TODO: test detectionTimeout + } + + /** + * Test the property 'silenceTimeout' + */ + @Test + public void silenceTimeoutTest() { + // TODO: test silenceTimeout + } + + /** + * Test the property 'speechThreshold' + */ + @Test + public void speechThresholdTest() { + // TODO: test speechThreshold + } + + /** + * Test the property 'speechEndThreshold' + */ + @Test + public void speechEndThresholdTest() { + // TODO: test speechEndThreshold + } + + /** + * Test the property 'machineSpeechEndThreshold' + */ + @Test + public void machineSpeechEndThresholdTest() { + // TODO: test machineSpeechEndThreshold + } + + /** + * Test the property 'delayResult' + */ + @Test + public void delayResultTest() { + // TODO: test delayResult + } + + /** + * Test the property 'callbackUrl' + */ + @Test + public void callbackUrlTest() { + // TODO: test callbackUrl + } + + /** + * Test the property 'callbackMethod' + */ + @Test + public void callbackMethodTest() { + // TODO: test callbackMethod + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + + /** + * Test the property 'fallbackUrl' + */ + @Test + public void fallbackUrlTest() { + // TODO: test fallbackUrl + } + + /** + * Test the property 'fallbackMethod' + */ + @Test + public void fallbackMethodTest() { + // TODO: test fallbackMethod + } + + /** + * Test the property 'fallbackUsername' + */ + @Test + public void fallbackUsernameTest() { + // TODO: test fallbackUsername + } + + /** + * Test the property 'fallbackPassword' + */ + @Test + public void fallbackPasswordTest() { + // TODO: test fallbackPassword + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java b/src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java new file mode 100644 index 00000000..b073db8d --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MachineDetectionModeEnum + */ +public class MachineDetectionModeEnumTest { + /** + * Model tests for MachineDetectionModeEnum + */ + @Test + public void testMachineDetectionModeEnum() { + // TODO: test MachineDetectionModeEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java b/src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java new file mode 100644 index 00000000..dd5f361e --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java @@ -0,0 +1,56 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MachineDetectionResult + */ +public class MachineDetectionResultTest { + private final MachineDetectionResult model = new MachineDetectionResult(); + + /** + * Model tests for MachineDetectionResult + */ + @Test + public void testMachineDetectionResult() { + // TODO: test MachineDetectionResult + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MediaTest.java b/src/test/java/com/bandwidth/sdk/model/MediaTest.java new file mode 100644 index 00000000..a6e0ebeb --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MediaTest.java @@ -0,0 +1,64 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Media + */ +public class MediaTest { + private final Media model = new Media(); + + /** + * Model tests for Media + */ + @Test + public void testMedia() { + // TODO: test Media + } + + /** + * Test the property 'content' + */ + @Test + public void contentTest() { + // TODO: test content + } + + /** + * Test the property 'contentLength' + */ + @Test + public void contentLengthTest() { + // TODO: test contentLength + } + + /** + * Test the property 'mediaName' + */ + @Test + public void mediaNameTest() { + // TODO: test mediaName + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java b/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java new file mode 100644 index 00000000..f7531192 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java @@ -0,0 +1,144 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.MessageDirectionEnum; +import com.bandwidth.sdk.model.PriorityEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageDeliveredCallbackMessage + */ +public class MessageDeliveredCallbackMessageTest { + private final MessageDeliveredCallbackMessage model = new MessageDeliveredCallbackMessage(); + + /** + * Model tests for MessageDeliveredCallbackMessage + */ + @Test + public void testMessageDeliveredCallbackMessage() { + // TODO: test MessageDeliveredCallbackMessage + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'owner' + */ + @Test + public void ownerTest() { + // TODO: test owner + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'segmentCount' + */ + @Test + public void segmentCountTest() { + // TODO: test segmentCount + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'media' + */ + @Test + public void mediaTest() { + // TODO: test media + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java new file mode 100644 index 00000000..d63c10a0 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java @@ -0,0 +1,82 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.MessageDeliveredCallbackMessage; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageDeliveredCallback + */ +public class MessageDeliveredCallbackTest { + private final MessageDeliveredCallback model = new MessageDeliveredCallback(); + + /** + * Model tests for MessageDeliveredCallback + */ + @Test + public void testMessageDeliveredCallback() { + // TODO: test MessageDeliveredCallback + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java b/src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java new file mode 100644 index 00000000..d2272686 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageDirectionEnum + */ +public class MessageDirectionEnumTest { + /** + * Model tests for MessageDirectionEnum + */ + @Test + public void testMessageDirectionEnum() { + // TODO: test MessageDirectionEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java b/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java new file mode 100644 index 00000000..f897c144 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java @@ -0,0 +1,144 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.MessageDirectionEnum; +import com.bandwidth.sdk.model.PriorityEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageFailedCallbackMessage + */ +public class MessageFailedCallbackMessageTest { + private final MessageFailedCallbackMessage model = new MessageFailedCallbackMessage(); + + /** + * Model tests for MessageFailedCallbackMessage + */ + @Test + public void testMessageFailedCallbackMessage() { + // TODO: test MessageFailedCallbackMessage + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'owner' + */ + @Test + public void ownerTest() { + // TODO: test owner + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'segmentCount' + */ + @Test + public void segmentCountTest() { + // TODO: test segmentCount + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'media' + */ + @Test + public void mediaTest() { + // TODO: test media + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java new file mode 100644 index 00000000..9d65bec5 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java @@ -0,0 +1,90 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.MessageFailedCallbackMessage; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageFailedCallback + */ +public class MessageFailedCallbackTest { + private final MessageFailedCallback model = new MessageFailedCallback(); + + /** + * Model tests for MessageFailedCallback + */ + @Test + public void testMessageFailedCallback() { + // TODO: test MessageFailedCallback + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'errorCode' + */ + @Test + public void errorCodeTest() { + // TODO: test errorCode + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java b/src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java new file mode 100644 index 00000000..f335c801 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java @@ -0,0 +1,111 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.PriorityEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageRequest + */ +public class MessageRequestTest { + private final MessageRequest model = new MessageRequest(); + + /** + * Model tests for MessageRequest + */ + @Test + public void testMessageRequest() { + // TODO: test MessageRequest + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'media' + */ + @Test + public void mediaTest() { + // TODO: test media + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + + /** + * Test the property 'expiration' + */ + @Test + public void expirationTest() { + // TODO: test expiration + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java b/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java new file mode 100644 index 00000000..ebf99649 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java @@ -0,0 +1,144 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.MessageDirectionEnum; +import com.bandwidth.sdk.model.PriorityEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageSendingCallbackMessage + */ +public class MessageSendingCallbackMessageTest { + private final MessageSendingCallbackMessage model = new MessageSendingCallbackMessage(); + + /** + * Model tests for MessageSendingCallbackMessage + */ + @Test + public void testMessageSendingCallbackMessage() { + // TODO: test MessageSendingCallbackMessage + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'owner' + */ + @Test + public void ownerTest() { + // TODO: test owner + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'segmentCount' + */ + @Test + public void segmentCountTest() { + // TODO: test segmentCount + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'media' + */ + @Test + public void mediaTest() { + // TODO: test media + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java new file mode 100644 index 00000000..aaaf9b10 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java @@ -0,0 +1,82 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.MessageSendingCallbackMessage; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageSendingCallback + */ +public class MessageSendingCallbackTest { + private final MessageSendingCallback model = new MessageSendingCallback(); + + /** + * Model tests for MessageSendingCallback + */ + @Test + public void testMessageSendingCallback() { + // TODO: test MessageSendingCallback + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java b/src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java new file mode 100644 index 00000000..a7cc6af7 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageStatusEnum + */ +public class MessageStatusEnumTest { + /** + * Model tests for MessageStatusEnum + */ + @Test + public void testMessageStatusEnum() { + // TODO: test MessageStatusEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageTest.java b/src/test/java/com/bandwidth/sdk/model/MessageTest.java new file mode 100644 index 00000000..47b269da --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageTest.java @@ -0,0 +1,149 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.MessageDirectionEnum; +import com.bandwidth.sdk.model.PriorityEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.Set; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Message + */ +public class MessageTest { + private final Message model = new Message(); + + /** + * Model tests for Message + */ + @Test + public void testMessage() { + // TODO: test Message + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'owner' + */ + @Test + public void ownerTest() { + // TODO: test owner + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'segmentCount' + */ + @Test + public void segmentCountTest() { + // TODO: test segmentCount + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'media' + */ + @Test + public void mediaTest() { + // TODO: test media + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + + /** + * Test the property 'expiration' + */ + @Test + public void expirationTest() { + // TODO: test expiration + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java b/src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java new file mode 100644 index 00000000..50ae0c83 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessageTypeEnum + */ +public class MessageTypeEnumTest { + /** + * Model tests for MessageTypeEnum + */ + @Test + public void testMessageTypeEnum() { + // TODO: test MessageTypeEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessagesListTest.java b/src/test/java/com/bandwidth/sdk/model/MessagesListTest.java new file mode 100644 index 00000000..90412dd7 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessagesListTest.java @@ -0,0 +1,68 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.ListMessageItem; +import com.bandwidth.sdk.model.PageInfo; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessagesList + */ +public class MessagesListTest { + private final MessagesList model = new MessagesList(); + + /** + * Model tests for MessagesList + */ + @Test + public void testMessagesList() { + // TODO: test MessagesList + } + + /** + * Test the property 'totalCount' + */ + @Test + public void totalCountTest() { + // TODO: test totalCount + } + + /** + * Test the property 'pageInfo' + */ + @Test + public void pageInfoTest() { + // TODO: test pageInfo + } + + /** + * Test the property 'messages' + */ + @Test + public void messagesTest() { + // TODO: test messages + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java b/src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java new file mode 100644 index 00000000..8338b314 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java @@ -0,0 +1,48 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessagingCodeResponse + */ +public class MessagingCodeResponseTest { + private final MessagingCodeResponse model = new MessagingCodeResponse(); + + /** + * Model tests for MessagingCodeResponse + */ + @Test + public void testMessagingCodeResponse() { + // TODO: test MessagingCodeResponse + } + + /** + * Test the property 'messageId' + */ + @Test + public void messageIdTest() { + // TODO: test messageId + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java new file mode 100644 index 00000000..9756a881 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java @@ -0,0 +1,56 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MessagingRequestError + */ +public class MessagingRequestErrorTest { + private final MessagingRequestError model = new MessagingRequestError(); + + /** + * Model tests for MessagingRequestError + */ + @Test + public void testMessagingRequestError() { + // TODO: test MessagingRequestError + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java new file mode 100644 index 00000000..992050c7 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java @@ -0,0 +1,48 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MfaForbiddenRequestError + */ +public class MfaForbiddenRequestErrorTest { + private final MfaForbiddenRequestError model = new MfaForbiddenRequestError(); + + /** + * Model tests for MfaForbiddenRequestError + */ + @Test + public void testMfaForbiddenRequestError() { + // TODO: test MfaForbiddenRequestError + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java new file mode 100644 index 00000000..1e6415c5 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java @@ -0,0 +1,56 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MfaRequestError + */ +public class MfaRequestErrorTest { + private final MfaRequestError model = new MfaRequestError(); + + /** + * Model tests for MfaRequestError + */ + @Test + public void testMfaRequestError() { + // TODO: test MfaRequestError + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } + + /** + * Test the property 'requestId' + */ + @Test + public void requestIdTest() { + // TODO: test requestId + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java new file mode 100644 index 00000000..1d21c046 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java @@ -0,0 +1,48 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MfaUnauthorizedRequestError + */ +public class MfaUnauthorizedRequestErrorTest { + private final MfaUnauthorizedRequestError model = new MfaUnauthorizedRequestError(); + + /** + * Model tests for MfaUnauthorizedRequestError + */ + @Test + public void testMfaUnauthorizedRequestError() { + // TODO: test MfaUnauthorizedRequestError + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/PageInfoTest.java b/src/test/java/com/bandwidth/sdk/model/PageInfoTest.java new file mode 100644 index 00000000..df4448b7 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/PageInfoTest.java @@ -0,0 +1,72 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PageInfo + */ +public class PageInfoTest { + private final PageInfo model = new PageInfo(); + + /** + * Model tests for PageInfo + */ + @Test + public void testPageInfo() { + // TODO: test PageInfo + } + + /** + * Test the property 'prevPage' + */ + @Test + public void prevPageTest() { + // TODO: test prevPage + } + + /** + * Test the property 'nextPage' + */ + @Test + public void nextPageTest() { + // TODO: test nextPage + } + + /** + * Test the property 'prevPageToken' + */ + @Test + public void prevPageTokenTest() { + // TODO: test prevPageToken + } + + /** + * Test the property 'nextPageToken' + */ + @Test + public void nextPageTokenTest() { + // TODO: test nextPageToken + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java b/src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java new file mode 100644 index 00000000..07ee2319 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PriorityEnum + */ +public class PriorityEnumTest { + /** + * Model tests for PriorityEnum + */ + @Test + public void testPriorityEnum() { + // TODO: test PriorityEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java new file mode 100644 index 00000000..7508dabd --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java @@ -0,0 +1,221 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.FileFormatEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RecordingAvailableCallback + */ +public class RecordingAvailableCallbackTest { + private final RecordingAvailableCallback model = new RecordingAvailableCallback(); + + /** + * Model tests for RecordingAvailableCallback + */ + @Test + public void testRecordingAvailableCallback() { + // TODO: test RecordingAvailableCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'recordingId' + */ + @Test + public void recordingIdTest() { + // TODO: test recordingId + } + + /** + * Test the property 'mediaUrl' + */ + @Test + public void mediaUrlTest() { + // TODO: test mediaUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + + /** + * Test the property 'fileFormat' + */ + @Test + public void fileFormatTest() { + // TODO: test fileFormat + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java new file mode 100644 index 00000000..864fdd90 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java @@ -0,0 +1,221 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.FileFormatEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RecordingCompleteCallback + */ +public class RecordingCompleteCallbackTest { + private final RecordingCompleteCallback model = new RecordingCompleteCallback(); + + /** + * Model tests for RecordingCompleteCallback + */ + @Test + public void testRecordingCompleteCallback() { + // TODO: test RecordingCompleteCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'recordingId' + */ + @Test + public void recordingIdTest() { + // TODO: test recordingId + } + + /** + * Test the property 'mediaUrl' + */ + @Test + public void mediaUrlTest() { + // TODO: test mediaUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + + /** + * Test the property 'fileFormat' + */ + @Test + public void fileFormatTest() { + // TODO: test fileFormat + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java new file mode 100644 index 00000000..08f397e2 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RecordingStateEnum + */ +public class RecordingStateEnumTest { + /** + * Model tests for RecordingStateEnum + */ + @Test + public void testRecordingStateEnum() { + // TODO: test RecordingStateEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java new file mode 100644 index 00000000..0dd53aa4 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java @@ -0,0 +1,74 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RecordingTranscriptionMetadata + */ +public class RecordingTranscriptionMetadataTest { + private final RecordingTranscriptionMetadata model = new RecordingTranscriptionMetadata(); + + /** + * Model tests for RecordingTranscriptionMetadata + */ + @Test + public void testRecordingTranscriptionMetadata() { + // TODO: test RecordingTranscriptionMetadata + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'completedTime' + */ + @Test + public void completedTimeTest() { + // TODO: test completedTime + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java new file mode 100644 index 00000000..a44a9cc3 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java @@ -0,0 +1,51 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.Transcription; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RecordingTranscriptions + */ +public class RecordingTranscriptionsTest { + private final RecordingTranscriptions model = new RecordingTranscriptions(); + + /** + * Model tests for RecordingTranscriptions + */ + @Test + public void testRecordingTranscriptions() { + // TODO: test RecordingTranscriptions + } + + /** + * Test the property 'transcripts' + */ + @Test + public void transcriptsTest() { + // TODO: test transcripts + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java new file mode 100644 index 00000000..ffcef1d1 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java @@ -0,0 +1,172 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RedirectCallback + */ +public class RedirectCallbackTest { + private final RedirectCallback model = new RedirectCallback(); + + /** + * Model tests for RedirectCallback + */ + @Test + public void testRedirectCallback() { + // TODO: test RedirectCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java b/src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java new file mode 100644 index 00000000..f6eeab01 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RedirectMethodEnum + */ +public class RedirectMethodEnumTest { + /** + * Model tests for RedirectMethodEnum + */ + @Test + public void testRedirectMethodEnum() { + // TODO: test RedirectMethodEnum + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/RegionTest.java b/src/test/java/com/bandwidth/sdk/model/RegionTest.java new file mode 100644 index 00000000..c4c36914 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/RegionTest.java @@ -0,0 +1,32 @@ +/* + * 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.model; + +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Region + */ +public class RegionTest { + /** + * Model tests for Region + */ + @Test + public void testRegion() { + // TODO: test Region + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/StirShakenTest.java b/src/test/java/com/bandwidth/sdk/model/StirShakenTest.java new file mode 100644 index 00000000..45462150 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/StirShakenTest.java @@ -0,0 +1,64 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for StirShaken + */ +public class StirShakenTest { + private final StirShaken model = new StirShaken(); + + /** + * Model tests for StirShaken + */ + @Test + public void testStirShaken() { + // TODO: test StirShaken + } + + /** + * Test the property 'verstat' + */ + @Test + public void verstatTest() { + // TODO: test verstat + } + + /** + * Test the property 'attestationIndicator' + */ + @Test + public void attestationIndicatorTest() { + // TODO: test attestationIndicator + } + + /** + * Test the property 'originatingId' + */ + @Test + public void originatingIdTest() { + // TODO: test originatingId + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/TagTest.java b/src/test/java/com/bandwidth/sdk/model/TagTest.java new file mode 100644 index 00000000..4fd046cc --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/TagTest.java @@ -0,0 +1,56 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Tag + */ +public class TagTest { + private final Tag model = new Tag(); + + /** + * Model tests for Tag + */ + @Test + public void testTag() { + // TODO: test Tag + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java new file mode 100644 index 00000000..49ea9a3a --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java @@ -0,0 +1,48 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TnLookupRequestError + */ +public class TnLookupRequestErrorTest { + private final TnLookupRequestError model = new TnLookupRequestError(); + + /** + * Model tests for TnLookupRequestError + */ + @Test + public void testTnLookupRequestError() { + // TODO: test TnLookupRequestError + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java b/src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java new file mode 100644 index 00000000..b484a73a --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java @@ -0,0 +1,99 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallbackMethodEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TranscribeRecording + */ +public class TranscribeRecordingTest { + private final TranscribeRecording model = new TranscribeRecording(); + + /** + * Model tests for TranscribeRecording + */ + @Test + public void testTranscribeRecording() { + // TODO: test TranscribeRecording + } + + /** + * Test the property 'callbackUrl' + */ + @Test + public void callbackUrlTest() { + // TODO: test callbackUrl + } + + /** + * Test the property 'callbackMethod' + */ + @Test + public void callbackMethodTest() { + // TODO: test callbackMethod + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'callbackTimeout' + */ + @Test + public void callbackTimeoutTest() { + // TODO: test callbackTimeout + } + + /** + * Test the property 'detectLanguage' + */ + @Test + public void detectLanguageTest() { + // TODO: test detectLanguage + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java new file mode 100644 index 00000000..99eefe2f --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java @@ -0,0 +1,214 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.FileFormatEnum; +import com.bandwidth.sdk.model.Transcription; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TranscriptionAvailableCallback + */ +public class TranscriptionAvailableCallbackTest { + private final TranscriptionAvailableCallback model = new TranscriptionAvailableCallback(); + + /** + * Model tests for TranscriptionAvailableCallback + */ + @Test + public void testTranscriptionAvailableCallback() { + // TODO: test TranscriptionAvailableCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'mediaUrl' + */ + @Test + public void mediaUrlTest() { + // TODO: test mediaUrl + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'recordingId' + */ + @Test + public void recordingIdTest() { + // TODO: test recordingId + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + + /** + * Test the property 'fileFormat' + */ + @Test + public void fileFormatTest() { + // TODO: test fileFormat + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'transcription' + */ + @Test + public void transcriptionTest() { + // TODO: test transcription + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java b/src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java new file mode 100644 index 00000000..20f2b849 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java @@ -0,0 +1,56 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Transcription + */ +public class TranscriptionTest { + private final Transcription model = new Transcription(); + + /** + * Model tests for Transcription + */ + @Test + public void testTranscription() { + // TODO: test Transcription + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'confidence' + */ + @Test + public void confidenceTest() { + // TODO: test confidence + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java new file mode 100644 index 00000000..3b127e1e --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java @@ -0,0 +1,164 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TransferAnswerCallback + */ +public class TransferAnswerCallbackTest { + private final TransferAnswerCallback model = new TransferAnswerCallback(); + + /** + * Model tests for TransferAnswerCallback + */ + @Test + public void testTransferAnswerCallback() { + // TODO: test TransferAnswerCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java new file mode 100644 index 00000000..5a482574 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java @@ -0,0 +1,188 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TransferCompleteCallback + */ +public class TransferCompleteCallbackTest { + private final TransferCompleteCallback model = new TransferCompleteCallback(); + + /** + * Model tests for TransferCompleteCallback + */ + @Test + public void testTransferCompleteCallback() { + // TODO: test TransferCompleteCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + + /** + * Test the property 'cause' + */ + @Test + public void causeTest() { + // TODO: test cause + } + + /** + * Test the property 'errorMessage' + */ + @Test + public void errorMessageTest() { + // TODO: test errorMessage + } + + /** + * Test the property 'errorId' + */ + @Test + public void errorIdTest() { + // TODO: test errorId + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java new file mode 100644 index 00000000..e9d6a56c --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java @@ -0,0 +1,204 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TransferDisconnectCallback + */ +public class TransferDisconnectCallbackTest { + private final TransferDisconnectCallback model = new TransferDisconnectCallback(); + + /** + * Model tests for TransferDisconnectCallback + */ + @Test + public void testTransferDisconnectCallback() { + // TODO: test TransferDisconnectCallback + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + // TODO: test accountId + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + // TODO: test applicationId + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + // TODO: test direction + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + // TODO: test callUrl + } + + /** + * Test the property 'parentCallId' + */ + @Test + public void parentCallIdTest() { + // TODO: test parentCallId + } + + /** + * Test the property 'enqueuedTime' + */ + @Test + public void enqueuedTimeTest() { + // TODO: test enqueuedTime + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + // TODO: test answerTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'transferCallerId' + */ + @Test + public void transferCallerIdTest() { + // TODO: test transferCallerId + } + + /** + * Test the property 'transferTo' + */ + @Test + public void transferToTest() { + // TODO: test transferTo + } + + /** + * Test the property 'cause' + */ + @Test + public void causeTest() { + // TODO: test cause + } + + /** + * Test the property 'errorMessage' + */ + @Test + public void errorMessageTest() { + // TODO: test errorMessage + } + + /** + * Test the property 'errorId' + */ + @Test + public void errorIdTest() { + // TODO: test errorId + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java b/src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java new file mode 100644 index 00000000..c62c22b6 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java @@ -0,0 +1,49 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.RecordingStateEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateCallRecording + */ +public class UpdateCallRecordingTest { + private final UpdateCallRecording model = new UpdateCallRecording(); + + /** + * Model tests for UpdateCallRecording + */ + @Test + public void testUpdateCallRecording() { + // TODO: test UpdateCallRecording + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java b/src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java new file mode 100644 index 00000000..304c437d --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java @@ -0,0 +1,124 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.CallStateEnum; +import com.bandwidth.sdk.model.RedirectMethodEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateCall + */ +public class UpdateCallTest { + private final UpdateCall model = new UpdateCall(); + + /** + * Model tests for UpdateCall + */ + @Test + public void testUpdateCall() { + // TODO: test UpdateCall + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + + /** + * Test the property 'redirectUrl' + */ + @Test + public void redirectUrlTest() { + // TODO: test redirectUrl + } + + /** + * Test the property 'redirectMethod' + */ + @Test + public void redirectMethodTest() { + // TODO: test redirectMethod + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + + /** + * Test the property 'redirectFallbackUrl' + */ + @Test + public void redirectFallbackUrlTest() { + // TODO: test redirectFallbackUrl + } + + /** + * Test the property 'redirectFallbackMethod' + */ + @Test + public void redirectFallbackMethodTest() { + // TODO: test redirectFallbackMethod + } + + /** + * Test the property 'fallbackUsername' + */ + @Test + public void fallbackUsernameTest() { + // TODO: test fallbackUsername + } + + /** + * Test the property 'fallbackPassword' + */ + @Test + public void fallbackPasswordTest() { + // TODO: test fallbackPassword + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java b/src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java new file mode 100644 index 00000000..1b2400be --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java @@ -0,0 +1,67 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateConferenceMember + */ +public class UpdateConferenceMemberTest { + private final UpdateConferenceMember model = new UpdateConferenceMember(); + + /** + * Model tests for UpdateConferenceMember + */ + @Test + public void testUpdateConferenceMember() { + // TODO: test UpdateConferenceMember + } + + /** + * Test the property 'mute' + */ + @Test + public void muteTest() { + // TODO: test mute + } + + /** + * Test the property 'hold' + */ + @Test + public void holdTest() { + // TODO: test hold + } + + /** + * Test the property 'callIdsToCoach' + */ + @Test + public void callIdsToCoachTest() { + // TODO: test callIdsToCoach + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java b/src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java new file mode 100644 index 00000000..7e5eb9e3 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java @@ -0,0 +1,116 @@ +/* + * 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.model; + +import com.bandwidth.sdk.model.ConferenceStateEnum; +import com.bandwidth.sdk.model.RedirectMethodEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateConference + */ +public class UpdateConferenceTest { + private final UpdateConference model = new UpdateConference(); + + /** + * Model tests for UpdateConference + */ + @Test + public void testUpdateConference() { + // TODO: test UpdateConference + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'redirectUrl' + */ + @Test + public void redirectUrlTest() { + // TODO: test redirectUrl + } + + /** + * Test the property 'redirectMethod' + */ + @Test + public void redirectMethodTest() { + // TODO: test redirectMethod + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + + /** + * Test the property 'redirectFallbackUrl' + */ + @Test + public void redirectFallbackUrlTest() { + // TODO: test redirectFallbackUrl + } + + /** + * Test the property 'redirectFallbackMethod' + */ + @Test + public void redirectFallbackMethodTest() { + // TODO: test redirectFallbackMethod + } + + /** + * Test the property 'fallbackUsername' + */ + @Test + public void fallbackUsernameTest() { + // TODO: test fallbackUsername + } + + /** + * Test the property 'fallbackPassword' + */ + @Test + public void fallbackPasswordTest() { + // TODO: test fallbackPassword + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java b/src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java new file mode 100644 index 00000000..8d4c5574 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java @@ -0,0 +1,73 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VerifyCodeRequest + */ +public class VerifyCodeRequestTest { + private final VerifyCodeRequest model = new VerifyCodeRequest(); + + /** + * Model tests for VerifyCodeRequest + */ + @Test + public void testVerifyCodeRequest() { + // TODO: test VerifyCodeRequest + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + + /** + * Test the property 'expirationTimeInMinutes' + */ + @Test + public void expirationTimeInMinutesTest() { + // TODO: test expirationTimeInMinutes + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java b/src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java new file mode 100644 index 00000000..b8ef2c6f --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java @@ -0,0 +1,48 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VerifyCodeResponse + */ +public class VerifyCodeResponseTest { + private final VerifyCodeResponse model = new VerifyCodeResponse(); + + /** + * Model tests for VerifyCodeResponse + */ + @Test + public void testVerifyCodeResponse() { + // TODO: test VerifyCodeResponse + } + + /** + * Test the property 'valid' + */ + @Test + public void validTest() { + // TODO: test valid + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java b/src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java new file mode 100644 index 00000000..e269047e --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java @@ -0,0 +1,65 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VoiceApiError + */ +public class VoiceApiErrorTest { + private final VoiceApiError model = new VoiceApiError(); + + /** + * Model tests for VoiceApiError + */ + @Test + public void testVoiceApiError() { + // TODO: test VoiceApiError + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + +} diff --git a/src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java b/src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java new file mode 100644 index 00000000..c5bf9234 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java @@ -0,0 +1,48 @@ +/* + * 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.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VoiceCodeResponse + */ +public class VoiceCodeResponseTest { + private final VoiceCodeResponse model = new VoiceCodeResponse(); + + /** + * Model tests for VoiceCodeResponse + */ + @Test + public void testVoiceCodeResponse() { + // TODO: test VoiceCodeResponse + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + // TODO: test callId + } + +} From 6912afa4ce64707d7b9167595a0c56cfb93a2b2b Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 27 Aug 2024 10:24:13 -0400 Subject: [PATCH 2/5] generate on 7.8 --- .openapi-generator/FILES | 103 ----- .openapi-generator/VERSION | 2 +- README.md | 1 + api/openapi.yaml | 418 +++++++++++------- build.gradle | 19 +- build.sbt | 11 +- gradle/wrapper/gradle-wrapper.jar | Bin 59536 -> 43453 bytes gradle/wrapper/gradle-wrapper.properties | 4 +- gradlew | 189 ++++---- gradlew.bat | 37 +- openapitools.json | 2 +- .../java/com/bandwidth/sdk/ApiClient.java | 48 +- .../java/com/bandwidth/sdk/ApiException.java | 4 +- .../java/com/bandwidth/sdk/Configuration.java | 2 +- src/main/java/com/bandwidth/sdk/JSON.java | 2 +- src/main/java/com/bandwidth/sdk/Pair.java | 2 +- .../bandwidth/sdk/ServerConfiguration.java | 14 + .../com/bandwidth/sdk/ServerVariable.java | 14 + .../java/com/bandwidth/sdk/StringUtil.java | 2 +- .../com/bandwidth/sdk/auth/ApiKeyAuth.java | 2 +- .../com/bandwidth/sdk/auth/HttpBasicAuth.java | 2 - .../bandwidth/sdk/auth/HttpBearerAuth.java | 22 +- .../sdk/model/AbstractOpenApiSchema.java | 4 +- .../sdk/model/AccountStatistics.java | 59 ++- .../bandwidth/sdk/model/AnswerCallback.java | 135 +++--- .../sdk/model/BridgeCompleteCallback.java | 147 +++--- .../model/BridgeTargetCompleteCallback.java | 129 +++--- .../sdk/model/CallDirectionEnum.java | 6 + .../sdk/model/CallRecordingMetadata.java | 169 +++---- .../com/bandwidth/sdk/model/CallState.java | 159 +++---- .../bandwidth/sdk/model/CallStateEnum.java | 6 + .../sdk/model/CallTranscription.java | 79 ++-- ...CallTranscriptionDetectedLanguageEnum.java | 6 + .../sdk/model/CallTranscriptionMetadata.java | 65 ++- .../sdk/model/CallTranscriptionResponse.java | 73 ++- .../sdk/model/CallTranscriptionTrackEnum.java | 6 + .../sdk/model/CallbackMethodEnum.java | 6 + .../com/bandwidth/sdk/model/CodeRequest.java | 83 ++-- .../com/bandwidth/sdk/model/Conference.java | 99 ++--- .../model/ConferenceCompletedCallback.java | 77 ++-- .../sdk/model/ConferenceCreatedCallback.java | 77 ++-- .../bandwidth/sdk/model/ConferenceMember.java | 83 ++-- .../model/ConferenceMemberExitCallback.java | 95 ++-- .../model/ConferenceMemberJoinCallback.java | 95 ++-- .../ConferenceRecordingAvailableCallback.java | 135 +++--- .../model/ConferenceRecordingMetadata.java | 123 +++--- .../sdk/model/ConferenceRedirectCallback.java | 77 ++-- .../sdk/model/ConferenceStateEnum.java | 6 + .../com/bandwidth/sdk/model/CreateCall.java | 185 ++++---- .../sdk/model/CreateCallResponse.java | 181 ++++---- .../sdk/model/CreateLookupResponse.java | 63 +-- .../sdk/model/CreateMessageRequestError.java | 67 ++- .../bandwidth/sdk/model/DeferredResult.java | 59 ++- .../sdk/model/DisconnectCallback.java | 153 +++---- .../com/bandwidth/sdk/model/Diversion.java | 89 ++-- .../com/bandwidth/sdk/model/DtmfCallback.java | 153 +++---- .../com/bandwidth/sdk/model/FieldError.java | 59 ++- .../bandwidth/sdk/model/FileFormatEnum.java | 6 + .../bandwidth/sdk/model/GatherCallback.java | 159 +++---- .../sdk/model/InboundMessageCallback.java | 77 ++-- .../model/InboundMessageCallbackMessage.java | 127 +++--- .../bandwidth/sdk/model/InitiateCallback.java | 123 +++--- .../sdk/model/ListMessageDirectionEnum.java | 6 + .../bandwidth/sdk/model/ListMessageItem.java | 161 +++---- .../bandwidth/sdk/model/LookupRequest.java | 53 +-- .../com/bandwidth/sdk/model/LookupResult.java | 101 ++--- .../com/bandwidth/sdk/model/LookupStatus.java | 79 ++-- .../bandwidth/sdk/model/LookupStatusEnum.java | 6 + .../MachineDetectionCompleteCallback.java | 135 +++--- .../model/MachineDetectionConfiguration.java | 149 +++---- .../sdk/model/MachineDetectionModeEnum.java | 6 + .../sdk/model/MachineDetectionResult.java | 59 ++- .../java/com/bandwidth/sdk/model/Media.java | 65 ++- .../java/com/bandwidth/sdk/model/Message.java | 137 +++--- .../sdk/model/MessageDeliveredCallback.java | 77 ++-- .../MessageDeliveredCallbackMessage.java | 127 +++--- .../sdk/model/MessageDirectionEnum.java | 6 + .../sdk/model/MessageFailedCallback.java | 83 ++-- .../model/MessageFailedCallbackMessage.java | 125 +++--- .../bandwidth/sdk/model/MessageRequest.java | 101 ++--- .../sdk/model/MessageSendingCallback.java | 77 ++-- .../model/MessageSendingCallbackMessage.java | 123 +++--- .../sdk/model/MessageStatusEnum.java | 6 + .../bandwidth/sdk/model/MessageTypeEnum.java | 6 + .../com/bandwidth/sdk/model/MessagesList.java | 67 ++- .../sdk/model/MessagingCodeResponse.java | 53 +-- .../sdk/model/MessagingRequestError.java | 59 ++- .../sdk/model/MfaForbiddenRequestError.java | 53 +-- .../bandwidth/sdk/model/MfaRequestError.java | 59 ++- .../model/MfaUnauthorizedRequestError.java | 53 +-- .../com/bandwidth/sdk/model/PageInfo.java | 71 ++- .../com/bandwidth/sdk/model/PriorityEnum.java | 6 + .../sdk/model/RecordingAvailableCallback.java | 187 ++++---- .../sdk/model/RecordingCompleteCallback.java | 187 ++++---- .../sdk/model/RecordingStateEnum.java | 6 + .../model/RecordingTranscriptionMetadata.java | 71 ++- .../sdk/model/RecordingTranscriptions.java | 55 +-- .../bandwidth/sdk/model/RedirectCallback.java | 147 +++--- .../sdk/model/RedirectMethodEnum.java | 6 + .../java/com/bandwidth/sdk/model/Region.java | 6 + .../com/bandwidth/sdk/model/StirShaken.java | 65 ++- .../java/com/bandwidth/sdk/model/Tag.java | 59 ++- .../sdk/model/TnLookupRequestError.java | 53 +-- .../sdk/model/TranscribeRecording.java | 93 ++-- .../bandwidth/sdk/model/Transcription.java | 59 ++- .../model/TranscriptionAvailableCallback.java | 181 ++++---- .../sdk/model/TransferAnswerCallback.java | 141 +++--- .../sdk/model/TransferCompleteCallback.java | 159 +++---- .../sdk/model/TransferDisconnectCallback.java | 171 +++---- .../com/bandwidth/sdk/model/UpdateCall.java | 119 +++-- .../sdk/model/UpdateCallRecording.java | 55 +-- .../bandwidth/sdk/model/UpdateConference.java | 113 +++-- .../sdk/model/UpdateConferenceMember.java | 65 ++- .../sdk/model/VerifyCodeRequest.java | 71 ++- .../sdk/model/VerifyCodeResponse.java | 53 +-- .../bandwidth/sdk/model/VoiceApiError.java | 65 ++- .../sdk/model/VoiceCodeResponse.java | 53 +-- 117 files changed, 4035 insertions(+), 4714 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 09e76395..3f34402b 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -235,106 +235,3 @@ src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java src/main/java/com/bandwidth/sdk/model/VoiceApiError.java src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java -src/test/java/com/bandwidth/sdk/api/CallsApiTest.java -src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java -src/test/java/com/bandwidth/sdk/api/MediaApiTest.java -src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java -src/test/java/com/bandwidth/sdk/api/MfaApiTest.java -src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java -src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java -src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java -src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java -src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java -src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java -src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java -src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java -src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java -src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java -src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java -src/test/java/com/bandwidth/sdk/model/CallStateTest.java -src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java -src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java -src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java -src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java -src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java -src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java -src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java -src/test/java/com/bandwidth/sdk/model/ConferenceTest.java -src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java -src/test/java/com/bandwidth/sdk/model/CreateCallTest.java -src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java -src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java -src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java -src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java -src/test/java/com/bandwidth/sdk/model/DiversionTest.java -src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java -src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java -src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java -src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java -src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java -src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java -src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java -src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java -src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java -src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java -src/test/java/com/bandwidth/sdk/model/LookupResultTest.java -src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java -src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java -src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java -src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java -src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java -src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java -src/test/java/com/bandwidth/sdk/model/MediaTest.java -src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java -src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java -src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java -src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java -src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java -src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java -src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java -src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java -src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java -src/test/java/com/bandwidth/sdk/model/MessageTest.java -src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java -src/test/java/com/bandwidth/sdk/model/MessagesListTest.java -src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java -src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java -src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java -src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java -src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java -src/test/java/com/bandwidth/sdk/model/PageInfoTest.java -src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java -src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java -src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java -src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java -src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java -src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java -src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java -src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java -src/test/java/com/bandwidth/sdk/model/RegionTest.java -src/test/java/com/bandwidth/sdk/model/StirShakenTest.java -src/test/java/com/bandwidth/sdk/model/TagTest.java -src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java -src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java -src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java -src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java -src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java -src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java -src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java -src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java -src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java -src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java -src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java -src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java -src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java -src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java -src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 41225218..09a6d308 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.0 \ No newline at end of file +7.8.0 diff --git a/README.md b/README.md index ddb7c71f..b20224a4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Bandwidth - API version: 1.0.0 + - Generator version: 7.8.0 Bandwidth's Communication APIs diff --git a/api/openapi.yaml b/api/openapi.yaml index 4db0e754..2afcea85 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -112,7 +112,8 @@ paths: summary: List Media tags: - Media - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://messaging.bandwidth.com/api/v2 @@ -198,7 +199,8 @@ paths: summary: Delete Media tags: - Media - x-accepts: application/json + x-accepts: + - application/json get: description: Downloads a media file you previously uploaded. operationId: getMedia @@ -281,7 +283,9 @@ paths: summary: Get Media tags: - Media - x-accepts: application/json + x-accepts: + - application/json + - application/octet-stream put: description: |- Upload a file. You may add headers to the request in order to provide some control to your media file. @@ -385,7 +389,8 @@ paths: tags: - Media x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://messaging.bandwidth.com/api/v2 @@ -616,7 +621,8 @@ paths: summary: List Messages tags: - Messages - x-accepts: application/json + x-accepts: + - application/json post: callbacks: inboundCallback: @@ -697,7 +703,8 @@ paths: tags: - Messages x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://messaging.bandwidth.com/api/v2 @@ -880,7 +887,8 @@ paths: summary: Get Calls tags: - Calls - x-accepts: application/json + x-accepts: + - application/json post: description: |- Creates an outbound phone call. @@ -1001,7 +1009,8 @@ paths: tags: - Calls x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1120,7 +1129,8 @@ paths: summary: Get Call State Information tags: - Calls - x-accepts: application/json + x-accepts: + - application/json post: description: Interrupts and redirects a call to a different URL that should return a BXML document. @@ -1241,7 +1251,8 @@ paths: tags: - Calls x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1365,7 +1376,8 @@ paths: tags: - Calls x-content-type: application/xml - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1532,7 +1544,8 @@ paths: summary: Get Conferences tags: - Conferences - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1648,7 +1661,8 @@ paths: summary: Get Conference Information tags: - Conferences - x-accepts: application/json + x-accepts: + - application/json post: description: Update the conference state. operationId: updateConference @@ -1759,7 +1773,8 @@ paths: tags: - Conferences x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1874,7 +1889,8 @@ paths: tags: - Conferences x-content-type: application/xml - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -1999,7 +2015,8 @@ paths: summary: Get Conference Member tags: - Conferences - x-accepts: application/json + x-accepts: + - application/json put: description: Updates settings for a particular conference member. operationId: updateConferenceMember @@ -2119,7 +2136,8 @@ paths: tags: - Conferences x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2238,7 +2256,8 @@ paths: summary: Get Conference Recordings tags: - Conferences - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2363,7 +2382,8 @@ paths: summary: Get Conference Recording Information tags: - Conferences - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2493,7 +2513,10 @@ paths: summary: Download Conference Recording tags: - Conferences - x-accepts: application/json + x-accepts: + - application/json + - audio/mpeg + - audio/vnd.wave servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2644,7 +2667,8 @@ paths: summary: Get Call Recordings tags: - Recordings - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2759,7 +2783,8 @@ paths: tags: - Recordings x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -2879,7 +2904,8 @@ paths: summary: List Call Recordings tags: - Recordings - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3003,7 +3029,8 @@ paths: summary: Delete Recording tags: - Recordings - x-accepts: application/json + x-accepts: + - application/json get: description: Returns metadata for the specified recording. operationId: getCallRecording @@ -3124,7 +3151,8 @@ paths: summary: Get Call Recording tags: - Recordings - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3245,7 +3273,8 @@ paths: summary: Delete Recording Media tags: - Recordings - x-accepts: application/json + x-accepts: + - application/json get: description: Downloads the specified recording. operationId: downloadCallRecording @@ -3371,7 +3400,10 @@ paths: summary: Download Recording tags: - Recordings - x-accepts: application/json + x-accepts: + - application/json + - audio/mpeg + - audio/vnd.wave servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3495,7 +3527,8 @@ paths: summary: Delete Transcription tags: - Recordings - x-accepts: application/json + x-accepts: + - application/json get: description: |- Downloads the specified transcription. @@ -3620,7 +3653,8 @@ paths: summary: Get Transcription tags: - Recordings - x-accepts: application/json + x-accepts: + - application/json post: description: |- Generate the transcription for a specific recording. Transcription @@ -3743,7 +3777,8 @@ paths: tags: - Recordings x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3850,7 +3885,8 @@ paths: summary: Get Account Statistics tags: - Statistics - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -3966,7 +4002,8 @@ paths: summary: Enumerate transcriptions made with StartTranscription tags: - Transcriptions - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -4090,7 +4127,8 @@ paths: summary: Delete a specific transcription tags: - Transcriptions - x-accepts: application/json + x-accepts: + - application/json get: description: "Retrieve the specified transcription that was created on this\ \ call via [startTranscription](/docs/voice/bxml/startTranscription)." @@ -4212,7 +4250,8 @@ paths: summary: Retrieve a specific transcription tags: - Transcriptions - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://voice.bandwidth.com/api/v2 @@ -4267,7 +4306,8 @@ paths: tags: - MFA x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://mfa.bandwidth.com/api/v1 @@ -4322,7 +4362,8 @@ paths: tags: - MFA x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://mfa.bandwidth.com/api/v1 @@ -4383,7 +4424,8 @@ paths: tags: - MFA x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://mfa.bandwidth.com/api/v1 @@ -4487,7 +4529,8 @@ paths: tags: - Phone Number Lookup x-content-type: application/json - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://numbers.bandwidth.com/api/v1 @@ -4598,7 +4641,8 @@ paths: summary: Get Lookup Request Status tags: - Phone Number Lookup - x-accepts: application/json + x-accepts: + - application/json servers: - description: Production url: https://numbers.bandwidth.com/api/v1 @@ -4641,8 +4685,8 @@ components: applicationId: 04e88489-df02-4e34-a0ee-27a91849555f accountId: "9900000" callId: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 - to: +19195551234 - from: +19195554312 + to: "+19195551234" + from: "+19195554312" enqueuedTime: 2022-06-16T13:15:07.160Z callUrl: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 callTimeout: 30 @@ -4718,13 +4762,13 @@ components: summary: Example Number Lookup Request for One Number value: tns: - - +19195551234 + - "+19195551234" multipleNumberRequestExample: summary: Example Number Lookup Request for Multiple Numbers value: tns: - - +19195551234 - - +19195554321 + - "+19195551234" + - "+19195554321" lookupInProgressExample: summary: Example Lookup In Progress Response value: @@ -4736,7 +4780,7 @@ components: requestId: 004223a0-8b17-41b1-bf81-20732adf5590 status: FAILED failedTelephoneNumbers: - - +191955512345 + - "+191955512345" lookupSingleNumberCompleteExample: summary: Example Single Number Lookup Complete Response value: @@ -4745,7 +4789,7 @@ components: result: - Response Code: 0 Message: NOERROR - E.164 Format: +19195551234 + E.164 Format: "+19195551234" Formatted: (919) 555-1234 Country: US Line Type: Mobile @@ -4760,7 +4804,7 @@ components: result: - Response Code: 0 Message: NOERROR - E.164 Format: +19195551234 + E.164 Format: "+19195551234" Formatted: (919) 555-1234 Country: US Line Type: Mobile @@ -4769,7 +4813,7 @@ components: Mobile Network Code: "010" - Response Code: 0 Message: NOERROR - E.164 Format: +19195554321 + E.164 Format: "+19195554321" Formatted: (919) 555-4321 Country: US Line Type: Mobile @@ -4784,7 +4828,7 @@ components: result: - Response Code: 0 Message: NOERROR - E.164 Format: +19195551234 + E.164 Format: "+19195551234" Formatted: (919) 555-1234 Country: US Line Type: Mobile @@ -4792,7 +4836,7 @@ components: Mobile Country Code: "310" Mobile Network Code: "010" failedTelephoneNumbers: - - +191955512345 + - "+191955512345" lookupSingleNumberCompleteNoInfoExample: summary: Example Single Number Lookup Complete with No Information Response value: @@ -4801,7 +4845,7 @@ components: result: - Response Code: 3 Message: NXDOMAIN - E.164 Format: +19195550000 + E.164 Format: "+19195550000" Formatted: (919) 555-0000 Country: US parameters: @@ -6024,6 +6068,10 @@ components: example: US type: string fieldError: + example: + fieldName: from + description: '''+invalid'' must be replaced with a valid E164 formatted telephone + number' properties: fieldName: description: The name of the field that contains the error @@ -6043,34 +6091,34 @@ components: nextPageToken: GL83PD3C prevPage: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902 messages: - - sourceTn: +15554443333 + - sourceTn: "+15554443333" messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 - destinationTn: +15554442222 + destinationTn: "+15554442222" segmentCount: 1 messageStatus: RECEIVED receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" - messageDirection: null + messageDirection: INBOUND messageType: sms carrierName: other recipientCount: 1 campaignClass: T attachmentCount: 1 messageSize: 27 - - sourceTn: +15554443333 + - sourceTn: "+15554443333" messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 - destinationTn: +15554442222 + destinationTn: "+15554442222" segmentCount: 1 messageStatus: RECEIVED receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" - messageDirection: null + messageDirection: INBOUND messageType: sms carrierName: other recipientCount: 1 @@ -6094,17 +6142,17 @@ components: type: object listMessageItem: example: - sourceTn: +15554443333 + sourceTn: "+15554443333" messageLength: 18 campaignId: CJEUMDK messageId: 1589228074636lm4k2je7j7jklbn2 errorCode: 9902 - destinationTn: +15554442222 + destinationTn: "+15554442222" segmentCount: 1 messageStatus: RECEIVED receiveTime: 2020-04-07T14:03:07Z accountId: "9900000" - messageDirection: null + messageDirection: INBOUND messageType: sms carrierName: other recipientCount: 1 @@ -6122,11 +6170,11 @@ components: type: string sourceTn: description: The source phone number of the message. - example: +15554443333 + example: "+15554443333" type: string destinationTn: description: The recipient phone number of the message. - example: +15554442222 + example: "+15554442222" type: string messageStatus: $ref: '#/components/schemas/messageStatusEnum' @@ -6210,6 +6258,9 @@ components: title: PageInfo type: object messagingRequestError: + example: + description: description + type: type properties: type: type: string @@ -6221,6 +6272,16 @@ components: title: MessagingRequestError type: object createMessageRequestError: + example: + fieldErrors: + - fieldName: from + description: '''+invalid'' must be replaced with a valid E164 formatted + telephone number' + - fieldName: from + description: '''+invalid'' must be replaced with a valid E164 formatted + telephone number' + description: description + type: type properties: type: type: string @@ -6267,21 +6328,21 @@ components: type: object message: example: - owner: +15554443333 + owner: "+15554443333" media: - https://dev.bandwidth.com/images/bandwidth-logo.png priority: default segmentCount: 2 - from: +15553332222 + from: "+15553332222" expiration: 2021-02-01T11:29:18-05:00 id: 1589228074636lm4k2je7j7jklbn2 time: 2022-09-14T18:20:16Z to: - - +15552223333 + - "+15552223333" text: Hello world tag: custom tag applicationId: 93de2206-9669-4e07-948d-329f4b722ee2 - direction: null + direction: in properties: id: description: The id of the message. @@ -6289,7 +6350,7 @@ components: type: string owner: description: The Bandwidth phone number associated with the message. - example: +15554443333 + example: "+15554443333" type: string applicationId: description: The application ID associated with the message. @@ -6310,14 +6371,14 @@ components: to: description: The phone number recipients of the message. example: - - +15552223333 + - "+15552223333" items: type: string type: array uniqueItems: true from: description: The phone number the message was sent from. - example: +15553332222 + example: "+15553332222" type: string media: description: The list of media URLs sent in the message. Including a `filename` @@ -6357,8 +6418,8 @@ components: to: description: The phone number(s) the message should be sent to in E164 format. example: - - +15554443333 - - +15552223333 + - "+15554443333" + - "+15552223333" items: type: string type: array @@ -6371,7 +6432,7 @@ components: \ lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore\ \ _ and ampersand &. Alphanumeric Sender IDs must contain at least one\ \ letter." - example: +15551113333 + example: "+15551113333" type: string text: description: The contents of the text message. Must be 2048 characters or @@ -6422,7 +6483,7 @@ components: example: message-received type: string to: - example: +15552223333 + example: "+15552223333" type: string description: example: Incoming message received @@ -6443,7 +6504,7 @@ components: example: 1661365814859loidf7mcwd4qacn7 type: string owner: - example: +15553332222 + example: "+15553332222" type: string applicationId: example: 93de2206-9669-4e07-948d-329f4b722ee2 @@ -6459,13 +6520,13 @@ components: $ref: '#/components/schemas/messageDirectionEnum' to: example: - - +15552223333 + - "+15552223333" items: type: string type: array uniqueItems: true from: - example: +15553332222 + example: "+15553332222" type: string text: example: Hello world @@ -6505,7 +6566,7 @@ components: example: message-sending type: string to: - example: +15552223333 + example: "+15552223333" type: string description: example: Message is sending to carrier @@ -6526,7 +6587,7 @@ components: example: 1661365814859loidf7mcwd4qacn7 type: string owner: - example: +15553332222 + example: "+15553332222" type: string applicationId: example: 93de2206-9669-4e07-948d-329f4b722ee2 @@ -6542,13 +6603,13 @@ components: $ref: '#/components/schemas/messageDirectionEnum' to: example: - - +15552223333 + - "+15552223333" items: type: string type: array uniqueItems: true from: - example: +15553332222 + example: "+15553332222" type: string text: example: Hello world @@ -6590,7 +6651,7 @@ components: example: message-delivered type: string to: - example: +15552223333 + example: "+15552223333" type: string description: example: Message delivered to carrier. @@ -6611,7 +6672,7 @@ components: example: 1661365814859loidf7mcwd4qacn7 type: string owner: - example: +15553332222 + example: "+15553332222" type: string applicationId: example: 93de2206-9669-4e07-948d-329f4b722ee2 @@ -6627,13 +6688,13 @@ components: $ref: '#/components/schemas/messageDirectionEnum' to: example: - - +15552223333 + - "+15552223333" items: type: string type: array uniqueItems: true from: - example: +15553332222 + example: "+15553332222" type: string text: example: Hello world @@ -6674,7 +6735,7 @@ components: example: message-failed type: string to: - example: +15552223333 + example: "+15552223333" type: string description: example: rejected-unallocated-from-number @@ -6699,7 +6760,7 @@ components: example: 1661365814859loidf7mcwd4qacn7 type: string owner: - example: +15553332222 + example: "+15553332222" type: string applicationId: example: 93de2206-9669-4e07-948d-329f4b722ee2 @@ -6715,13 +6776,13 @@ components: $ref: '#/components/schemas/messageDirectionEnum' to: example: - - +15552223333 + - "+15552223333" items: type: string type: array uniqueItems: true from: - example: +15553332222 + example: "+15553332222" type: string text: example: Hello world @@ -6855,13 +6916,13 @@ components: description: |- The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). - example: +19195551234 + example: "+19195551234" type: string from: description: |- 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. - example: +15555551212 + example: "+15555551212" type: string privacy: description: Hide the calling number. The `displayName` field can be used @@ -7029,9 +7090,9 @@ components: answerMethod: POST enqueuedTime: 2022-06-16T13:15:07.16Z disconnectUrl: https://myServer.example/bandwidth/webhooks/disconnect - from: +19195554321 + from: "+19195554321" fallbackPassword: mySecretPassword1! - to: +19195551234 + to: "+19195551234" tag: My custom tag value applicationId: 04e88489-df02-4e34-a0ee-27a91849555f username: mySecretUsername @@ -7051,11 +7112,11 @@ components: type: string to: description: Recipient of the outgoing call. - example: +19195551234 + example: "+19195551234" type: string from: description: Phone number that created the outbound call. - example: +19195554321 + example: "+19195554321" type: string enqueuedTime: description: The time at which the call was accepted into the queue. @@ -7163,9 +7224,9 @@ components: verstat: TN-Verification-Passed attestationIndicator: A originatingId: abc123 - from: +19195554321 + from: "+19195554321" startTime: 2022-06-16T13:15:07.16Z - to: +19195551234 + to: "+19195551234" state: disconnected endTime: 2022-06-16T13:15:18.314Z errorId: errorId @@ -7193,12 +7254,12 @@ components: to: description: "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." - example: +19195551234 + example: "+19195551234" type: string from: description: "The phone number that made the call, in E.164 format (e.g.\ \ +15555555555)." - example: +19195554321 + example: "+19195554321" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -7406,14 +7467,14 @@ components: status: completed parentCallId: c-95ac8d6e-1a31c52e-b38f-4198-93c1-51633ec68f8d recordingName: my-recording-name - transferCallerId: +15555555555 - transferTo: +15555555555 + transferCallerId: "+15555555555" + transferTo: "+15555555555" duration: PT13.67S accountId: "9900000" channels: 1 - from: +15555555555 + from: "+15555555555" startTime: 2022-06-17T22:19:40.375Z - to: +15555555555 + to: "+15555555555" endTime: 2022-06-17T22:20:00Z applicationId: 04e88489-df02-4e34-a0ee-27a91849555f recordingId: r-fbe05094-9fd2afe9-bf5b-4c68-820a-41a01c1c5833 @@ -7446,22 +7507,22 @@ components: to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string duration: description: The duration of the recording in ISO-8601 format @@ -8080,6 +8141,10 @@ components: type: string type: object voiceApiError: + example: + description: description + id: id + type: type properties: type: type: string @@ -8120,12 +8185,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -8199,12 +8264,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -8293,12 +8358,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -8456,12 +8521,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string callId: description: The call id associated with the event. @@ -8511,12 +8576,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string callId: description: The call id associated with the event. @@ -8678,12 +8743,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string callId: description: The call id associated with the event. @@ -8775,12 +8840,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string callId: description: The call id associated with the event. @@ -8824,12 +8889,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string tag: description: "(optional) The tag specified on call creation. If no tag was\ @@ -8869,12 +8934,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -8925,12 +8990,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string tag: description: "(optional) The tag specified on call creation. If no tag was\ @@ -8972,12 +9037,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9033,12 +9098,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9111,12 +9176,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9190,12 +9255,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string type: object recordingAvailableCallback: @@ -9229,12 +9294,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9311,12 +9376,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string type: object redirectCallback: @@ -9350,12 +9415,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9401,12 +9466,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string type: object transcriptionAvailableCallback: @@ -9440,12 +9505,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9509,12 +9574,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string type: object transferAnswerCallback: @@ -9553,12 +9618,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9598,12 +9663,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string type: object transferCompleteCallback: @@ -9640,12 +9705,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9685,12 +9750,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string cause: description: "Reason the call failed - hangup, busy, timeout, cancel, rejected,\ @@ -9746,12 +9811,12 @@ components: from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string direction: $ref: '#/components/schemas/callDirectionEnum' @@ -9802,12 +9867,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call,\ \ in E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string cause: description: "Reason the call failed - hangup, busy, timeout, cancel, rejected,\ @@ -9855,12 +9920,12 @@ components: to: description: "The phone number that received the call, in E.164 format (e.g.\ \ +15555555555)." - example: +15555555555 + example: "+15555555555" type: string from: description: The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). - example: +15555555555 + example: "+15555555555" type: string conferenceId: description: "The unique, Bandwidth-generated ID of the conference that was\ @@ -9935,12 +10000,12 @@ components: transferCallerId: description: "The phone number used as the from field of the B-leg call, in\ \ E.164 format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string transferTo: description: "The phone number used as the to field of the B-leg call, in E.164\ \ format (e.g. +15555555555)." - example: +15555555555 + example: "+15555555555" type: string mediaUrl: description: The URL that can be used to download the recording. Only present @@ -10041,7 +10106,7 @@ components: origTo: description: Always present. Indicates the last telephone number that the call was diverted from. - example: +15558884444 + example: "+15558884444" type: string type: object transcription: @@ -10082,12 +10147,12 @@ components: properties: to: description: The phone number to send the mfa code to. - example: +19195551234 + example: "+19195551234" pattern: "^\\+[1-9]\\d{1,14}$" type: string from: description: "The application phone number, the sender of the mfa code." - example: +19195554321 + example: "+19195554321" maxLength: 32 pattern: "^\\+[1-9]\\d{1,14}$" type: string @@ -10149,7 +10214,7 @@ components: properties: to: description: The phone number to send the mfa code to. - example: +19195551234 + example: "+19195551234" pattern: "^\\+[1-9]\\d{1,14}$" type: string scope: @@ -10187,6 +10252,9 @@ components: type: boolean type: object mfaRequestError: + example: + requestId: 354cc8a3-6701-461e-8fa7-8671703dd898 + error: 400 Request is malformed or invalid properties: error: description: A message describing the error with your request. @@ -10198,6 +10266,8 @@ components: type: string type: object mfaUnauthorizedRequestError: + example: + message: Unauthorized properties: message: description: Unauthorized @@ -10205,6 +10275,8 @@ components: type: string type: object mfaForbiddenRequestError: + example: + message: Missing Authentication Token properties: message: description: The message containing the reason behind the request being @@ -10253,7 +10325,7 @@ components: \ was available for the TN." example: result: - - E.164 Format: +19195551234 + - E.164 Format: "+19195551234" Formatted: (919) 555-1234 Line Provider: Verizon Wireless Message: NOERROR @@ -10262,7 +10334,7 @@ components: Mobile Country Code: "310" Mobile Network Code: "010" Response Code: 0 - - E.164 Format: +19195551234 + - E.164 Format: "+19195551234" Formatted: (919) 555-1234 Line Provider: Verizon Wireless Message: NOERROR @@ -10273,7 +10345,7 @@ components: Response Code: 0 requestId: 004223a0-8b17-41b1-bf81-20732adf5590 failedTelephoneNumbers: - - +191955512345 + - "+191955512345" status: COMPLETE properties: requestId: @@ -10291,7 +10363,7 @@ components: failedTelephoneNumbers: description: The telephone numbers whose lookup failed. example: - - +191955512345 + - "+191955512345" items: type: string type: array @@ -10299,7 +10371,7 @@ components: lookupResult: description: Carrier information results for the specified telephone number. example: - E.164 Format: +19195551234 + E.164 Format: "+19195551234" Formatted: (919) 555-1234 Line Provider: Verizon Wireless Message: NOERROR @@ -10319,7 +10391,7 @@ components: type: string E.164 Format: description: The telephone number in E.164 format. - example: +19195551234 + example: "+19195551234" type: string Formatted: description: The formatted version of the telephone number. @@ -10347,6 +10419,8 @@ components: type: string type: object tnLookupRequestError: + example: + message: example error message properties: message: description: A description of what validation error occurred. diff --git a/build.gradle b/build.gradle index c1f22406..7e11e0b0 100644 --- a/build.gradle +++ b/build.gradle @@ -62,9 +62,9 @@ if(hasProperty('target') && target == 'android') { def task = project.tasks.create "jar${variant.name.capitalize()}", Jar task.description = "Create jar artifact for ${variant.name}" task.dependsOn variant.javaCompile - task.from variant.javaCompile.destinationDir - task.destinationDir = project.file("${project.buildDir}/outputs/jar") - task.archiveName = "${project.name}-${variant.baseName}-${version}.jar" + task.from variant.javaCompile.destinationDirectory + task.destinationDirectory = project.file("${project.buildDir}/outputs/jar") + task.archiveFileName = "${project.name}-${variant.baseName}-${version}.jar" artifacts.add('archives', task) } } @@ -108,18 +108,17 @@ ext { dependencies { implementation 'io.swagger:swagger-annotations:1.6.8' implementation "com.google.code.findbugs:jsr305:3.0.2" - implementation 'com.squareup.okhttp3:okhttp:4.10.0' - implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0' + implementation 'com.squareup.okhttp3:okhttp:4.12.0' + implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.google.code.gson:gson:2.9.1' - implementation 'io.gsonfire:gson-fire:1.8.5' - implementation 'javax.ws.rs:jsr311-api:1.1.1' - implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' + implementation 'io.gsonfire:gson-fire:1.9.0' + 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.9.1' + 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.9.1' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' } javadoc { diff --git a/build.sbt b/build.sbt index 306436b0..8ce42414 100644 --- a/build.sbt +++ b/build.sbt @@ -10,18 +10,17 @@ lazy val root = (project in file(".")). resolvers += Resolver.mavenLocal, libraryDependencies ++= Seq( "io.swagger" % "swagger-annotations" % "1.6.5", - "com.squareup.okhttp3" % "okhttp" % "4.10.0", - "com.squareup.okhttp3" % "logging-interceptor" % "4.10.0", + "com.squareup.okhttp3" % "okhttp" % "4.12.0", + "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", "com.google.code.gson" % "gson" % "2.9.1", "org.apache.commons" % "commons-lang3" % "3.12.0", - "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.8.5" % "compile", + "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.9.1" % "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/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 7454180f2ae8848c63b8b4dea2cb829da983f2fa..e6441136f3d4ba8a0da8d277868979cfbc8ad796 100644 GIT binary patch literal 43453 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1K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FPq!j`p&kQ8>cirSzkU0c08%8{^Qyqi-w2LoO8)^E7;;I1;HQ6B$u0nNaX2CY zSmfi)F`m94zL8>#zu;8|{aBui@RzRKBlP1&mfFxEC@%cjl?NBs`cr^nm){>;$g?rhKr$AO&6qV_Wbn^}5tfFBry^e1`%du2~o zs$~dN;S_#%iwwA_QvmMjh%Qo?0?rR~6liyN5Xmej8(*V9ym*T`xAhHih-v$7U}8=dfXi2i*aAB!xM(Xekg*ix@r|ymDw*{*s0?dlVys2e)z62u1 z+k3esbJE=-P5S$&KdFp+2H7_2e=}OKDrf( z9-207?6$@f4m4B+9E*e((Y89!q?zH|mz_vM>kp*HGXldO0Hg#!EtFhRuOm$u8e~a9 z5(roy7m$Kh+zjW6@zw{&20u?1f2uP&boD}$#Zy)4o&T;vyBoqFiF2t;*g=|1=)PxB z8eM3Mp=l_obbc?I^xyLz?4Y1YDWPa+nm;O<$Cn;@ane616`J9OO2r=rZr{I_Kizyc zP#^^WCdIEp*()rRT+*YZK>V@^Zs=ht32x>Kwe zab)@ZEffz;VM4{XA6e421^h~`ji5r%)B{wZu#hD}f3$y@L0JV9f3g{-RK!A?vBUA}${YF(vO4)@`6f1 z-A|}e#LN{)(eXloDnX4Vs7eH|<@{r#LodP@Nz--$Dg_Par%DCpu2>2jUnqy~|J?eZ zBG4FVsz_A+ibdwv>mLp>P!(t}E>$JGaK$R~;fb{O3($y1ssQQo|5M;^JqC?7qe|hg zu0ZOqeFcp?qVn&Qu7FQJ4hcFi&|nR!*j)MF#b}QO^lN%5)4p*D^H+B){n8%VPUzi! zDihoGcP71a6!ab`l^hK&*dYrVYzJ0)#}xVrp!e;lI!+x+bfCN0KXwUAPU9@#l7@0& QuEJmfE|#`Dqx|px0L@K;Y5)KL diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ffed3a25..b82aa23a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 005bcde0..9d0ce634 100644 --- a/gradlew +++ b/gradlew @@ -55,7 +55,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -69,37 +69,35 @@ app_path=$0 # Need this for daisy-chained symlinks. while - APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path - [ -h "$app_path" ] +APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path +[ -h "$app_path" ] do - ls=$( ls -ld "$app_path" ) - link=${ls#*' -> '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac +ls=$( ls -ld "$app_path" ) +link=${ls#*' -> '} +case $link in #( +/*) app_path=$link ;; #( +*) app_path=$APP_HOME$link ;; +esac done -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" +# This is normally unused +# shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { - echo "$*" +echo "$*" } >&2 die () { - echo - echo "$*" - echo - exit 1 +echo +echo "$*" +echo +exit 1 } >&2 # OS specific support (must be 'true' or 'false'). @@ -108,10 +106,10 @@ msys=false darwin=false nonstop=false case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; +CYGWIN* ) cygwin=true ;; #( +Darwin* ) darwin=true ;; #( +MSYS* | MINGW* ) msys=true ;; #( +NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -119,39 +117,46 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME +if [ -x "$JAVA_HOME/jre/sh/java" ] ; then +# IBM's JDK on AIX uses strange locations for the executables +JAVACMD=$JAVA_HOME/jre/sh/java +else +JAVACMD=$JAVA_HOME/bin/java +fi +if [ ! -x "$JAVACMD" ] ; then +die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." - fi +fi else - JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +JAVACMD=java +if ! command -v java >/dev/null 2>&1 +then +die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi +fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac +case $MAX_FD in #( +max*) +# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +MAX_FD=$( ulimit -H -n ) || +warn "Could not query maximum file descriptor limit" +esac +case $MAX_FD in #( +'' | soft) :;; #( +*) +# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +ulimit -n "$MAX_FD" || +warn "Could not set maximum file descriptor limit to $MAX_FD" +esac fi # Collect all arguments for the java command, stacking in reverse order: @@ -164,46 +169,56 @@ fi # For Cygwin or MSYS, switch paths to Windows format before running java if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done +APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) +CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + +JAVACMD=$( cygpath --unix "$JAVACMD" ) + +# Now convert the arguments - kludge to limit ourselves to /bin/sh +for arg do +if +case $arg in #( +-*) false ;; # don't mess with options #( +/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath +[ -e "$t" ] ;; #( +*) false ;; +esac +then +arg=$( cygpath --path --ignore --mixed "$arg" ) +fi +# Roll the args list around exactly as many times as the number of +# args, so each arg winds up back in the position where it started, but +# possibly modified. +# +# NB: a `for` loop captures its iteration list before it begins, so +# changing the positional parameters here affects neither the number of +# iterations, nor the values presented in `arg`. +shift # remove old arg +set -- "$@" "$arg" # push replacement arg +done fi -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" +"-Dorg.gradle.appname=$APP_BASE_NAME" \ +-classpath "$CLASSPATH" \ +org.gradle.wrapper.GradleWrapperMain \ +"$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then +die "xargs is not available" +fi # Use "xargs" to parse quoted args. # @@ -225,10 +240,10 @@ set -- \ # eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' +printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | +xargs -n1 | +sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | +tr '\n' ' ' +)" '"$@"' exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat index 6a68175e..25da30db 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -33,20 +34,20 @@ set APP_HOME=%DIRNAME% for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/openapitools.json b/openapitools.json index 3015568c..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.0.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 eb567e25..5307b00f 100644 --- a/src/main/java/com/bandwidth/sdk/ApiClient.java +++ b/src/main/java/com/bandwidth/sdk/ApiClient.java @@ -47,6 +47,7 @@ import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; +import java.util.function.Supplier; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -466,6 +467,19 @@ public void setAWS4Configuration(String accessKey, String secretKey, String regi throw new RuntimeException("No AWS4 authentication configured!"); } + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param sessionToken Session Token + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) { + throw new RuntimeException("No AWS4 authentication configured!"); + } + /** * Set the User-Agent header's value (by adding to the default header map). * @@ -721,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. * @@ -1159,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 @@ -1190,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 55fe2953..3ec11cbe 100644 --- a/src/main/java/com/bandwidth/sdk/ApiException.java +++ b/src/main/java/com/bandwidth/sdk/ApiException.java @@ -21,8 +21,10 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ApiException extends Exception { + private static final long serialVersionUID = 1L; + private int code = 0; private Map> responseHeaders = null; private String responseBody = null; diff --git a/src/main/java/com/bandwidth/sdk/Configuration.java b/src/main/java/com/bandwidth/sdk/Configuration.java index d730b801..00719909 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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.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 4e1175f7..fce101a7 100644 --- a/src/main/java/com/bandwidth/sdk/JSON.java +++ b/src/main/java/com/bandwidth/sdk/JSON.java @@ -86,7 +86,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri return clazz; } - { + static { GsonBuilder gsonBuilder = createGson(); gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); diff --git a/src/main/java/com/bandwidth/sdk/Pair.java b/src/main/java/com/bandwidth/sdk/Pair.java index 93fad347..315d1d54 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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.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 df9dc784..9576cd00 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,6 +18,7 @@ /** * Representing a Server configuration. */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.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 675f9e28..d43982c3 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,6 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.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 29277114..6eea0913 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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.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/auth/ApiKeyAuth.java b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java index 6cf0d0c8..0ff3e900 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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.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 8773cf97..4f4203c2 100644 --- a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java @@ -17,13 +17,15 @@ import com.bandwidth.sdk.Pair; import java.net.URI; -import java.util.Map; import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class HttpBearerAuth implements Authentication { private final String scheme; - private String bearerToken; + private Supplier tokenSupplier; public HttpBearerAuth(String scheme) { this.scheme = scheme; @@ -35,7 +37,7 @@ public HttpBearerAuth(String scheme) { * @return The bearer token */ public String getBearerToken() { - return bearerToken; + return tokenSupplier.get(); } /** @@ -44,12 +46,22 @@ public String getBearerToken() { * @param bearerToken The bearer token to send in the Authorization header */ public void setBearerToken(String bearerToken) { - this.bearerToken = bearerToken; + this.tokenSupplier = () -> bearerToken; + } + + /** + * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header. + * + * @param tokenSupplier The supplier of bearer tokens to send in the Authorization header + */ + public void setBearerToken(Supplier tokenSupplier) { + this.tokenSupplier = tokenSupplier; } @Override public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { + String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); if (bearerToken == null) { return; } diff --git a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java index dbe969d8..3ae9c1d1 100644 --- a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java @@ -18,12 +18,10 @@ import java.lang.reflect.Type; import java.util.Map; -//import com.fasterxml.jackson.annotation.JsonValue; - /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.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 b27df3b4..d89e7b36 100644 --- a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java +++ b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * AccountStatistics */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class AccountStatistics { public static final String SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE = "currentCallQueueSize"; @SerializedName(SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE) @@ -64,42 +62,38 @@ public AccountStatistics() { } public AccountStatistics currentCallQueueSize(Integer currentCallQueueSize) { - this.currentCallQueueSize = currentCallQueueSize; return this; } - /** + /** * The number of calls currently enqueued. * @return currentCallQueueSize - **/ + */ @javax.annotation.Nullable public Integer getCurrentCallQueueSize() { return currentCallQueueSize; } - public void setCurrentCallQueueSize(Integer currentCallQueueSize) { this.currentCallQueueSize = currentCallQueueSize; } public AccountStatistics maxCallQueueSize(Integer maxCallQueueSize) { - this.maxCallQueueSize = 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; } - public void setMaxCallQueueSize(Integer maxCallQueueSize) { this.maxCallQueueSize = maxCallQueueSize; } @@ -205,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 @@ -248,7 +242,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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 5d7a6c31..830afd03 100644 --- a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java @@ -42,12 +42,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class AnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -117,294 +115,266 @@ public AnswerCallback() { } public AnswerCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public AnswerCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public AnswerCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public AnswerCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public AnswerCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public AnswerCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public AnswerCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public AnswerCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public AnswerCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public AnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public AnswerCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public AnswerCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public AnswerCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public AnswerCallback machineDetectionResult(MachineDetectionResult machineDetectionResult) { - this.machineDetectionResult = machineDetectionResult; return this; } - /** + /** * Get machineDetectionResult * @return machineDetectionResult - **/ + */ @javax.annotation.Nullable public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; } - public void setMachineDetectionResult(MachineDetectionResult machineDetectionResult) { this.machineDetectionResult = machineDetectionResult; } @@ -557,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 @@ -585,6 +555,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -628,7 +602,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -667,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 b739d764..836b0c62 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class BridgeCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -124,336 +122,304 @@ public BridgeCompleteCallback() { } public BridgeCompleteCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public BridgeCompleteCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public BridgeCompleteCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public BridgeCompleteCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public BridgeCompleteCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public BridgeCompleteCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public BridgeCompleteCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public BridgeCompleteCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public BridgeCompleteCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public BridgeCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public BridgeCompleteCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public BridgeCompleteCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public BridgeCompleteCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public BridgeCompleteCallback cause(String cause) { - this.cause = 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; } - public void setCause(String cause) { this.cause = cause; } public BridgeCompleteCallback errorMessage(String errorMessage) { - this.errorMessage = 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; } - public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public BridgeCompleteCallback errorId(String errorId) { - this.errorId = errorId; return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { this.errorId = errorId; } @@ -612,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 @@ -640,6 +606,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -688,7 +658,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -727,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 7f02e1fc..908c0dbc 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class BridgeTargetCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -112,273 +110,247 @@ public BridgeTargetCompleteCallback() { } public BridgeTargetCompleteCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public BridgeTargetCompleteCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public BridgeTargetCompleteCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public BridgeTargetCompleteCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public BridgeTargetCompleteCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public BridgeTargetCompleteCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public BridgeTargetCompleteCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public BridgeTargetCompleteCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public BridgeTargetCompleteCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public BridgeTargetCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public BridgeTargetCompleteCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public BridgeTargetCompleteCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public BridgeTargetCompleteCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -528,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 @@ -556,6 +528,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -595,7 +571,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -634,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/CallDirectionEnum.java b/src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java index f0891c9c..ddf8bbde 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public CallDirectionEnum read(final JsonReader jsonReader) throws IOException { return CallDirectionEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + CallDirectionEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java index a014328d..9befbb02 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java @@ -43,12 +43,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -56,7 +54,7 @@ /** * CallRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CallRecordingMetadata { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -138,399 +136,361 @@ public CallRecordingMetadata() { } public CallRecordingMetadata applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CallRecordingMetadata accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public CallRecordingMetadata callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public CallRecordingMetadata parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public CallRecordingMetadata recordingId(String recordingId) { - this.recordingId = recordingId; return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public CallRecordingMetadata to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public CallRecordingMetadata from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public CallRecordingMetadata transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public CallRecordingMetadata transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public CallRecordingMetadata duration(String duration) { - this.duration = duration; return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; } - public void setDuration(String duration) { this.duration = duration; } public CallRecordingMetadata direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public CallRecordingMetadata channels(Integer channels) { - this.channels = 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; } - public void setChannels(Integer channels) { this.channels = channels; } public CallRecordingMetadata startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public CallRecordingMetadata endTime(OffsetDateTime endTime) { - this.endTime = endTime; return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public CallRecordingMetadata fileFormat(FileFormatEnum fileFormat) { - this.fileFormat = fileFormat; return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public CallRecordingMetadata status(String status) { - this.status = 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; } - public void setStatus(String status) { this.status = status; } public CallRecordingMetadata mediaUrl(URI mediaUrl) { - this.mediaUrl = 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; } - public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public CallRecordingMetadata transcription(RecordingTranscriptionMetadata transcription) { - this.transcription = transcription; return this; } - /** + /** * Get transcription * @return transcription - **/ + */ @javax.annotation.Nullable public RecordingTranscriptionMetadata getTranscription() { return transcription; } - public void setTranscription(RecordingTranscriptionMetadata transcription) { this.transcription = transcription; } public CallRecordingMetadata recordingName(String recordingName) { - this.recordingName = recordingName; return this; } - /** + /** * A name to identify this recording. * @return recordingName - **/ + */ @javax.annotation.Nullable public String getRecordingName() { return recordingName; } - public void setRecordingName(String recordingName) { this.recordingName = recordingName; } @@ -698,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 @@ -741,6 +701,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } + // validate the optional field `fileFormat` + if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { + FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); + } if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } @@ -784,7 +752,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -823,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 f9f2d025..b59e10af 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallState.java +++ b/src/main/java/com/bandwidth/sdk/model/CallState.java @@ -42,12 +42,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,7 +53,7 @@ /** * CallState */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CallState { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -133,175 +131,158 @@ public CallState() { } public CallState applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The application id associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CallState accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The account id associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public CallState callId(String callId) { - this.callId = callId; return this; } - /** + /** * The programmable voice API call ID. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public CallState parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public CallState to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public CallState from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public CallState direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public CallState state(String state) { - this.state = 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; } - public void setState(String state) { this.state = state; } public CallState stirShaken(Map stirShaken) { - this.stirShaken = stirShaken; return this; } @@ -314,205 +295,186 @@ 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; } - public void setStirShaken(Map stirShaken) { this.stirShaken = stirShaken; } public CallState identity(String identity) { - this.identity = 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; } - public void setIdentity(String identity) { this.identity = identity; } public CallState enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = enqueuedTime; return this; } - /** + /** * The time this call was placed in queue. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public CallState startTime(OffsetDateTime startTime) { - this.startTime = 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; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public CallState answerTime(OffsetDateTime answerTime) { - this.answerTime = 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; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public CallState endTime(OffsetDateTime endTime) { - this.endTime = 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; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public CallState disconnectCause(String disconnectCause) { - this.disconnectCause = 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; } - public void setDisconnectCause(String disconnectCause) { this.disconnectCause = disconnectCause; } public CallState errorMessage(String errorMessage) { - this.errorMessage = 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; } - public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public CallState errorId(String errorId) { - this.errorId = 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; } - public void setErrorId(String errorId) { this.errorId = errorId; } public CallState lastUpdate(OffsetDateTime lastUpdate) { - this.lastUpdate = 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; } - public void setLastUpdate(OffsetDateTime lastUpdate) { this.lastUpdate = lastUpdate; } @@ -677,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 @@ -708,6 +670,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("from") != null && !jsonObj.get("from").isJsonNull()) && !jsonObj.get("from").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `from` to be a primitive type in the JSON string but got `%s`", jsonObj.get("from").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } @@ -753,7 +719,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -792,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/CallStateEnum.java b/src/main/java/com/bandwidth/sdk/model/CallStateEnum.java index 24b1224c..64fd1045 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallStateEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallStateEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public CallStateEnum read(final JsonReader jsonReader) throws IOException { return CallStateEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + CallStateEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java index 74370836..ea30192f 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +50,7 @@ /** * CallTranscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CallTranscription { public static final String SERIALIZED_NAME_DETECTED_LANGUAGE = "detectedLanguage"; @SerializedName(SERIALIZED_NAME_DETECTED_LANGUAGE) @@ -74,86 +72,78 @@ public CallTranscription() { } public CallTranscription detectedLanguage(CallTranscriptionDetectedLanguageEnum detectedLanguage) { - this.detectedLanguage = detectedLanguage; return this; } - /** + /** * Get detectedLanguage * @return detectedLanguage - **/ + */ @javax.annotation.Nullable public CallTranscriptionDetectedLanguageEnum getDetectedLanguage() { return detectedLanguage; } - public void setDetectedLanguage(CallTranscriptionDetectedLanguageEnum detectedLanguage) { this.detectedLanguage = detectedLanguage; } public CallTranscription track(CallTranscriptionTrackEnum track) { - this.track = track; return this; } - /** + /** * Get track * @return track - **/ + */ @javax.annotation.Nullable public CallTranscriptionTrackEnum getTrack() { return track; } - public void setTrack(CallTranscriptionTrackEnum track) { this.track = track; } public CallTranscription transcript(String transcript) { - this.transcript = transcript; return this; } - /** + /** * The transcription itself. * @return transcript - **/ + */ @javax.annotation.Nullable public String getTranscript() { return transcript; } - public void setTranscript(String transcript) { this.transcript = transcript; } public CallTranscription confidence(Double confidence) { - this.confidence = 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; } - public void setConfidence(Double confidence) { this.confidence = confidence; } @@ -265,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 @@ -278,6 +268,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `detectedLanguage` + if (jsonObj.get("detectedLanguage") != null && !jsonObj.get("detectedLanguage").isJsonNull()) { + CallTranscriptionDetectedLanguageEnum.validateJsonElement(jsonObj.get("detectedLanguage")); + } + // validate the optional field `track` + if (jsonObj.get("track") != null && !jsonObj.get("track").isJsonNull()) { + CallTranscriptionTrackEnum.validateJsonElement(jsonObj.get("track")); + } if ((jsonObj.get("transcript") != null && !jsonObj.get("transcript").isJsonNull()) && !jsonObj.get("transcript").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `transcript` to be a primitive type in the JSON string but got `%s`", jsonObj.get("transcript").toString())); } @@ -311,7 +309,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -350,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/CallTranscriptionDetectedLanguageEnum.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnum.java index 93170297..6295e064 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -70,5 +71,10 @@ public CallTranscriptionDetectedLanguageEnum read(final JsonReader jsonReader) t return CallTranscriptionDetectedLanguageEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + CallTranscriptionDetectedLanguageEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java index a0f7f314..a6790a81 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * CallTranscriptionMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CallTranscriptionMetadata { public static final String SERIALIZED_NAME_TRANSCRIPTION_ID = "transcriptionId"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_ID) @@ -68,63 +66,57 @@ public CallTranscriptionMetadata() { } public CallTranscriptionMetadata transcriptionId(String transcriptionId) { - this.transcriptionId = transcriptionId; return this; } - /** + /** * The programmable voice API transcription ID. * @return transcriptionId - **/ + */ @javax.annotation.Nullable public String getTranscriptionId() { return transcriptionId; } - public void setTranscriptionId(String transcriptionId) { this.transcriptionId = transcriptionId; } public CallTranscriptionMetadata transcriptionName(String transcriptionName) { - this.transcriptionName = 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; } - public void setTranscriptionName(String transcriptionName) { this.transcriptionName = transcriptionName; } public CallTranscriptionMetadata transcriptionUrl(String transcriptionUrl) { - this.transcriptionUrl = 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; } - public void setTranscriptionUrl(String transcriptionUrl) { this.transcriptionUrl = transcriptionUrl; } @@ -233,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 @@ -285,7 +277,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -324,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 f52be69c..fe5c9272 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java @@ -40,12 +40,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +51,7 @@ /** * CallTranscriptionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CallTranscriptionResponse { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -69,76 +67,69 @@ public class CallTranscriptionResponse { public static final String SERIALIZED_NAME_TRACKS = "tracks"; @SerializedName(SERIALIZED_NAME_TRACKS) - private List tracks; + private List tracks = new ArrayList<>(); public CallTranscriptionResponse() { } public CallTranscriptionResponse accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public CallTranscriptionResponse callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public CallTranscriptionResponse transcriptionId(String transcriptionId) { - this.transcriptionId = transcriptionId; return this; } - /** + /** * The programmable voice API transcription ID. * @return transcriptionId - **/ + */ @javax.annotation.Nullable public String getTranscriptionId() { return transcriptionId; } - public void setTranscriptionId(String transcriptionId) { this.transcriptionId = transcriptionId; } public CallTranscriptionResponse tracks(List tracks) { - this.tracks = tracks; return this; } @@ -151,16 +142,15 @@ public CallTranscriptionResponse addTracksItem(CallTranscription tracksItem) { return this; } - /** + /** * Get tracks * @return tracks - **/ + */ @javax.annotation.Nullable public List getTracks() { return tracks; } - public void setTracks(List tracks) { this.tracks = tracks; } @@ -272,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 @@ -338,7 +328,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -377,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/CallTranscriptionTrackEnum.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnum.java index 8d607c37..0d0089a7 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public CallTranscriptionTrackEnum read(final JsonReader jsonReader) throws IOExc return CallTranscriptionTrackEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + CallTranscriptionTrackEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/CallbackMethodEnum.java b/src/main/java/com/bandwidth/sdk/model/CallbackMethodEnum.java index fef1dcce..3e169433 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallbackMethodEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/CallbackMethodEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public CallbackMethodEnum read(final JsonReader jsonReader) throws IOException { return CallbackMethodEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + CallbackMethodEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java index 5f0253ee..fe8614b7 100644 --- a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * CodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -80,128 +78,116 @@ public CodeRequest() { } public CodeRequest to(String to) { - this.to = to; return this; } - /** + /** * The phone number to send the mfa code to. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; } - public void setTo(String to) { this.to = to; } public CodeRequest from(String from) { - this.from = from; return this; } - /** + /** * The application phone number, the sender of the mfa code. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; } - public void setFrom(String from) { this.from = from; } public CodeRequest applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The application unique ID, obtained from Bandwidth. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CodeRequest scope(String scope) { - this.scope = 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; } - public void setScope(String scope) { this.scope = scope; } public CodeRequest message(String message) { - this.message = 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; } - public void setMessage(String message) { this.message = message; } public CodeRequest digits(Integer digits) { - this.digits = 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; } - public void setDigits(Integer digits) { this.digits = digits; } @@ -324,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 @@ -389,7 +375,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -428,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 91f59645..98ccebc8 100644 --- a/src/main/java/com/bandwidth/sdk/model/Conference.java +++ b/src/main/java/com/bandwidth/sdk/model/Conference.java @@ -44,12 +44,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -57,7 +55,7 @@ /** * Conference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class Conference { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -95,154 +93,139 @@ public Conference() { } public Conference id(String id) { - this.id = id; return this; } - /** + /** * The Bandwidth-generated conference ID. * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; } - public void setId(String id) { this.id = id; } public Conference name(String name) { - this.name = name; return this; } - /** + /** * The name of the conference, as specified by your application. * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; } - public void setName(String name) { this.name = name; } public Conference createdTime(OffsetDateTime createdTime) { - this.createdTime = createdTime; return this; } - /** + /** * The time the conference was initiated, in ISO 8601 format. * @return createdTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCreatedTime() { return createdTime; } - public void setCreatedTime(OffsetDateTime createdTime) { this.createdTime = createdTime; } public Conference completedTime(OffsetDateTime completedTime) { - this.completedTime = completedTime; return this; } - /** + /** * The time the conference was terminated, in ISO 8601 format. * @return completedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCompletedTime() { return completedTime; } - public void setCompletedTime(OffsetDateTime completedTime) { this.completedTime = completedTime; } public Conference conferenceEventUrl(URI conferenceEventUrl) { - this.conferenceEventUrl = conferenceEventUrl; return this; } - /** + /** * The URL to send the conference-related events. * @return conferenceEventUrl - **/ + */ @javax.annotation.Nullable public URI getConferenceEventUrl() { return conferenceEventUrl; } - public void setConferenceEventUrl(URI conferenceEventUrl) { this.conferenceEventUrl = conferenceEventUrl; } public Conference conferenceEventMethod(CallbackMethodEnum conferenceEventMethod) { - this.conferenceEventMethod = conferenceEventMethod; return this; } - /** + /** * Get conferenceEventMethod * @return conferenceEventMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getConferenceEventMethod() { return conferenceEventMethod; } - public void setConferenceEventMethod(CallbackMethodEnum conferenceEventMethod) { this.conferenceEventMethod = conferenceEventMethod; } public Conference tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public Conference activeMembers(List activeMembers) { - this.activeMembers = activeMembers; return this; } @@ -255,16 +238,15 @@ 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; } - public void setActiveMembers(List activeMembers) { this.activeMembers = activeMembers; } @@ -399,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 @@ -421,6 +403,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("conferenceEventUrl") != null && !jsonObj.get("conferenceEventUrl").isJsonNull()) && !jsonObj.get("conferenceEventUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `conferenceEventUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("conferenceEventUrl").toString())); } + // validate the optional field `conferenceEventMethod` + if (jsonObj.get("conferenceEventMethod") != null && !jsonObj.get("conferenceEventMethod").isJsonNull()) { + CallbackMethodEnum.validateJsonElement(jsonObj.get("conferenceEventMethod")); + } if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } @@ -468,7 +454,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -507,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 d0987304..486a8156 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ConferenceCompletedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -78,105 +76,95 @@ public ConferenceCompletedCallback() { } public ConferenceCompletedCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceCompletedCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceCompletedCallback conferenceId(String conferenceId) { - this.conferenceId = conferenceId; return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceCompletedCallback name(String name) { - this.name = name; return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; } - public void setName(String name) { this.name = name; } public ConferenceCompletedCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -302,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 @@ -357,7 +345,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -396,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 705be5c1..ba3d0685 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ConferenceCreatedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -78,105 +76,95 @@ public ConferenceCreatedCallback() { } public ConferenceCreatedCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceCreatedCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceCreatedCallback conferenceId(String conferenceId) { - this.conferenceId = conferenceId; return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceCreatedCallback name(String name) { - this.name = name; return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; } - public void setName(String name) { this.name = name; } public ConferenceCreatedCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -302,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 @@ -357,7 +345,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -396,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 d0bfae44..0ecbc750 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +52,7 @@ /** * ConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ConferenceMember { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -84,112 +82,101 @@ public ConferenceMember() { } public ConferenceMember callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public ConferenceMember conferenceId(String conferenceId) { - this.conferenceId = conferenceId; return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceMember memberUrl(URI memberUrl) { - this.memberUrl = 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; } - public void setMemberUrl(URI memberUrl) { this.memberUrl = memberUrl; } public ConferenceMember mute(Boolean mute) { - this.mute = 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; } - public void setMute(Boolean mute) { this.mute = mute; } public ConferenceMember hold(Boolean hold) { - this.hold = 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; } - public void setHold(Boolean hold) { this.hold = hold; } public ConferenceMember callIdsToCoach(List callIdsToCoach) { - this.callIdsToCoach = callIdsToCoach; return this; } @@ -202,16 +189,15 @@ 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; } - public void setCallIdsToCoach(List callIdsToCoach) { this.callIdsToCoach = callIdsToCoach; } @@ -340,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 @@ -396,7 +382,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -435,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 a58454d1..11c80c02 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ConferenceMemberExitCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -90,168 +88,152 @@ public ConferenceMemberExitCallback() { } public ConferenceMemberExitCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceMemberExitCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceMemberExitCallback conferenceId(String conferenceId) { - this.conferenceId = conferenceId; return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceMemberExitCallback name(String name) { - this.name = name; return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; } - public void setName(String name) { this.name = name; } public ConferenceMemberExitCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public ConferenceMemberExitCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public ConferenceMemberExitCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public ConferenceMemberExitCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -386,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 @@ -450,7 +432,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -489,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 16070f9f..b04511fa 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ConferenceMemberJoinCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -90,168 +88,152 @@ public ConferenceMemberJoinCallback() { } public ConferenceMemberJoinCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceMemberJoinCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceMemberJoinCallback conferenceId(String conferenceId) { - this.conferenceId = conferenceId; return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceMemberJoinCallback name(String name) { - this.name = name; return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; } - public void setName(String name) { this.name = name; } public ConferenceMemberJoinCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public ConferenceMemberJoinCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public ConferenceMemberJoinCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public ConferenceMemberJoinCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -386,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 @@ -450,7 +432,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -489,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 c0785daf..e4871ae9 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ConferenceRecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -116,294 +114,266 @@ public ConferenceRecordingAvailableCallback() { } public ConferenceRecordingAvailableCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceRecordingAvailableCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceRecordingAvailableCallback conferenceId(String conferenceId) { - this.conferenceId = conferenceId; return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceRecordingAvailableCallback name(String name) { - this.name = name; return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; } - public void setName(String name) { this.name = name; } public ConferenceRecordingAvailableCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public ConferenceRecordingAvailableCallback recordingId(String recordingId) { - this.recordingId = recordingId; return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public ConferenceRecordingAvailableCallback channels(Integer channels) { - this.channels = 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; } - public void setChannels(Integer channels) { this.channels = channels; } public ConferenceRecordingAvailableCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public ConferenceRecordingAvailableCallback endTime(OffsetDateTime endTime) { - this.endTime = endTime; return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public ConferenceRecordingAvailableCallback duration(String duration) { - this.duration = duration; return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; } - public void setDuration(String duration) { this.duration = duration; } public ConferenceRecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { - this.fileFormat = fileFormat; return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public ConferenceRecordingAvailableCallback mediaUrl(URI mediaUrl) { - this.mediaUrl = 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; } - public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public ConferenceRecordingAvailableCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public ConferenceRecordingAvailableCallback status(String status) { - this.status = 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; } - public void setStatus(String status) { this.status = status; } @@ -556,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 @@ -587,6 +557,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } + // validate the optional field `fileFormat` + if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { + FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); + } if ((jsonObj.get("mediaUrl") != null && !jsonObj.get("mediaUrl").isJsonNull()) && !jsonObj.get("mediaUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `mediaUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mediaUrl").toString())); } @@ -626,7 +600,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -665,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 009b983f..1bec34a8 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +52,7 @@ /** * ConferenceRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ConferenceRecordingMetadata { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -108,252 +106,228 @@ public ConferenceRecordingMetadata() { } public ConferenceRecordingMetadata accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public ConferenceRecordingMetadata conferenceId(String conferenceId) { - this.conferenceId = conferenceId; return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceRecordingMetadata name(String name) { - this.name = name; return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; } - public void setName(String name) { this.name = name; } public ConferenceRecordingMetadata recordingId(String recordingId) { - this.recordingId = recordingId; return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public ConferenceRecordingMetadata duration(String duration) { - this.duration = duration; return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; } - public void setDuration(String duration) { this.duration = duration; } public ConferenceRecordingMetadata channels(Integer channels) { - this.channels = 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; } - public void setChannels(Integer channels) { this.channels = channels; } public ConferenceRecordingMetadata startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public ConferenceRecordingMetadata endTime(OffsetDateTime endTime) { - this.endTime = endTime; return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public ConferenceRecordingMetadata fileFormat(FileFormatEnum fileFormat) { - this.fileFormat = fileFormat; return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public ConferenceRecordingMetadata status(String status) { - this.status = 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; } - public void setStatus(String status) { this.status = status; } public ConferenceRecordingMetadata mediaUrl(URI mediaUrl) { - this.mediaUrl = 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; } - public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public ConferenceRecordingMetadata recordingName(String recordingName) { - this.recordingName = recordingName; return this; } - /** + /** * A name to identify this recording. * @return recordingName - **/ + */ @javax.annotation.Nullable public String getRecordingName() { return recordingName; } - public void setRecordingName(String recordingName) { this.recordingName = recordingName; } @@ -500,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 @@ -528,6 +502,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } + // validate the optional field `fileFormat` + if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { + FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); + } if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) && !jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } @@ -567,7 +545,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -606,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 6158fcbf..792a6408 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ConferenceRedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -78,105 +76,95 @@ public ConferenceRedirectCallback() { } public ConferenceRedirectCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public ConferenceRedirectCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public ConferenceRedirectCallback conferenceId(String conferenceId) { - this.conferenceId = conferenceId; return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { this.conferenceId = conferenceId; } public ConferenceRedirectCallback name(String name) { - this.name = name; return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; } - public void setName(String name) { this.name = name; } public ConferenceRedirectCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -302,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 @@ -357,7 +345,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -396,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/ConferenceStateEnum.java b/src/main/java/com/bandwidth/sdk/model/ConferenceStateEnum.java index 76446226..8f457611 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceStateEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceStateEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public ConferenceStateEnum read(final JsonReader jsonReader) throws IOException return ConferenceStateEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ConferenceStateEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCall.java b/src/main/java/com/bandwidth/sdk/model/CreateCall.java index 43f756c9..e8ca3306 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCall.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +52,7 @@ /** * CreateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CreateCall { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -144,447 +142,405 @@ public CreateCall() { } public CreateCall to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public CreateCall from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public CreateCall privacy(Boolean privacy) { - this.privacy = 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; } - public void setPrivacy(Boolean privacy) { this.privacy = privacy; } public CreateCall displayName(String displayName) { - this.displayName = 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; } - public void setDisplayName(String displayName) { this.displayName = displayName; } public CreateCall uui(String uui) { - this.uui = 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; } - public void setUui(String uui) { this.uui = uui; } public CreateCall applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the `from` number. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CreateCall answerUrl(URI answerUrl) { - this.answerUrl = 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; } - public void setAnswerUrl(URI answerUrl) { this.answerUrl = answerUrl; } public CreateCall answerMethod(CallbackMethodEnum answerMethod) { - this.answerMethod = answerMethod; return this; } - /** + /** * Get answerMethod * @return answerMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerMethod() { return answerMethod; } - public void setAnswerMethod(CallbackMethodEnum answerMethod) { this.answerMethod = answerMethod; } public CreateCall username(String username) { - this.username = username; return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public CreateCall password(String password) { - this.password = password; return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; } - public void setPassword(String password) { this.password = password; } public CreateCall answerFallbackUrl(URI answerFallbackUrl) { - this.answerFallbackUrl = 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; } - public void setAnswerFallbackUrl(URI answerFallbackUrl) { this.answerFallbackUrl = answerFallbackUrl; } public CreateCall answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { - this.answerFallbackMethod = answerFallbackMethod; return this; } - /** + /** * Get answerFallbackMethod * @return answerFallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; } - public void setAnswerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { this.answerFallbackMethod = answerFallbackMethod; } public CreateCall fallbackUsername(String fallbackUsername) { - this.fallbackUsername = fallbackUsername; return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public CreateCall fallbackPassword(String fallbackPassword) { - this.fallbackPassword = fallbackPassword; return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } public CreateCall disconnectUrl(URI disconnectUrl) { - this.disconnectUrl = 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; } - public void setDisconnectUrl(URI disconnectUrl) { this.disconnectUrl = disconnectUrl; } public CreateCall disconnectMethod(CallbackMethodEnum disconnectMethod) { - this.disconnectMethod = disconnectMethod; return this; } - /** + /** * Get disconnectMethod * @return disconnectMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; } - public void setDisconnectMethod(CallbackMethodEnum disconnectMethod) { this.disconnectMethod = disconnectMethod; } public CreateCall callTimeout(Double callTimeout) { - this.callTimeout = 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; } - public void setCallTimeout(Double callTimeout) { this.callTimeout = callTimeout; } public CreateCall callbackTimeout(Double callbackTimeout) { - this.callbackTimeout = 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; } - public void setCallbackTimeout(Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } public CreateCall machineDetection(MachineDetectionConfiguration machineDetection) { - this.machineDetection = machineDetection; return this; } - /** + /** * Get machineDetection * @return machineDetection - **/ + */ @javax.annotation.Nullable public MachineDetectionConfiguration getMachineDetection() { return machineDetection; } - public void setMachineDetection(MachineDetectionConfiguration machineDetection) { this.machineDetection = machineDetection; } public CreateCall priority(Integer priority) { - this.priority = 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; } - public void setPriority(Integer priority) { this.priority = priority; } public CreateCall tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -762,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 @@ -800,6 +756,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("answerUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `answerUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("answerUrl").toString())); } + // validate the optional field `answerMethod` + if (jsonObj.get("answerMethod") != null && !jsonObj.get("answerMethod").isJsonNull()) { + CallbackMethodEnum.validateJsonElement(jsonObj.get("answerMethod")); + } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -809,6 +769,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("answerFallbackUrl") != null && !jsonObj.get("answerFallbackUrl").isJsonNull()) && !jsonObj.get("answerFallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `answerFallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("answerFallbackUrl").toString())); } + // validate the optional field `answerFallbackMethod` + if (jsonObj.get("answerFallbackMethod") != null && !jsonObj.get("answerFallbackMethod").isJsonNull()) { + CallbackMethodEnum.validateJsonElement(jsonObj.get("answerFallbackMethod")); + } if ((jsonObj.get("fallbackUsername") != null && !jsonObj.get("fallbackUsername").isJsonNull()) && !jsonObj.get("fallbackUsername").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUsername").toString())); } @@ -818,6 +782,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("disconnectUrl") != null && !jsonObj.get("disconnectUrl").isJsonNull()) && !jsonObj.get("disconnectUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `disconnectUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("disconnectUrl").toString())); } + // validate the optional field `disconnectMethod` + if (jsonObj.get("disconnectMethod") != null && !jsonObj.get("disconnectMethod").isJsonNull()) { + CallbackMethodEnum.validateJsonElement(jsonObj.get("disconnectMethod")); + } // validate the optional field `machineDetection` if (jsonObj.get("machineDetection") != null && !jsonObj.get("machineDetection").isJsonNull()) { MachineDetectionConfiguration.validateJsonElement(jsonObj.get("machineDetection")); @@ -855,7 +823,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -894,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 e99359cc..2a59b716 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +52,7 @@ /** * CreateCallResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CreateCallResponse { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -144,441 +142,399 @@ public CreateCallResponse() { } public CreateCallResponse applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the `from` number. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public CreateCallResponse accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The bandwidth account ID associated with the call. * @return accountId - **/ + */ @javax.annotation.Nonnull public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public CreateCallResponse callId(String callId) { - this.callId = callId; return this; } - /** + /** * Programmable Voice API Call ID. * @return callId - **/ + */ @javax.annotation.Nonnull public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public CreateCallResponse to(String to) { - this.to = to; return this; } - /** + /** * Recipient of the outgoing call. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; } - public void setTo(String to) { this.to = to; } public CreateCallResponse from(String from) { - this.from = from; return this; } - /** + /** * Phone number that created the outbound call. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; } - public void setFrom(String from) { this.from = from; } public CreateCallResponse enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = enqueuedTime; return this; } - /** + /** * The time at which the call was accepted into the queue. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public CreateCallResponse callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL to update this call's state. * @return callUrl - **/ + */ @javax.annotation.Nonnull public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public CreateCallResponse callTimeout(Double callTimeout) { - this.callTimeout = 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; } - public void setCallTimeout(Double callTimeout) { this.callTimeout = callTimeout; } public CreateCallResponse callbackTimeout(Double callbackTimeout) { - this.callbackTimeout = 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; } - public void setCallbackTimeout(Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } public CreateCallResponse tag(String tag) { - this.tag = tag; return this; } - /** + /** * Custom tag value. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; } - public void setTag(String tag) { this.tag = tag; } public CreateCallResponse answerMethod(CallbackMethodEnum answerMethod) { - this.answerMethod = answerMethod; return this; } - /** + /** * Get answerMethod * @return answerMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerMethod() { return answerMethod; } - public void setAnswerMethod(CallbackMethodEnum answerMethod) { this.answerMethod = answerMethod; } public CreateCallResponse answerUrl(URI answerUrl) { - this.answerUrl = answerUrl; return this; } - /** + /** * URL to deliver the `answer` event webhook. * @return answerUrl - **/ + */ @javax.annotation.Nonnull public URI getAnswerUrl() { return answerUrl; } - public void setAnswerUrl(URI answerUrl) { this.answerUrl = answerUrl; } public CreateCallResponse answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { - this.answerFallbackMethod = answerFallbackMethod; return this; } - /** + /** * Get answerFallbackMethod * @return answerFallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; } - public void setAnswerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { this.answerFallbackMethod = answerFallbackMethod; } public CreateCallResponse answerFallbackUrl(URI answerFallbackUrl) { - this.answerFallbackUrl = answerFallbackUrl; return this; } - /** + /** * Fallback URL to deliver the `answer` event webhook. * @return answerFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getAnswerFallbackUrl() { return answerFallbackUrl; } - public void setAnswerFallbackUrl(URI answerFallbackUrl) { this.answerFallbackUrl = answerFallbackUrl; } public CreateCallResponse disconnectMethod(CallbackMethodEnum disconnectMethod) { - this.disconnectMethod = disconnectMethod; return this; } - /** + /** * Get disconnectMethod * @return disconnectMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; } - public void setDisconnectMethod(CallbackMethodEnum disconnectMethod) { this.disconnectMethod = disconnectMethod; } public CreateCallResponse disconnectUrl(URI disconnectUrl) { - this.disconnectUrl = disconnectUrl; return this; } - /** + /** * URL to deliver the `disconnect` event webhook. * @return disconnectUrl - **/ + */ @javax.annotation.Nullable public URI getDisconnectUrl() { return disconnectUrl; } - public void setDisconnectUrl(URI disconnectUrl) { this.disconnectUrl = disconnectUrl; } public CreateCallResponse username(String username) { - this.username = username; return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public CreateCallResponse password(String password) { - this.password = password; return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; } - public void setPassword(String password) { this.password = password; } public CreateCallResponse fallbackUsername(String fallbackUsername) { - this.fallbackUsername = fallbackUsername; return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public CreateCallResponse fallbackPassword(String fallbackPassword) { - this.fallbackPassword = fallbackPassword; return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } public CreateCallResponse priority(Integer priority) { - this.priority = priority; return this; } - /** + /** * The priority of this call over other calls from your account. * @return priority - **/ + */ @javax.annotation.Nullable public Integer getPriority() { return priority; } - public void setPriority(Integer priority) { this.priority = priority; } @@ -761,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 @@ -802,12 +758,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } + // validate the required field `answerMethod` + CallbackMethodEnum.validateJsonElement(jsonObj.get("answerMethod")); if (!jsonObj.get("answerUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `answerUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("answerUrl").toString())); } + // validate the optional field `answerFallbackMethod` + if (jsonObj.get("answerFallbackMethod") != null && !jsonObj.get("answerFallbackMethod").isJsonNull()) { + CallbackMethodEnum.validateJsonElement(jsonObj.get("answerFallbackMethod")); + } if ((jsonObj.get("answerFallbackUrl") != null && !jsonObj.get("answerFallbackUrl").isJsonNull()) && !jsonObj.get("answerFallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `answerFallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("answerFallbackUrl").toString())); } + // validate the required field `disconnectMethod` + CallbackMethodEnum.validateJsonElement(jsonObj.get("disconnectMethod")); if ((jsonObj.get("disconnectUrl") != null && !jsonObj.get("disconnectUrl").isJsonNull()) && !jsonObj.get("disconnectUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `disconnectUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("disconnectUrl").toString())); } @@ -853,7 +817,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -892,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 5a9bdcab..211b1ccd 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java @@ -38,12 +38,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CreateLookupResponse { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -65,42 +63,38 @@ public CreateLookupResponse() { } public CreateLookupResponse requestId(String requestId) { - this.requestId = requestId; return this; } - /** + /** * The phone number lookup request ID from Bandwidth. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; } - public void setRequestId(String requestId) { this.requestId = requestId; } public CreateLookupResponse status(LookupStatusEnum status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public LookupStatusEnum getStatus() { return status; } - public void setStatus(LookupStatusEnum status) { this.status = status; } @@ -206,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 @@ -222,6 +216,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("requestId") != null && !jsonObj.get("requestId").isJsonNull()) && !jsonObj.get("requestId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `requestId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestId").toString())); } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + LookupStatusEnum.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -252,7 +250,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -291,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 a54042d2..0f1f7360 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java @@ -40,12 +40,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +51,7 @@ /** * CreateMessageRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class CreateMessageRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -65,55 +63,50 @@ public class CreateMessageRequestError { public static final String SERIALIZED_NAME_FIELD_ERRORS = "fieldErrors"; @SerializedName(SERIALIZED_NAME_FIELD_ERRORS) - private List fieldErrors; + private List fieldErrors = new ArrayList<>(); public CreateMessageRequestError() { } public CreateMessageRequestError type(String type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; } - public void setType(String type) { this.type = type; } public CreateMessageRequestError description(String description) { - this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public CreateMessageRequestError fieldErrors(List fieldErrors) { - this.fieldErrors = fieldErrors; return this; } @@ -126,16 +119,15 @@ public CreateMessageRequestError addFieldErrorsItem(FieldError fieldErrorsItem) return this; } - /** + /** * Get fieldErrors * @return fieldErrors - **/ + */ @javax.annotation.Nullable public List getFieldErrors() { return fieldErrors; } - public void setFieldErrors(List fieldErrors) { this.fieldErrors = fieldErrors; } @@ -246,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 @@ -316,7 +308,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -355,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 2a480d08..521831e0 100644 --- a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java +++ b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * DeferredResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class DeferredResult { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) @@ -64,42 +62,38 @@ public DeferredResult() { } public DeferredResult result(Object result) { - this.result = result; return this; } - /** + /** * Get result * @return result - **/ + */ @javax.annotation.Nullable public Object getResult() { return result; } - public void setResult(Object result) { this.result = result; } public DeferredResult setOrExpired(Boolean setOrExpired) { - this.setOrExpired = setOrExpired; return this; } - /** + /** * Get setOrExpired * @return setOrExpired - **/ + */ @javax.annotation.Nullable public Boolean getSetOrExpired() { return setOrExpired; } - public void setSetOrExpired(Boolean setOrExpired) { this.setOrExpired = setOrExpired; } @@ -205,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 @@ -248,7 +242,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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 7c70e624..901905dd 100644 --- a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +52,7 @@ /** * The Disconnect event is fired when a call ends, for any reason. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class DisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -128,357 +126,323 @@ public DisconnectCallback() { } public DisconnectCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public DisconnectCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public DisconnectCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public DisconnectCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public DisconnectCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public DisconnectCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public DisconnectCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public DisconnectCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public DisconnectCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public DisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public DisconnectCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public DisconnectCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public DisconnectCallback endTime(OffsetDateTime endTime) { - this.endTime = endTime; return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public DisconnectCallback cause(String cause) { - this.cause = 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; } - public void setCause(String cause) { this.cause = cause; } public DisconnectCallback errorMessage(String errorMessage) { - this.errorMessage = 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; } - public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public DisconnectCallback errorId(String errorId) { - this.errorId = errorId; return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { this.errorId = errorId; } public DisconnectCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -640,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 @@ -671,6 +635,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callUrl") != null && !jsonObj.get("callUrl").isJsonNull()) && !jsonObj.get("callUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callUrl").toString())); } @@ -716,7 +684,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -755,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 78fc646b..190ff096 100644 --- a/src/main/java/com/bandwidth/sdk/model/Diversion.java +++ b/src/main/java/com/bandwidth/sdk/model/Diversion.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * Diversion */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class Diversion { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -84,147 +82,133 @@ public Diversion() { } public Diversion reason(String reason) { - this.reason = 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; } - public void setReason(String reason) { this.reason = reason; } public Diversion privacy(String privacy) { - this.privacy = privacy; return this; } - /** + /** * off or full * @return privacy - **/ + */ @javax.annotation.Nullable public String getPrivacy() { return privacy; } - public void setPrivacy(String privacy) { this.privacy = privacy; } public Diversion screen(String screen) { - this.screen = 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; } - public void setScreen(String screen) { this.screen = screen; } public Diversion counter(String counter) { - this.counter = counter; return this; } - /** + /** * The number of diversions that have occurred * @return counter - **/ + */ @javax.annotation.Nullable public String getCounter() { return counter; } - public void setCounter(String counter) { this.counter = counter; } public Diversion limit(String limit) { - this.limit = limit; return this; } - /** + /** * The maximum number of diversions allowed for this session * @return limit - **/ + */ @javax.annotation.Nullable public String getLimit() { return limit; } - public void setLimit(String limit) { this.limit = limit; } public Diversion unknown(String unknown) { - this.unknown = 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; } - public void setUnknown(String unknown) { this.unknown = unknown; } public Diversion origTo(String origTo) { - this.origTo = 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; } - public void setOrigTo(String origTo) { this.origTo = origTo; } @@ -345,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 @@ -409,7 +393,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -448,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 d3f32ac4..ef3cfdac 100644 --- a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class DtmfCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -128,357 +126,323 @@ public DtmfCallback() { } public DtmfCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public DtmfCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public DtmfCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public DtmfCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public DtmfCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public DtmfCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public DtmfCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public DtmfCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public DtmfCallback digit(String digit) { - this.digit = digit; return this; } - /** + /** * The digit collected in the call. * @return digit - **/ + */ @javax.annotation.Nullable public String getDigit() { return digit; } - public void setDigit(String digit) { this.digit = digit; } public DtmfCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public DtmfCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public DtmfCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public DtmfCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public DtmfCallback parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public DtmfCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public DtmfCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public DtmfCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -640,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 @@ -671,6 +635,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("digit") != null && !jsonObj.get("digit").isJsonNull()) && !jsonObj.get("digit").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `digit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("digit").toString())); } @@ -719,7 +687,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -758,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 46618903..8cdf7abb 100644 --- a/src/main/java/com/bandwidth/sdk/model/FieldError.java +++ b/src/main/java/com/bandwidth/sdk/model/FieldError.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * FieldError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class FieldError { public static final String SERIALIZED_NAME_FIELD_NAME = "fieldName"; @SerializedName(SERIALIZED_NAME_FIELD_NAME) @@ -64,42 +62,38 @@ public FieldError() { } public FieldError fieldName(String fieldName) { - this.fieldName = fieldName; return this; } - /** + /** * The name of the field that contains the error * @return fieldName - **/ + */ @javax.annotation.Nullable public String getFieldName() { return fieldName; } - public void setFieldName(String fieldName) { this.fieldName = fieldName; } public FieldError description(String description) { - this.description = description; return this; } - /** + /** * The error associated with the field * @return description - **/ + */ @javax.annotation.Nullable public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } @@ -205,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 @@ -254,7 +248,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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/FileFormatEnum.java b/src/main/java/com/bandwidth/sdk/model/FileFormatEnum.java index 69296f70..1f27ba16 100644 --- a/src/main/java/com/bandwidth/sdk/model/FileFormatEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/FileFormatEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public FileFormatEnum read(final JsonReader jsonReader) throws IOException { return FileFormatEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + FileFormatEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java index 4cdf2c67..e789af98 100644 --- a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class GatherCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -132,378 +130,342 @@ public GatherCallback() { } public GatherCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public GatherCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public GatherCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public GatherCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public GatherCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public GatherCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public GatherCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public GatherCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public GatherCallback digits(String digits) { - this.digits = 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; } - public void setDigits(String digits) { this.digits = digits; } public GatherCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public GatherCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public GatherCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public GatherCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public GatherCallback parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public GatherCallback terminatingDigit(String terminatingDigit) { - this.terminatingDigit = 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; } - public void setTerminatingDigit(String terminatingDigit) { this.terminatingDigit = terminatingDigit; } public GatherCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public GatherCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public GatherCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -668,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 @@ -696,6 +658,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -750,7 +716,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -789,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 1ba464ec..251b60c5 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +50,7 @@ /** * Inbound Message Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class InboundMessageCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -78,105 +76,95 @@ public InboundMessageCallback() { } public InboundMessageCallback time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public InboundMessageCallback type(String type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; } - public void setType(String type) { this.type = type; } public InboundMessageCallback to(String to) { - this.to = to; return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; } - public void setTo(String to) { this.to = to; } public InboundMessageCallback description(String description) { - this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public InboundMessageCallback message(InboundMessageCallbackMessage message) { - this.message = message; return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public InboundMessageCallbackMessage getMessage() { return message; } - public void setMessage(InboundMessageCallbackMessage message) { this.message = message; } @@ -296,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 @@ -357,7 +345,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -396,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 9d5d99d9..063db4b9 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java @@ -45,12 +45,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -58,7 +56,7 @@ /** * Inbound Message Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class InboundMessageCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -102,7 +100,7 @@ public class InboundMessageCallbackMessage { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private List media; + private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -112,133 +110,120 @@ public InboundMessageCallbackMessage() { } public InboundMessageCallbackMessage id(String id) { - this.id = id; return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; } - public void setId(String id) { this.id = id; } public InboundMessageCallbackMessage owner(String owner) { - this.owner = owner; return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; } - public void setOwner(String owner) { this.owner = owner; } public InboundMessageCallbackMessage applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public InboundMessageCallbackMessage time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public InboundMessageCallbackMessage segmentCount(Integer segmentCount) { - this.segmentCount = segmentCount; return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public InboundMessageCallbackMessage direction(MessageDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public InboundMessageCallbackMessage to(Set to) { - this.to = to; return this; } @@ -251,86 +236,78 @@ public InboundMessageCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; } - public void setTo(Set to) { this.to = to; } public InboundMessageCallbackMessage from(String from) { - this.from = from; return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; } - public void setFrom(String from) { this.from = from; } public InboundMessageCallbackMessage text(String text) { - this.text = text; return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; } - public void setText(String text) { this.text = text; } public InboundMessageCallbackMessage tag(String tag) { - this.tag = tag; return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; } - public void setTag(String tag) { this.tag = tag; } public InboundMessageCallbackMessage media(List media) { - this.media = media; return this; } @@ -343,37 +320,34 @@ public InboundMessageCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; } - public void setMedia(List media) { this.media = media; } public InboundMessageCallbackMessage priority(PriorityEnum priority) { - this.priority = priority; return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { this.priority = priority; } @@ -518,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 @@ -547,6 +521,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } + // validate the required field `direction` + MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); // ensure the required json array is present if (jsonObj.get("to") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -566,6 +542,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("media") != null && !jsonObj.get("media").isJsonNull() && !jsonObj.get("media").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString())); } + // validate the optional field `priority` + if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { + PriorityEnum.validateJsonElement(jsonObj.get("priority")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -596,7 +576,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -635,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 9b901de0..b5f3e3b3 100644 --- a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java @@ -42,12 +42,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class InitiateCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -109,252 +107,228 @@ public InitiateCallback() { } public InitiateCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public InitiateCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public InitiateCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public InitiateCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public InitiateCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public InitiateCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public InitiateCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public InitiateCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public InitiateCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public InitiateCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public InitiateCallback diversion(Diversion diversion) { - this.diversion = diversion; return this; } - /** + /** * Get diversion * @return diversion - **/ + */ @javax.annotation.Nullable public Diversion getDiversion() { return diversion; } - public void setDiversion(Diversion diversion) { this.diversion = diversion; } public InitiateCallback stirShaken(StirShaken stirShaken) { - this.stirShaken = stirShaken; return this; } - /** + /** * Get stirShaken * @return stirShaken - **/ + */ @javax.annotation.Nullable public StirShaken getStirShaken() { return stirShaken; } - public void setStirShaken(StirShaken stirShaken) { this.stirShaken = stirShaken; } @@ -490,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 @@ -518,6 +492,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -562,7 +540,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -601,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/ListMessageDirectionEnum.java b/src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java index 5fbe269b..f175c9cd 100644 --- a/src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public ListMessageDirectionEnum read(final JsonReader jsonReader) throws IOExcep return ListMessageDirectionEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ListMessageDirectionEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java index 465c76f0..3781989e 100644 --- a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java +++ b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java @@ -42,12 +42,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,7 +53,7 @@ /** * ListMessageItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class ListMessageItem { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -129,357 +127,323 @@ public ListMessageItem() { } public ListMessageItem messageId(String messageId) { - this.messageId = messageId; return this; } - /** + /** * The message id * @return messageId - **/ + */ @javax.annotation.Nullable public String getMessageId() { return messageId; } - public void setMessageId(String messageId) { this.messageId = messageId; } public ListMessageItem accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The account id associated with this message. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public ListMessageItem sourceTn(String sourceTn) { - this.sourceTn = sourceTn; return this; } - /** + /** * The source phone number of the message. * @return sourceTn - **/ + */ @javax.annotation.Nullable public String getSourceTn() { return sourceTn; } - public void setSourceTn(String sourceTn) { this.sourceTn = sourceTn; } public ListMessageItem destinationTn(String destinationTn) { - this.destinationTn = destinationTn; return this; } - /** + /** * The recipient phone number of the message. * @return destinationTn - **/ + */ @javax.annotation.Nullable public String getDestinationTn() { return destinationTn; } - public void setDestinationTn(String destinationTn) { this.destinationTn = destinationTn; } public ListMessageItem messageStatus(MessageStatusEnum messageStatus) { - this.messageStatus = messageStatus; return this; } - /** + /** * Get messageStatus * @return messageStatus - **/ + */ @javax.annotation.Nullable public MessageStatusEnum getMessageStatus() { return messageStatus; } - public void setMessageStatus(MessageStatusEnum messageStatus) { this.messageStatus = messageStatus; } public ListMessageItem messageDirection(ListMessageDirectionEnum messageDirection) { - this.messageDirection = messageDirection; return this; } - /** + /** * Get messageDirection * @return messageDirection - **/ + */ @javax.annotation.Nullable public ListMessageDirectionEnum getMessageDirection() { return messageDirection; } - public void setMessageDirection(ListMessageDirectionEnum messageDirection) { this.messageDirection = messageDirection; } public ListMessageItem messageType(MessageTypeEnum messageType) { - this.messageType = messageType; return this; } - /** + /** * Get messageType * @return messageType - **/ + */ @javax.annotation.Nullable public MessageTypeEnum getMessageType() { return messageType; } - public void setMessageType(MessageTypeEnum messageType) { this.messageType = messageType; } public ListMessageItem segmentCount(Integer segmentCount) { - this.segmentCount = segmentCount; return this; } - /** + /** * The number of segments the message was sent as. * @return segmentCount - **/ + */ @javax.annotation.Nullable public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public ListMessageItem errorCode(Integer errorCode) { - this.errorCode = errorCode; return this; } - /** + /** * The numeric error code of the message. * @return errorCode - **/ + */ @javax.annotation.Nullable public Integer getErrorCode() { return errorCode; } - public void setErrorCode(Integer errorCode) { this.errorCode = errorCode; } public ListMessageItem receiveTime(OffsetDateTime receiveTime) { - this.receiveTime = receiveTime; return this; } - /** + /** * The ISO 8601 datetime of the message. * @return receiveTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getReceiveTime() { return receiveTime; } - public void setReceiveTime(OffsetDateTime receiveTime) { this.receiveTime = receiveTime; } public ListMessageItem carrierName(String carrierName) { - this.carrierName = 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; } - public void setCarrierName(String carrierName) { this.carrierName = carrierName; } public ListMessageItem messageSize(Integer messageSize) { - this.messageSize = messageSize; return this; } - /** + /** * The size of the message including message content and headers. * @return messageSize - **/ + */ @javax.annotation.Nullable public Integer getMessageSize() { return messageSize; } - public void setMessageSize(Integer messageSize) { this.messageSize = messageSize; } public ListMessageItem messageLength(Integer messageLength) { - this.messageLength = messageLength; return this; } - /** + /** * The length of the message content. * @return messageLength - **/ + */ @javax.annotation.Nullable public Integer getMessageLength() { return messageLength; } - public void setMessageLength(Integer messageLength) { this.messageLength = messageLength; } public ListMessageItem attachmentCount(Integer attachmentCount) { - this.attachmentCount = attachmentCount; return this; } - /** + /** * The number of attachments the message has. * @return attachmentCount - **/ + */ @javax.annotation.Nullable public Integer getAttachmentCount() { return attachmentCount; } - public void setAttachmentCount(Integer attachmentCount) { this.attachmentCount = attachmentCount; } public ListMessageItem recipientCount(Integer recipientCount) { - this.recipientCount = recipientCount; return this; } - /** + /** * The number of recipients the message has. * @return recipientCount - **/ + */ @javax.annotation.Nullable public Integer getRecipientCount() { return recipientCount; } - public void setRecipientCount(Integer recipientCount) { this.recipientCount = recipientCount; } public ListMessageItem campaignClass(String campaignClass) { - this.campaignClass = campaignClass; return this; } - /** + /** * The campaign class of the message if it has one. * @return campaignClass - **/ + */ @javax.annotation.Nullable public String getCampaignClass() { return campaignClass; } - public void setCampaignClass(String campaignClass) { this.campaignClass = campaignClass; } public ListMessageItem campaignId(String campaignId) { - this.campaignId = campaignId; return this; } - /** + /** * The campaign ID of the message if it has one. * @return campaignId - **/ + */ @javax.annotation.Nullable public String getCampaignId() { return campaignId; } - public void setCampaignId(String campaignId) { this.campaignId = campaignId; } @@ -641,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 @@ -666,6 +630,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("destinationTn") != null && !jsonObj.get("destinationTn").isJsonNull()) && !jsonObj.get("destinationTn").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `destinationTn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("destinationTn").toString())); } + // validate the optional field `messageStatus` + if (jsonObj.get("messageStatus") != null && !jsonObj.get("messageStatus").isJsonNull()) { + MessageStatusEnum.validateJsonElement(jsonObj.get("messageStatus")); + } + // validate the optional field `messageDirection` + if (jsonObj.get("messageDirection") != null && !jsonObj.get("messageDirection").isJsonNull()) { + ListMessageDirectionEnum.validateJsonElement(jsonObj.get("messageDirection")); + } + // validate the optional field `messageType` + if (jsonObj.get("messageType") != null && !jsonObj.get("messageType").isJsonNull()) { + MessageTypeEnum.validateJsonElement(jsonObj.get("messageType")); + } if ((jsonObj.get("carrierName") != null && !jsonObj.get("carrierName").isJsonNull()) && !jsonObj.get("carrierName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `carrierName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("carrierName").toString())); } @@ -705,7 +681,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -744,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 f41a7f01..2a1118a6 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +50,7 @@ /** * Create phone number lookup request. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class LookupRequest { public static final String SERIALIZED_NAME_TNS = "tns"; @SerializedName(SERIALIZED_NAME_TNS) @@ -62,7 +60,6 @@ public LookupRequest() { } public LookupRequest tns(List tns) { - this.tns = tns; return this; } @@ -75,16 +72,15 @@ public LookupRequest addTnsItem(String tnsItem) { return this; } - /** + /** * Get tns * @return tns - **/ + */ @javax.annotation.Nonnull public List getTns() { return tns; } - public void setTns(List tns) { this.tns = tns; } @@ -188,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 @@ -244,7 +240,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -283,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 7238b192..f4001240 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupResult.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupResult.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * Carrier information results for the specified telephone number. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class LookupResult { public static final String SERIALIZED_NAME_RESPONSE_CODE = "Response Code"; @SerializedName(SERIALIZED_NAME_RESPONSE_CODE) @@ -92,189 +90,171 @@ public LookupResult() { } public LookupResult responseCode(Integer responseCode) { - this.responseCode = responseCode; return this; } - /** + /** * Our vendor's response code. * @return responseCode - **/ + */ @javax.annotation.Nullable public Integer getResponseCode() { return responseCode; } - public void setResponseCode(Integer responseCode) { this.responseCode = responseCode; } public LookupResult message(String message) { - this.message = message; return this; } - /** + /** * Message associated with the response code. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } public LookupResult e164Format(String e164Format) { - this.e164Format = e164Format; return this; } - /** + /** * The telephone number in E.164 format. * @return e164Format - **/ + */ @javax.annotation.Nullable public String getE164Format() { return e164Format; } - public void setE164Format(String e164Format) { this.e164Format = e164Format; } public LookupResult formatted(String formatted) { - this.formatted = formatted; return this; } - /** + /** * The formatted version of the telephone number. * @return formatted - **/ + */ @javax.annotation.Nullable public String getFormatted() { return formatted; } - public void setFormatted(String formatted) { this.formatted = formatted; } public LookupResult country(String country) { - this.country = country; return this; } - /** + /** * The country of the telephone number. * @return country - **/ + */ @javax.annotation.Nullable public String getCountry() { return country; } - public void setCountry(String country) { this.country = country; } public LookupResult lineType(String lineType) { - this.lineType = lineType; return this; } - /** + /** * The line type of the telephone number. * @return lineType - **/ + */ @javax.annotation.Nullable public String getLineType() { return lineType; } - public void setLineType(String lineType) { this.lineType = lineType; } public LookupResult lineProvider(String lineProvider) { - this.lineProvider = lineProvider; return this; } - /** + /** * The messaging service provider of the telephone number. * @return lineProvider - **/ + */ @javax.annotation.Nullable public String getLineProvider() { return lineProvider; } - public void setLineProvider(String lineProvider) { this.lineProvider = lineProvider; } public LookupResult mobileCountryCode(String mobileCountryCode) { - this.mobileCountryCode = mobileCountryCode; return this; } - /** + /** * The first half of the Home Network Identity (HNI). * @return mobileCountryCode - **/ + */ @javax.annotation.Nullable public String getMobileCountryCode() { return mobileCountryCode; } - public void setMobileCountryCode(String mobileCountryCode) { this.mobileCountryCode = mobileCountryCode; } public LookupResult mobileNetworkCode(String mobileNetworkCode) { - this.mobileNetworkCode = mobileNetworkCode; return this; } - /** + /** * The second half of the HNI. * @return mobileNetworkCode - **/ + */ @javax.annotation.Nullable public String getMobileNetworkCode() { return mobileNetworkCode; } - public void setMobileNetworkCode(String mobileNetworkCode) { this.mobileNetworkCode = mobileNetworkCode; } @@ -401,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 @@ -468,7 +448,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -507,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 227b1bd3..6facf948 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class LookupStatus { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -66,59 +64,54 @@ public class LookupStatus { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) - private List result; + private List result = new ArrayList<>(); public static final String SERIALIZED_NAME_FAILED_TELEPHONE_NUMBERS = "failedTelephoneNumbers"; @SerializedName(SERIALIZED_NAME_FAILED_TELEPHONE_NUMBERS) - private List failedTelephoneNumbers; + private List failedTelephoneNumbers = new ArrayList<>(); public LookupStatus() { } public LookupStatus requestId(String requestId) { - this.requestId = requestId; return this; } - /** + /** * The requestId. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; } - public void setRequestId(String requestId) { this.requestId = requestId; } public LookupStatus status(LookupStatusEnum status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public LookupStatusEnum getStatus() { return status; } - public void setStatus(LookupStatusEnum status) { this.status = status; } public LookupStatus result(List result) { - this.result = result; return this; } @@ -131,23 +124,21 @@ 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; } - public void setResult(List result) { this.result = result; } public LookupStatus failedTelephoneNumbers(List failedTelephoneNumbers) { - this.failedTelephoneNumbers = failedTelephoneNumbers; return this; } @@ -160,16 +151,15 @@ public LookupStatus addFailedTelephoneNumbersItem(String failedTelephoneNumbersI return this; } - /** + /** * The telephone numbers whose lookup failed. * @return failedTelephoneNumbers - **/ + */ @javax.annotation.Nullable public List getFailedTelephoneNumbers() { return failedTelephoneNumbers; } - public void setFailedTelephoneNumbers(List failedTelephoneNumbers) { this.failedTelephoneNumbers = failedTelephoneNumbers; } @@ -281,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 @@ -297,6 +287,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("requestId") != null && !jsonObj.get("requestId").isJsonNull()) && !jsonObj.get("requestId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `requestId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("requestId").toString())); } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + LookupStatusEnum.validateJsonElement(jsonObj.get("status")); + } if (jsonObj.get("result") != null && !jsonObj.get("result").isJsonNull()) { JsonArray jsonArrayresult = jsonObj.getAsJsonArray("result"); if (jsonArrayresult != null) { @@ -345,7 +339,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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/LookupStatusEnum.java b/src/main/java/com/bandwidth/sdk/model/LookupStatusEnum.java index 59798a1f..02a72484 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupStatusEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupStatusEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -72,5 +73,10 @@ public LookupStatusEnum read(final JsonReader jsonReader) throws IOException { return LookupStatusEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + LookupStatusEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java index ab96ac6b..7df2350d 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java @@ -42,12 +42,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MachineDetectionCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -117,294 +115,266 @@ public MachineDetectionCompleteCallback() { } public MachineDetectionCompleteCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public MachineDetectionCompleteCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public MachineDetectionCompleteCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public MachineDetectionCompleteCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MachineDetectionCompleteCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public MachineDetectionCompleteCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public MachineDetectionCompleteCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public MachineDetectionCompleteCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public MachineDetectionCompleteCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public MachineDetectionCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public MachineDetectionCompleteCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public MachineDetectionCompleteCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public MachineDetectionCompleteCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public MachineDetectionCompleteCallback machineDetectionResult(MachineDetectionResult machineDetectionResult) { - this.machineDetectionResult = machineDetectionResult; return this; } - /** + /** * Get machineDetectionResult * @return machineDetectionResult - **/ + */ @javax.annotation.Nullable public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; } - public void setMachineDetectionResult(MachineDetectionResult machineDetectionResult) { this.machineDetectionResult = machineDetectionResult; } @@ -557,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 @@ -585,6 +555,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -628,7 +602,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -667,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 eed86c70..585aaa92 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MachineDetectionConfiguration { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) @@ -120,315 +118,285 @@ public MachineDetectionConfiguration() { } public MachineDetectionConfiguration mode(MachineDetectionModeEnum mode) { - this.mode = mode; return this; } - /** + /** * Get mode * @return mode - **/ + */ @javax.annotation.Nullable public MachineDetectionModeEnum getMode() { return mode; } - public void setMode(MachineDetectionModeEnum mode) { this.mode = mode; } public MachineDetectionConfiguration detectionTimeout(Double detectionTimeout) { - this.detectionTimeout = 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; } - public void setDetectionTimeout(Double detectionTimeout) { this.detectionTimeout = detectionTimeout; } public MachineDetectionConfiguration silenceTimeout(Double silenceTimeout) { - this.silenceTimeout = 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; } - public void setSilenceTimeout(Double silenceTimeout) { this.silenceTimeout = silenceTimeout; } public MachineDetectionConfiguration speechThreshold(Double speechThreshold) { - this.speechThreshold = 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; } - public void setSpeechThreshold(Double speechThreshold) { this.speechThreshold = speechThreshold; } public MachineDetectionConfiguration speechEndThreshold(Double speechEndThreshold) { - this.speechEndThreshold = speechEndThreshold; return this; } - /** + /** * Amount of silence (in seconds) before assuming the callee has finished speaking. * @return speechEndThreshold - **/ + */ @javax.annotation.Nullable public Double getSpeechEndThreshold() { return speechEndThreshold; } - public void setSpeechEndThreshold(Double speechEndThreshold) { this.speechEndThreshold = speechEndThreshold; } public MachineDetectionConfiguration machineSpeechEndThreshold(Double machineSpeechEndThreshold) { - this.machineSpeechEndThreshold = machineSpeechEndThreshold; 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; } - public void setMachineSpeechEndThreshold(Double machineSpeechEndThreshold) { this.machineSpeechEndThreshold = machineSpeechEndThreshold; } public MachineDetectionConfiguration delayResult(Boolean delayResult) { - this.delayResult = 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; } - public void setDelayResult(Boolean delayResult) { this.delayResult = delayResult; } public MachineDetectionConfiguration callbackUrl(URI callbackUrl) { - this.callbackUrl = 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; } - public void setCallbackUrl(URI callbackUrl) { this.callbackUrl = callbackUrl; } public MachineDetectionConfiguration callbackMethod(CallbackMethodEnum callbackMethod) { - this.callbackMethod = callbackMethod; return this; } - /** + /** * Get callbackMethod * @return callbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getCallbackMethod() { return callbackMethod; } - public void setCallbackMethod(CallbackMethodEnum callbackMethod) { this.callbackMethod = callbackMethod; } public MachineDetectionConfiguration username(String username) { - this.username = username; return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public MachineDetectionConfiguration password(String password) { - this.password = password; return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; } - public void setPassword(String password) { this.password = password; } public MachineDetectionConfiguration fallbackUrl(URI fallbackUrl) { - this.fallbackUrl = 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; } - public void setFallbackUrl(URI fallbackUrl) { this.fallbackUrl = fallbackUrl; } public MachineDetectionConfiguration fallbackMethod(CallbackMethodEnum fallbackMethod) { - this.fallbackMethod = fallbackMethod; return this; } - /** + /** * Get fallbackMethod * @return fallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getFallbackMethod() { return fallbackMethod; } - public void setFallbackMethod(CallbackMethodEnum fallbackMethod) { this.fallbackMethod = fallbackMethod; } public MachineDetectionConfiguration fallbackUsername(String fallbackUsername) { - this.fallbackUsername = fallbackUsername; return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public MachineDetectionConfiguration fallbackPassword(String fallbackPassword) { - this.fallbackPassword = fallbackPassword; return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } @@ -584,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 @@ -597,9 +565,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `mode` + if (jsonObj.get("mode") != null && !jsonObj.get("mode").isJsonNull()) { + MachineDetectionModeEnum.validateJsonElement(jsonObj.get("mode")); + } if ((jsonObj.get("callbackUrl") != null && !jsonObj.get("callbackUrl").isJsonNull()) && !jsonObj.get("callbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callbackUrl").toString())); } + // validate the optional field `callbackMethod` + if (jsonObj.get("callbackMethod") != null && !jsonObj.get("callbackMethod").isJsonNull()) { + CallbackMethodEnum.validateJsonElement(jsonObj.get("callbackMethod")); + } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -609,6 +585,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("fallbackUrl") != null && !jsonObj.get("fallbackUrl").isJsonNull()) && !jsonObj.get("fallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUrl").toString())); } + // validate the optional field `fallbackMethod` + if (jsonObj.get("fallbackMethod") != null && !jsonObj.get("fallbackMethod").isJsonNull()) { + CallbackMethodEnum.validateJsonElement(jsonObj.get("fallbackMethod")); + } if ((jsonObj.get("fallbackUsername") != null && !jsonObj.get("fallbackUsername").isJsonNull()) && !jsonObj.get("fallbackUsername").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUsername").toString())); } @@ -645,7 +625,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -684,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/MachineDetectionModeEnum.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionModeEnum.java index 07bba122..633c38e1 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionModeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionModeEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public MachineDetectionModeEnum read(final JsonReader jsonReader) throws IOExcep return MachineDetectionModeEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + MachineDetectionModeEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java index 135144a7..4f215cb7 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MachineDetectionResult { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -64,42 +62,38 @@ public MachineDetectionResult() { } public MachineDetectionResult value(String value) { - this.value = value; return this; } - /** + /** * Possible values are answering-machine, human, silence, timeout, or error. * @return value - **/ + */ @javax.annotation.Nullable public String getValue() { return value; } - public void setValue(String value) { this.value = value; } public MachineDetectionResult duration(String duration) { - this.duration = duration; return this; } - /** + /** * The amount of time it took to determine the result. * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; } - public void setDuration(String duration) { this.duration = duration; } @@ -205,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 @@ -254,7 +248,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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 5465ff98..e2e019cf 100644 --- a/src/main/java/com/bandwidth/sdk/model/Media.java +++ b/src/main/java/com/bandwidth/sdk/model/Media.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * Media */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class Media { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -68,63 +66,57 @@ public Media() { } public Media content(String content) { - this.content = content; return this; } - /** + /** * Get content * @return content - **/ + */ @javax.annotation.Nullable public String getContent() { return content; } - public void setContent(String content) { this.content = content; } public Media contentLength(Integer contentLength) { - this.contentLength = contentLength; return this; } - /** + /** * Get contentLength * @return contentLength - **/ + */ @javax.annotation.Nullable public Integer getContentLength() { return contentLength; } - public void setContentLength(Integer contentLength) { this.contentLength = contentLength; } public Media mediaName(String mediaName) { - this.mediaName = mediaName; return this; } - /** + /** * Get mediaName * @return mediaName - **/ + */ @javax.annotation.Nullable public String getMediaName() { return mediaName; } - public void setMediaName(String mediaName) { this.mediaName = mediaName; } @@ -233,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 @@ -282,7 +274,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -321,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 a6d830dd..1dd79514 100644 --- a/src/main/java/com/bandwidth/sdk/model/Message.java +++ b/src/main/java/com/bandwidth/sdk/model/Message.java @@ -42,12 +42,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,7 +53,7 @@ /** * Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class Message { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -83,7 +81,7 @@ public class Message { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) - private Set to; + private Set to = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) @@ -91,7 +89,7 @@ public class Message { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private Set media; + private Set media = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -113,133 +111,120 @@ public Message() { } public Message id(String id) { - this.id = id; return this; } - /** + /** * The id of the message. * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; } - public void setId(String id) { this.id = id; } public Message owner(String owner) { - this.owner = owner; return this; } - /** + /** * The Bandwidth phone number associated with the message. * @return owner - **/ + */ @javax.annotation.Nullable public String getOwner() { return owner; } - public void setOwner(String owner) { this.owner = owner; } public Message applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The application ID associated with the message. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public Message time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * The datetime stamp of the message in ISO 8601 * @return time - **/ + */ @javax.annotation.Nullable public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public Message segmentCount(Integer segmentCount) { - this.segmentCount = 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; } - public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public Message direction(MessageDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public Message to(Set to) { - this.to = to; return this; } @@ -252,44 +237,40 @@ public Message addToItem(String toItem) { return this; } - /** + /** * The phone number recipients of the message. * @return to - **/ + */ @javax.annotation.Nullable public Set getTo() { return to; } - public void setTo(Set to) { this.to = to; } public Message from(String from) { - this.from = from; return this; } - /** + /** * The phone number the message was sent from. * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; } - public void setFrom(String from) { this.from = from; } public Message media(Set media) { - this.media = media; return this; } @@ -302,100 +283,91 @@ 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; } - public void setMedia(Set media) { this.media = media; } public Message text(String text) { - this.text = text; return this; } - /** + /** * The contents of the message. * @return text - **/ + */ @javax.annotation.Nullable public String getText() { return text; } - public void setText(String text) { this.text = text; } public Message tag(String tag) { - this.tag = tag; return this; } - /** + /** * The custom string set by the user. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; } - public void setTag(String tag) { this.tag = tag; } public Message priority(PriorityEnum priority) { - this.priority = priority; return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { this.priority = priority; } public Message expiration(OffsetDateTime expiration) { - this.expiration = expiration; return this; } - /** + /** * The expiration date-time set by the user. * @return expiration - **/ + */ @javax.annotation.Nullable public OffsetDateTime getExpiration() { return expiration; } - public void setExpiration(OffsetDateTime expiration) { this.expiration = expiration; } @@ -534,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 @@ -556,6 +528,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("applicationId") != null && !jsonObj.get("applicationId").isJsonNull()) && !jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } // ensure the optional json data is an array if present if (jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull() && !jsonObj.get("to").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be an array in the JSON string but got `%s`", jsonObj.get("to").toString())); @@ -573,6 +549,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } + // validate the optional field `priority` + if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { + PriorityEnum.validateJsonElement(jsonObj.get("priority")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -603,7 +583,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -642,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 7a3a30c7..335d8efc 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +50,7 @@ /** * Message Delivered Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessageDeliveredCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -78,105 +76,95 @@ public MessageDeliveredCallback() { } public MessageDeliveredCallback time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public MessageDeliveredCallback type(String type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; } - public void setType(String type) { this.type = type; } public MessageDeliveredCallback to(String to) { - this.to = to; return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; } - public void setTo(String to) { this.to = to; } public MessageDeliveredCallback description(String description) { - this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public MessageDeliveredCallback message(MessageDeliveredCallbackMessage message) { - this.message = message; return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageDeliveredCallbackMessage getMessage() { return message; } - public void setMessage(MessageDeliveredCallbackMessage message) { this.message = message; } @@ -296,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 @@ -357,7 +345,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -396,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 144c4c0e..5abed798 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java @@ -45,12 +45,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -58,7 +56,7 @@ /** * Message Delivered Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessageDeliveredCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -102,7 +100,7 @@ public class MessageDeliveredCallbackMessage { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private List media; + private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -112,133 +110,120 @@ public MessageDeliveredCallbackMessage() { } public MessageDeliveredCallbackMessage id(String id) { - this.id = id; return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; } - public void setId(String id) { this.id = id; } public MessageDeliveredCallbackMessage owner(String owner) { - this.owner = owner; return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; } - public void setOwner(String owner) { this.owner = owner; } public MessageDeliveredCallbackMessage applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MessageDeliveredCallbackMessage time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public MessageDeliveredCallbackMessage segmentCount(Integer segmentCount) { - this.segmentCount = segmentCount; return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public MessageDeliveredCallbackMessage direction(MessageDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public MessageDeliveredCallbackMessage to(Set to) { - this.to = to; return this; } @@ -251,86 +236,78 @@ public MessageDeliveredCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; } - public void setTo(Set to) { this.to = to; } public MessageDeliveredCallbackMessage from(String from) { - this.from = from; return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; } - public void setFrom(String from) { this.from = from; } public MessageDeliveredCallbackMessage text(String text) { - this.text = text; return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; } - public void setText(String text) { this.text = text; } public MessageDeliveredCallbackMessage tag(String tag) { - this.tag = tag; return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nonnull public String getTag() { return tag; } - public void setTag(String tag) { this.tag = tag; } public MessageDeliveredCallbackMessage media(List media) { - this.media = media; return this; } @@ -343,37 +320,34 @@ public MessageDeliveredCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; } - public void setMedia(List media) { this.media = media; } public MessageDeliveredCallbackMessage priority(PriorityEnum priority) { - this.priority = priority; return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { this.priority = priority; } @@ -519,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 @@ -548,6 +522,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } + // validate the required field `direction` + MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); // ensure the required json array is present if (jsonObj.get("to") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -567,6 +543,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("media") != null && !jsonObj.get("media").isJsonNull() && !jsonObj.get("media").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString())); } + // validate the optional field `priority` + if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { + PriorityEnum.validateJsonElement(jsonObj.get("priority")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -597,7 +577,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -636,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/MessageDirectionEnum.java b/src/main/java/com/bandwidth/sdk/model/MessageDirectionEnum.java index 4713b361..52886e8a 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDirectionEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDirectionEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public MessageDirectionEnum read(final JsonReader jsonReader) throws IOException return MessageDirectionEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + MessageDirectionEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java index 7969be97..a216172b 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +50,7 @@ /** * Message Failed Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessageFailedCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -82,126 +80,114 @@ public MessageFailedCallback() { } public MessageFailedCallback time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public MessageFailedCallback type(String type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; } - public void setType(String type) { this.type = type; } public MessageFailedCallback to(String to) { - this.to = to; return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; } - public void setTo(String to) { this.to = to; } public MessageFailedCallback description(String description) { - this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public MessageFailedCallback message(MessageFailedCallbackMessage message) { - this.message = message; return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageFailedCallbackMessage getMessage() { return message; } - public void setMessage(MessageFailedCallbackMessage message) { this.message = message; } public MessageFailedCallback errorCode(Integer errorCode) { - this.errorCode = errorCode; return this; } - /** + /** * Get errorCode * @return errorCode - **/ + */ @javax.annotation.Nonnull public Integer getErrorCode() { return errorCode; } - public void setErrorCode(Integer errorCode) { this.errorCode = errorCode; } @@ -325,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 @@ -386,7 +372,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -425,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 6d65d19f..88733a8d 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java @@ -45,12 +45,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -58,7 +56,7 @@ /** * Message Failed Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessageFailedCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -102,7 +100,7 @@ public class MessageFailedCallbackMessage { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private List media; + private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) @@ -112,133 +110,120 @@ public MessageFailedCallbackMessage() { } public MessageFailedCallbackMessage id(String id) { - this.id = id; return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; } - public void setId(String id) { this.id = id; } public MessageFailedCallbackMessage owner(String owner) { - this.owner = owner; return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; } - public void setOwner(String owner) { this.owner = owner; } public MessageFailedCallbackMessage applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MessageFailedCallbackMessage time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public MessageFailedCallbackMessage segmentCount(Integer segmentCount) { - this.segmentCount = segmentCount; return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public MessageFailedCallbackMessage direction(MessageDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public MessageFailedCallbackMessage to(Set to) { - this.to = to; return this; } @@ -251,86 +236,78 @@ public MessageFailedCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; } - public void setTo(Set to) { this.to = to; } public MessageFailedCallbackMessage from(String from) { - this.from = from; return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; } - public void setFrom(String from) { this.from = from; } public MessageFailedCallbackMessage text(String text) { - this.text = text; return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; } - public void setText(String text) { this.text = text; } public MessageFailedCallbackMessage tag(String tag) { - this.tag = tag; return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nonnull public String getTag() { return tag; } - public void setTag(String tag) { this.tag = tag; } public MessageFailedCallbackMessage media(List media) { - this.media = media; return this; } @@ -343,37 +320,34 @@ public MessageFailedCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; } - public void setMedia(List media) { this.media = media; } public MessageFailedCallbackMessage priority(PriorityEnum priority) { - this.priority = priority; return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nonnull public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { this.priority = priority; } @@ -520,12 +494,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("priority"); } - /** - * 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 @@ -549,6 +523,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } + // validate the required field `direction` + MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); // ensure the required json array is present if (jsonObj.get("to") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -568,6 +544,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("media") != null && !jsonObj.get("media").isJsonNull() && !jsonObj.get("media").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString())); } + // validate the required field `priority` + PriorityEnum.validateJsonElement(jsonObj.get("priority")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -598,7 +576,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -637,22 +620,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 8ae0dad4..b87a5dd5 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java @@ -44,12 +44,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -57,7 +55,7 @@ /** * MessageRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessageRequest { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -77,7 +75,7 @@ public class MessageRequest { public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) - private List media; + private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) @@ -95,28 +93,25 @@ public MessageRequest() { } public MessageRequest applicationId(String applicationId) { - this.applicationId = 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; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MessageRequest to(Set to) { - this.to = to; return this; } @@ -129,65 +124,59 @@ 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; } - public void setTo(Set to) { this.to = to; } public MessageRequest from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public MessageRequest text(String text) { - this.text = 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; } - public void setText(String text) { this.text = text; } public MessageRequest media(List media) { - this.media = media; return this; } @@ -200,79 +189,72 @@ 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; } - public void setMedia(List media) { this.media = media; } public MessageRequest tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public MessageRequest priority(PriorityEnum priority) { - this.priority = priority; return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { this.priority = priority; } public MessageRequest expiration(OffsetDateTime expiration) { - this.expiration = 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; } - public void setExpiration(OffsetDateTime expiration) { this.expiration = expiration; } @@ -399,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 @@ -441,6 +423,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } + // validate the optional field `priority` + if (jsonObj.get("priority") != null && !jsonObj.get("priority").isJsonNull()) { + PriorityEnum.validateJsonElement(jsonObj.get("priority")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -471,7 +457,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -510,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 4be4d232..4e145778 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +50,7 @@ /** * Message Sending Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessageSendingCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -78,105 +76,95 @@ public MessageSendingCallback() { } public MessageSendingCallback time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public MessageSendingCallback type(String type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; } - public void setType(String type) { this.type = type; } public MessageSendingCallback to(String to) { - this.to = to; return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; } - public void setTo(String to) { this.to = to; } public MessageSendingCallback description(String description) { - this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public MessageSendingCallback message(MessageSendingCallbackMessage message) { - this.message = message; return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageSendingCallbackMessage getMessage() { return message; } - public void setMessage(MessageSendingCallbackMessage message) { this.message = message; } @@ -296,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 @@ -357,7 +345,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -396,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 1bced475..690760b2 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java @@ -45,12 +45,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -58,7 +56,7 @@ /** * Message Sending Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessageSendingCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -112,133 +110,120 @@ public MessageSendingCallbackMessage() { } public MessageSendingCallbackMessage id(String id) { - this.id = id; return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; } - public void setId(String id) { this.id = id; } public MessageSendingCallbackMessage owner(String owner) { - this.owner = owner; return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; } - public void setOwner(String owner) { this.owner = owner; } public MessageSendingCallbackMessage applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public MessageSendingCallbackMessage time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public MessageSendingCallbackMessage segmentCount(Integer segmentCount) { - this.segmentCount = segmentCount; return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { this.segmentCount = segmentCount; } public MessageSendingCallbackMessage direction(MessageDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { this.direction = direction; } public MessageSendingCallbackMessage to(Set to) { - this.to = to; return this; } @@ -251,86 +236,78 @@ public MessageSendingCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; } - public void setTo(Set to) { this.to = to; } public MessageSendingCallbackMessage from(String from) { - this.from = from; return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; } - public void setFrom(String from) { this.from = from; } public MessageSendingCallbackMessage text(String text) { - this.text = text; return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; } - public void setText(String text) { this.text = text; } public MessageSendingCallbackMessage tag(String tag) { - this.tag = tag; return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; } - public void setTag(String tag) { this.tag = tag; } public MessageSendingCallbackMessage media(List media) { - this.media = media; return this; } @@ -343,37 +320,34 @@ public MessageSendingCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nonnull public List getMedia() { return media; } - public void setMedia(List media) { this.media = media; } public MessageSendingCallbackMessage priority(PriorityEnum priority) { - this.priority = priority; return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nonnull public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { this.priority = priority; } @@ -520,12 +494,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("priority"); } - /** - * 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 @@ -549,6 +523,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("applicationId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); } + // validate the required field `direction` + MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); // ensure the required json array is present if (jsonObj.get("to") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); @@ -570,6 +546,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } else if (!jsonObj.get("media").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `media` to be an array in the JSON string but got `%s`", jsonObj.get("media").toString())); } + // validate the required field `priority` + PriorityEnum.validateJsonElement(jsonObj.get("priority")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -600,7 +578,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -639,22 +622,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/MessageStatusEnum.java b/src/main/java/com/bandwidth/sdk/model/MessageStatusEnum.java index 90a978bf..80760f09 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageStatusEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageStatusEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -80,5 +81,10 @@ public MessageStatusEnum read(final JsonReader jsonReader) throws IOException { return MessageStatusEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + MessageStatusEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageTypeEnum.java b/src/main/java/com/bandwidth/sdk/model/MessageTypeEnum.java index 8ce1bc4b..e12241ca 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageTypeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageTypeEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public MessageTypeEnum read(final JsonReader jsonReader) throws IOException { return MessageTypeEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + MessageTypeEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagesList.java b/src/main/java/com/bandwidth/sdk/model/MessagesList.java index 8c40885c..d91ff841 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagesList.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagesList.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +52,7 @@ /** * MessagesList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessagesList { public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) @@ -66,55 +64,50 @@ public class MessagesList { public static final String SERIALIZED_NAME_MESSAGES = "messages"; @SerializedName(SERIALIZED_NAME_MESSAGES) - private List messages; + private List messages = new ArrayList<>(); public MessagesList() { } public MessagesList totalCount(Integer totalCount) { - this.totalCount = 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; } - public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } public MessagesList pageInfo(PageInfo pageInfo) { - this.pageInfo = pageInfo; return this; } - /** + /** * Get pageInfo * @return pageInfo - **/ + */ @javax.annotation.Nullable public PageInfo getPageInfo() { return pageInfo; } - public void setPageInfo(PageInfo pageInfo) { this.pageInfo = pageInfo; } public MessagesList messages(List messages) { - this.messages = messages; return this; } @@ -127,16 +120,15 @@ public MessagesList addMessagesItem(ListMessageItem messagesItem) { return this; } - /** + /** * Get messages * @return messages - **/ + */ @javax.annotation.Nullable public List getMessages() { return messages; } - public void setMessages(List messages) { this.messages = messages; } @@ -245,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 @@ -306,7 +298,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -345,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 fb5f2e3d..5a032141 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * MessagingCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessagingCodeResponse { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -60,21 +58,19 @@ public MessagingCodeResponse() { } public MessagingCodeResponse messageId(String messageId) { - this.messageId = messageId; return this; } - /** + /** * Messaging API Message ID. * @return messageId - **/ + */ @javax.annotation.Nullable public String getMessageId() { return messageId; } - public void setMessageId(String messageId) { this.messageId = messageId; } @@ -177,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 @@ -223,7 +219,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -262,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 a0f4af11..a2cf3027 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * MessagingRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MessagingRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -64,42 +62,38 @@ public MessagingRequestError() { } public MessagingRequestError type(String type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; } - public void setType(String type) { this.type = type; } public MessagingRequestError description(String description) { - this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } @@ -207,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 @@ -263,7 +257,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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 9905efdd..bbaa6394 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * MfaForbiddenRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MfaForbiddenRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -60,21 +58,19 @@ public MfaForbiddenRequestError() { } public MfaForbiddenRequestError message(String message) { - this.message = message; return this; } - /** + /** * The message containing the reason behind the request being forbidden. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } @@ -177,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 @@ -223,7 +219,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -262,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 84b45f8a..bd89a5f3 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * MfaRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MfaRequestError { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -64,42 +62,38 @@ public MfaRequestError() { } public MfaRequestError error(String error) { - this.error = error; return this; } - /** + /** * A message describing the error with your request. * @return error - **/ + */ @javax.annotation.Nullable public String getError() { return error; } - public void setError(String error) { this.error = error; } public MfaRequestError requestId(String requestId) { - this.requestId = requestId; return this; } - /** + /** * The associated requestId from AWS. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; } - public void setRequestId(String requestId) { this.requestId = requestId; } @@ -205,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 @@ -254,7 +248,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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 67320cae..66dd0acb 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * MfaUnauthorizedRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class MfaUnauthorizedRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -60,21 +58,19 @@ public MfaUnauthorizedRequestError() { } public MfaUnauthorizedRequestError message(String message) { - this.message = message; return this; } - /** + /** * Unauthorized * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } @@ -177,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 @@ -223,7 +219,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -262,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 a1c5d8fc..3cb89cd6 100644 --- a/src/main/java/com/bandwidth/sdk/model/PageInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/PageInfo.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * PageInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class PageInfo { public static final String SERIALIZED_NAME_PREV_PAGE = "prevPage"; @SerializedName(SERIALIZED_NAME_PREV_PAGE) @@ -72,84 +70,76 @@ public PageInfo() { } public PageInfo prevPage(String prevPage) { - this.prevPage = prevPage; return this; } - /** + /** * The link to the previous page for pagination. * @return prevPage - **/ + */ @javax.annotation.Nullable public String getPrevPage() { return prevPage; } - public void setPrevPage(String prevPage) { this.prevPage = prevPage; } public PageInfo nextPage(String nextPage) { - this.nextPage = nextPage; return this; } - /** + /** * The link to the next page for pagination. * @return nextPage - **/ + */ @javax.annotation.Nullable public String getNextPage() { return nextPage; } - public void setNextPage(String nextPage) { this.nextPage = nextPage; } public PageInfo prevPageToken(String prevPageToken) { - this.prevPageToken = prevPageToken; return this; } - /** + /** * The isolated pagination token for the previous page. * @return prevPageToken - **/ + */ @javax.annotation.Nullable public String getPrevPageToken() { return prevPageToken; } - public void setPrevPageToken(String prevPageToken) { this.prevPageToken = prevPageToken; } public PageInfo nextPageToken(String nextPageToken) { - this.nextPageToken = nextPageToken; return this; } - /** + /** * The isolated pagination token for the next page. * @return nextPageToken - **/ + */ @javax.annotation.Nullable public String getNextPageToken() { return nextPageToken; } - public void setNextPageToken(String nextPageToken) { this.nextPageToken = nextPageToken; } @@ -261,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 @@ -316,7 +306,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -355,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/PriorityEnum.java b/src/main/java/com/bandwidth/sdk/model/PriorityEnum.java index 6200bb49..75f872e1 100644 --- a/src/main/java/com/bandwidth/sdk/model/PriorityEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/PriorityEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public PriorityEnum read(final JsonReader jsonReader) throws IOException { return PriorityEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + PriorityEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java index 65d8f7ec..4b3b196b 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java @@ -42,12 +42,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class RecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -149,462 +147,418 @@ public RecordingAvailableCallback() { } public RecordingAvailableCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public RecordingAvailableCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public RecordingAvailableCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public RecordingAvailableCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public RecordingAvailableCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public RecordingAvailableCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public RecordingAvailableCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public RecordingAvailableCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public RecordingAvailableCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public RecordingAvailableCallback parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public RecordingAvailableCallback recordingId(String recordingId) { - this.recordingId = recordingId; return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public RecordingAvailableCallback mediaUrl(URI mediaUrl) { - this.mediaUrl = 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; } - public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public RecordingAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public RecordingAvailableCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public RecordingAvailableCallback endTime(OffsetDateTime endTime) { - this.endTime = endTime; return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public RecordingAvailableCallback duration(String duration) { - this.duration = duration; return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; } - public void setDuration(String duration) { this.duration = duration; } public RecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { - this.fileFormat = fileFormat; return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public RecordingAvailableCallback channels(Integer channels) { - this.channels = 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; } - public void setChannels(Integer channels) { this.channels = channels; } public RecordingAvailableCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public RecordingAvailableCallback status(String status) { - this.status = 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; } - public void setStatus(String status) { this.status = status; } public RecordingAvailableCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public RecordingAvailableCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -781,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 @@ -809,6 +763,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -827,6 +785,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } + // validate the optional field `fileFormat` + if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { + FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); + } if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } @@ -869,7 +831,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -908,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 f91683b8..1482039e 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java @@ -42,12 +42,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -55,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class RecordingCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -149,462 +147,418 @@ public RecordingCompleteCallback() { } public RecordingCompleteCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public RecordingCompleteCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public RecordingCompleteCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public RecordingCompleteCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public RecordingCompleteCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public RecordingCompleteCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public RecordingCompleteCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public RecordingCompleteCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public RecordingCompleteCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public RecordingCompleteCallback parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public RecordingCompleteCallback recordingId(String recordingId) { - this.recordingId = recordingId; return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public RecordingCompleteCallback mediaUrl(URI mediaUrl) { - this.mediaUrl = 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; } - public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public RecordingCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public RecordingCompleteCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public RecordingCompleteCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public RecordingCompleteCallback endTime(OffsetDateTime endTime) { - this.endTime = endTime; return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public RecordingCompleteCallback duration(String duration) { - this.duration = duration; return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; } - public void setDuration(String duration) { this.duration = duration; } public RecordingCompleteCallback fileFormat(FileFormatEnum fileFormat) { - this.fileFormat = fileFormat; return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public RecordingCompleteCallback channels(Integer channels) { - this.channels = 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; } - public void setChannels(Integer channels) { this.channels = channels; } public RecordingCompleteCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public RecordingCompleteCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public RecordingCompleteCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -781,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 @@ -809,6 +763,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -827,6 +785,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } + // validate the optional field `fileFormat` + if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { + FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); + } if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } @@ -866,7 +828,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -905,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/RecordingStateEnum.java b/src/main/java/com/bandwidth/sdk/model/RecordingStateEnum.java index 9e32ec07..ff3d9507 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingStateEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingStateEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public RecordingStateEnum read(final JsonReader jsonReader) throws IOException { return RecordingStateEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + RecordingStateEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java index 028bc54e..afae64a5 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java @@ -39,12 +39,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -52,7 +50,7 @@ /** * If the recording was transcribed, metadata about the transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class RecordingTranscriptionMetadata { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -74,84 +72,76 @@ public RecordingTranscriptionMetadata() { } public RecordingTranscriptionMetadata id(String id) { - this.id = id; return this; } - /** + /** * The unique transcription ID * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; } - public void setId(String id) { this.id = id; } public RecordingTranscriptionMetadata status(String status) { - this.status = 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; } - public void setStatus(String status) { this.status = status; } public RecordingTranscriptionMetadata completedTime(OffsetDateTime completedTime) { - this.completedTime = completedTime; return this; } - /** + /** * The time that the transcription was completed * @return completedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCompletedTime() { return completedTime; } - public void setCompletedTime(OffsetDateTime completedTime) { this.completedTime = completedTime; } public RecordingTranscriptionMetadata url(URI url) { - this.url = url; return this; } - /** + /** * The URL of the [transcription](#operation/getCallTranscription) * @return url - **/ + */ @javax.annotation.Nullable public URI getUrl() { return url; } - public void setUrl(URI url) { this.url = url; } @@ -263,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 @@ -315,7 +305,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -354,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 3d66395c..c09377bc 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java @@ -40,12 +40,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,17 +51,16 @@ /** * RecordingTranscriptions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class RecordingTranscriptions { public static final String SERIALIZED_NAME_TRANSCRIPTS = "transcripts"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTS) - private List transcripts; + private List transcripts = new ArrayList<>(); public RecordingTranscriptions() { } public RecordingTranscriptions transcripts(List transcripts) { - this.transcripts = transcripts; return this; } @@ -76,16 +73,15 @@ public RecordingTranscriptions addTranscriptsItem(Transcription transcriptsItem) return this; } - /** + /** * Get transcripts * @return transcripts - **/ + */ @javax.annotation.Nullable public List getTranscripts() { return transcripts; } - public void setTranscripts(List transcripts) { this.transcripts = transcripts; } @@ -188,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 @@ -245,7 +241,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -284,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 1ea3efdc..4b45963c 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class RedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -124,336 +122,304 @@ public RedirectCallback() { } public RedirectCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public RedirectCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public RedirectCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public RedirectCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public RedirectCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public RedirectCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public RedirectCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public RedirectCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public RedirectCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public RedirectCallback parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public RedirectCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public RedirectCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public RedirectCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public RedirectCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public RedirectCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public RedirectCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -612,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 @@ -640,6 +606,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -688,7 +658,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -727,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/RedirectMethodEnum.java b/src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java index 18c26b22..ef3d6bfd 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public RedirectMethodEnum read(final JsonReader jsonReader) throws IOException { return RedirectMethodEnum.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + RedirectMethodEnum.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/Region.java b/src/main/java/com/bandwidth/sdk/model/Region.java index 10abfe32..46a538a3 100644 --- a/src/main/java/com/bandwidth/sdk/model/Region.java +++ b/src/main/java/com/bandwidth/sdk/model/Region.java @@ -18,6 +18,7 @@ import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -68,5 +69,10 @@ public Region read(final JsonReader jsonReader) throws IOException { return Region.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + Region.fromValue(value); + } } diff --git a/src/main/java/com/bandwidth/sdk/model/StirShaken.java b/src/main/java/com/bandwidth/sdk/model/StirShaken.java index 37f2ed35..7baea815 100644 --- a/src/main/java/com/bandwidth/sdk/model/StirShaken.java +++ b/src/main/java/com/bandwidth/sdk/model/StirShaken.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * StirShaken */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class StirShaken { public static final String SERIALIZED_NAME_VERSTAT = "verstat"; @SerializedName(SERIALIZED_NAME_VERSTAT) @@ -68,63 +66,57 @@ public StirShaken() { } public StirShaken verstat(String verstat) { - this.verstat = 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; } - public void setVerstat(String verstat) { this.verstat = verstat; } public StirShaken attestationIndicator(String attestationIndicator) { - this.attestationIndicator = 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; } - public void setAttestationIndicator(String attestationIndicator) { this.attestationIndicator = attestationIndicator; } public StirShaken originatingId(String originatingId) { - this.originatingId = originatingId; return this; } - /** + /** * (optional) A unique origination identifier. * @return originatingId - **/ + */ @javax.annotation.Nullable public String getOriginatingId() { return originatingId; } - public void setOriginatingId(String originatingId) { this.originatingId = originatingId; } @@ -233,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 @@ -285,7 +277,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -324,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 6964e4d8..d34aabd4 100644 --- a/src/main/java/com/bandwidth/sdk/model/Tag.java +++ b/src/main/java/com/bandwidth/sdk/model/Tag.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * Tag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class Tag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -64,42 +62,38 @@ public Tag() { } public Tag key(String key) { - this.key = key; return this; } - /** + /** * Get key * @return key - **/ + */ @javax.annotation.Nullable public String getKey() { return key; } - public void setKey(String key) { this.key = key; } public Tag value(String value) { - this.value = value; return this; } - /** + /** * Get value * @return value - **/ + */ @javax.annotation.Nullable public String getValue() { return value; } - public void setValue(String value) { this.value = value; } @@ -205,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 @@ -254,7 +248,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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 1cfa0ab4..d7ff7324 100644 --- a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * TnLookupRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class TnLookupRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -60,21 +58,19 @@ public TnLookupRequestError() { } public TnLookupRequestError message(String message) { - this.message = message; return this; } - /** + /** * A description of what validation error occurred. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } @@ -177,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 @@ -223,7 +219,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -262,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 f5680890..f3eba021 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java @@ -40,12 +40,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +51,7 @@ /** * TranscribeRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class TranscribeRecording { public static final String SERIALIZED_NAME_CALLBACK_URL = "callbackUrl"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) @@ -87,149 +85,135 @@ public TranscribeRecording() { } public TranscribeRecording callbackUrl(URI callbackUrl) { - this.callbackUrl = 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; } - public void setCallbackUrl(URI callbackUrl) { this.callbackUrl = callbackUrl; } public TranscribeRecording callbackMethod(CallbackMethodEnum callbackMethod) { - this.callbackMethod = callbackMethod; return this; } - /** + /** * Get callbackMethod * @return callbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getCallbackMethod() { return callbackMethod; } - public void setCallbackMethod(CallbackMethodEnum callbackMethod) { this.callbackMethod = callbackMethod; } public TranscribeRecording username(String username) { - this.username = username; return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public TranscribeRecording password(String password) { - this.password = password; return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; } - public void setPassword(String password) { this.password = password; } public TranscribeRecording tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public TranscribeRecording callbackTimeout(Double callbackTimeout) { - this.callbackTimeout = 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; } - public void setCallbackTimeout(Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } public TranscribeRecording detectLanguage(Boolean detectLanguage) { - this.detectLanguage = 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; } - public void setDetectLanguage(Boolean detectLanguage) { this.detectLanguage = detectLanguage; } @@ -361,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 @@ -377,6 +361,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("callbackUrl") != null && !jsonObj.get("callbackUrl").isJsonNull()) && !jsonObj.get("callbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callbackUrl").toString())); } + // validate the optional field `callbackMethod` + if (jsonObj.get("callbackMethod") != null && !jsonObj.get("callbackMethod").isJsonNull()) { + CallbackMethodEnum.validateJsonElement(jsonObj.get("callbackMethod")); + } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -416,7 +404,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -455,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 dc3f1c32..a99672e9 100644 --- a/src/main/java/com/bandwidth/sdk/model/Transcription.java +++ b/src/main/java/com/bandwidth/sdk/model/Transcription.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * Transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class Transcription { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -64,42 +62,38 @@ public Transcription() { } public Transcription text(String text) { - this.text = text; return this; } - /** + /** * The transcribed text * @return text - **/ + */ @javax.annotation.Nullable public String getText() { return text; } - public void setText(String text) { this.text = text; } public Transcription confidence(Double confidence) { - this.confidence = 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; } - public void setConfidence(Double confidence) { this.confidence = confidence; } @@ -205,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 @@ -251,7 +245,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -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 467d85e0..30acbb65 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java @@ -43,12 +43,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -56,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class TranscriptionAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -146,441 +144,399 @@ public TranscriptionAvailableCallback() { } public TranscriptionAvailableCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public TranscriptionAvailableCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public TranscriptionAvailableCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public TranscriptionAvailableCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public TranscriptionAvailableCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public TranscriptionAvailableCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public TranscriptionAvailableCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public TranscriptionAvailableCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public TranscriptionAvailableCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public TranscriptionAvailableCallback mediaUrl(URI mediaUrl) { - this.mediaUrl = 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; } - public void setMediaUrl(URI mediaUrl) { this.mediaUrl = mediaUrl; } public TranscriptionAvailableCallback parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public TranscriptionAvailableCallback recordingId(String recordingId) { - this.recordingId = recordingId; return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { this.recordingId = recordingId; } public TranscriptionAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public TranscriptionAvailableCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public TranscriptionAvailableCallback endTime(OffsetDateTime endTime) { - this.endTime = endTime; return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public TranscriptionAvailableCallback duration(String duration) { - this.duration = duration; return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; } - public void setDuration(String duration) { this.duration = duration; } public TranscriptionAvailableCallback fileFormat(FileFormatEnum fileFormat) { - this.fileFormat = fileFormat; return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } public TranscriptionAvailableCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public TranscriptionAvailableCallback transcription(Transcription transcription) { - this.transcription = transcription; return this; } - /** + /** * Get transcription * @return transcription - **/ + */ @javax.annotation.Nullable public Transcription getTranscription() { return transcription; } - public void setTranscription(Transcription transcription) { this.transcription = transcription; } public TranscriptionAvailableCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public TranscriptionAvailableCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -754,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 @@ -782,6 +738,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -800,6 +760,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } + // validate the optional field `fileFormat` + if (jsonObj.get("fileFormat") != null && !jsonObj.get("fileFormat").isJsonNull()) { + FileFormatEnum.validateJsonElement(jsonObj.get("fileFormat")); + } if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); } @@ -843,7 +807,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -882,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 8211e368..ec82efab 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class TransferAnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -120,315 +118,285 @@ public TransferAnswerCallback() { } public TransferAnswerCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public TransferAnswerCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public TransferAnswerCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public TransferAnswerCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public TransferAnswerCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public TransferAnswerCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public TransferAnswerCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public TransferAnswerCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public TransferAnswerCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public TransferAnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public TransferAnswerCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public TransferAnswerCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public TransferAnswerCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public TransferAnswerCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public TransferAnswerCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } @@ -584,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 @@ -612,6 +580,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -657,7 +629,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -696,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 d394b1e9..580a9708 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class TransferCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -132,378 +130,342 @@ public TransferCompleteCallback() { } public TransferCompleteCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public TransferCompleteCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public TransferCompleteCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public TransferCompleteCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public TransferCompleteCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public TransferCompleteCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public TransferCompleteCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public TransferCompleteCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public TransferCompleteCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public TransferCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public TransferCompleteCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public TransferCompleteCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public TransferCompleteCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public TransferCompleteCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public TransferCompleteCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public TransferCompleteCallback cause(String cause) { - this.cause = 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; } - public void setCause(String cause) { this.cause = cause; } public TransferCompleteCallback errorMessage(String errorMessage) { - this.errorMessage = 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; } - public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public TransferCompleteCallback errorId(String errorId) { - this.errorId = errorId; return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { this.errorId = errorId; } @@ -668,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 @@ -696,6 +658,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -750,7 +716,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -789,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 aa2ad876..20e7149b 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,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") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class TransferDisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -140,420 +138,380 @@ public TransferDisconnectCallback() { } public TransferDisconnectCallback eventType(String eventType) { - this.eventType = 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; } - public void setEventType(String eventType) { this.eventType = eventType; } public TransferDisconnectCallback eventTime(OffsetDateTime eventTime) { - this.eventTime = 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; } - public void setEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; } public TransferDisconnectCallback accountId(String accountId) { - this.accountId = accountId; return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { this.accountId = accountId; } public TransferDisconnectCallback applicationId(String applicationId) { - this.applicationId = applicationId; return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { this.applicationId = applicationId; } public TransferDisconnectCallback from(String from) { - this.from = 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; } - public void setFrom(String from) { this.from = from; } public TransferDisconnectCallback to(String to) { - this.to = 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; } - public void setTo(String to) { this.to = to; } public TransferDisconnectCallback direction(CallDirectionEnum direction) { - this.direction = direction; return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { this.direction = direction; } public TransferDisconnectCallback callId(String callId) { - this.callId = callId; return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } public TransferDisconnectCallback callUrl(URI callUrl) { - this.callUrl = callUrl; return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { this.callUrl = callUrl; } public TransferDisconnectCallback parentCallId(String parentCallId) { - this.parentCallId = 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; } - public void setParentCallId(String parentCallId) { this.parentCallId = parentCallId; } public TransferDisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { - this.enqueuedTime = 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; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } public TransferDisconnectCallback startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public TransferDisconnectCallback answerTime(OffsetDateTime answerTime) { - this.answerTime = answerTime; return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { this.answerTime = answerTime; } public TransferDisconnectCallback endTime(OffsetDateTime endTime) { - this.endTime = endTime; return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { this.endTime = endTime; } public TransferDisconnectCallback tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } public TransferDisconnectCallback transferCallerId(String transferCallerId) { - this.transferCallerId = 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; } - public void setTransferCallerId(String transferCallerId) { this.transferCallerId = transferCallerId; } public TransferDisconnectCallback transferTo(String transferTo) { - this.transferTo = 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; } - public void setTransferTo(String transferTo) { this.transferTo = transferTo; } public TransferDisconnectCallback cause(String cause) { - this.cause = 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; } - public void setCause(String cause) { this.cause = cause; } public TransferDisconnectCallback errorMessage(String errorMessage) { - this.errorMessage = 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; } - public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } public TransferDisconnectCallback errorId(String errorId) { - this.errorId = errorId; return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { this.errorId = errorId; } @@ -724,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 @@ -752,6 +710,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); } @@ -809,7 +771,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -848,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 c367471e..08abb6b4 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +52,7 @@ /** * UpdateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class UpdateCall { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -100,210 +98,190 @@ public UpdateCall() { } public UpdateCall state(CallStateEnum state) { - this.state = state; return this; } - /** + /** * Get state * @return state - **/ + */ @javax.annotation.Nullable public CallStateEnum getState() { return state; } - public void setState(CallStateEnum state) { this.state = state; } public UpdateCall redirectUrl(URI redirectUrl) { - this.redirectUrl = 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; } - public void setRedirectUrl(URI redirectUrl) { this.redirectUrl = redirectUrl; } public UpdateCall redirectMethod(RedirectMethodEnum redirectMethod) { - this.redirectMethod = redirectMethod; return this; } - /** + /** * Get redirectMethod * @return redirectMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectMethod() { return redirectMethod; } - public void setRedirectMethod(RedirectMethodEnum redirectMethod) { this.redirectMethod = redirectMethod; } public UpdateCall username(String username) { - this.username = username; return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public UpdateCall password(String password) { - this.password = password; return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; } - public void setPassword(String password) { this.password = password; } public UpdateCall redirectFallbackUrl(URI redirectFallbackUrl) { - this.redirectFallbackUrl = 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; } - public void setRedirectFallbackUrl(URI redirectFallbackUrl) { this.redirectFallbackUrl = redirectFallbackUrl; } public UpdateCall redirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { - this.redirectFallbackMethod = redirectFallbackMethod; return this; } - /** + /** * Get redirectFallbackMethod * @return redirectFallbackMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; } - public void setRedirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { this.redirectFallbackMethod = redirectFallbackMethod; } public UpdateCall fallbackUsername(String fallbackUsername) { - this.fallbackUsername = fallbackUsername; return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public UpdateCall fallbackPassword(String fallbackPassword) { - this.fallbackPassword = fallbackPassword; return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } public UpdateCall tag(String tag) { - this.tag = 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; } - public void setTag(String tag) { this.tag = tag; } @@ -444,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 @@ -457,9 +435,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `state` + if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { + CallStateEnum.validateJsonElement(jsonObj.get("state")); + } if ((jsonObj.get("redirectUrl") != null && !jsonObj.get("redirectUrl").isJsonNull()) && !jsonObj.get("redirectUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `redirectUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redirectUrl").toString())); } + // validate the optional field `redirectMethod` + if (jsonObj.get("redirectMethod") != null && !jsonObj.get("redirectMethod").isJsonNull()) { + RedirectMethodEnum.validateJsonElement(jsonObj.get("redirectMethod")); + } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -469,6 +455,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("redirectFallbackUrl") != null && !jsonObj.get("redirectFallbackUrl").isJsonNull()) && !jsonObj.get("redirectFallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `redirectFallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redirectFallbackUrl").toString())); } + // validate the optional field `redirectFallbackMethod` + if (jsonObj.get("redirectFallbackMethod") != null && !jsonObj.get("redirectFallbackMethod").isJsonNull()) { + RedirectMethodEnum.validateJsonElement(jsonObj.get("redirectFallbackMethod")); + } if ((jsonObj.get("fallbackUsername") != null && !jsonObj.get("fallbackUsername").isJsonNull()) && !jsonObj.get("fallbackUsername").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUsername").toString())); } @@ -508,7 +498,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -547,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 90e9148f..fa9d3621 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java @@ -38,12 +38,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +49,7 @@ /** * UpdateCallRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class UpdateCallRecording { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -61,21 +59,19 @@ public UpdateCallRecording() { } public UpdateCallRecording state(RecordingStateEnum state) { - this.state = state; return this; } - /** + /** * Get state * @return state - **/ + */ @javax.annotation.Nonnull public RecordingStateEnum getState() { return state; } - public void setState(RecordingStateEnum state) { this.state = state; } @@ -179,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 @@ -199,6 +195,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `state` + RecordingStateEnum.validateJsonElement(jsonObj.get("state")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -229,7 +227,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -268,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 afa2ae1c..513093a1 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java @@ -41,12 +41,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -54,7 +52,7 @@ /** * UpdateConference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class UpdateConference { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -96,189 +94,171 @@ public UpdateConference() { } public UpdateConference status(ConferenceStateEnum status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public ConferenceStateEnum getStatus() { return status; } - public void setStatus(ConferenceStateEnum status) { this.status = status; } public UpdateConference redirectUrl(URI redirectUrl) { - this.redirectUrl = 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; } - public void setRedirectUrl(URI redirectUrl) { this.redirectUrl = redirectUrl; } public UpdateConference redirectMethod(RedirectMethodEnum redirectMethod) { - this.redirectMethod = redirectMethod; return this; } - /** + /** * Get redirectMethod * @return redirectMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectMethod() { return redirectMethod; } - public void setRedirectMethod(RedirectMethodEnum redirectMethod) { this.redirectMethod = redirectMethod; } public UpdateConference username(String username) { - this.username = username; return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public UpdateConference password(String password) { - this.password = password; return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; } - public void setPassword(String password) { this.password = password; } public UpdateConference redirectFallbackUrl(URI redirectFallbackUrl) { - this.redirectFallbackUrl = 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; } - public void setRedirectFallbackUrl(URI redirectFallbackUrl) { this.redirectFallbackUrl = redirectFallbackUrl; } public UpdateConference redirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { - this.redirectFallbackMethod = redirectFallbackMethod; return this; } - /** + /** * Get redirectFallbackMethod * @return redirectFallbackMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; } - public void setRedirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { this.redirectFallbackMethod = redirectFallbackMethod; } public UpdateConference fallbackUsername(String fallbackUsername) { - this.fallbackUsername = fallbackUsername; return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { this.fallbackUsername = fallbackUsername; } public UpdateConference fallbackPassword(String fallbackPassword) { - this.fallbackPassword = fallbackPassword; return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { this.fallbackPassword = fallbackPassword; } @@ -416,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 @@ -429,9 +409,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + ConferenceStateEnum.validateJsonElement(jsonObj.get("status")); + } if ((jsonObj.get("redirectUrl") != null && !jsonObj.get("redirectUrl").isJsonNull()) && !jsonObj.get("redirectUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `redirectUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redirectUrl").toString())); } + // validate the optional field `redirectMethod` + if (jsonObj.get("redirectMethod") != null && !jsonObj.get("redirectMethod").isJsonNull()) { + RedirectMethodEnum.validateJsonElement(jsonObj.get("redirectMethod")); + } if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } @@ -441,6 +429,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("redirectFallbackUrl") != null && !jsonObj.get("redirectFallbackUrl").isJsonNull()) && !jsonObj.get("redirectFallbackUrl").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `redirectFallbackUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("redirectFallbackUrl").toString())); } + // validate the optional field `redirectFallbackMethod` + if (jsonObj.get("redirectFallbackMethod") != null && !jsonObj.get("redirectFallbackMethod").isJsonNull()) { + RedirectMethodEnum.validateJsonElement(jsonObj.get("redirectFallbackMethod")); + } if ((jsonObj.get("fallbackUsername") != null && !jsonObj.get("fallbackUsername").isJsonNull()) && !jsonObj.get("fallbackUsername").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fallbackUsername` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fallbackUsername").toString())); } @@ -477,7 +469,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -516,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 00cffd4f..e48f5d0c 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java @@ -40,12 +40,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -53,7 +51,7 @@ /** * UpdateConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class UpdateConferenceMember { public static final String SERIALIZED_NAME_MUTE = "mute"; @SerializedName(SERIALIZED_NAME_MUTE) @@ -71,49 +69,44 @@ public UpdateConferenceMember() { } public UpdateConferenceMember mute(Boolean mute) { - this.mute = 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; } - public void setMute(Boolean mute) { this.mute = mute; } public UpdateConferenceMember hold(Boolean hold) { - this.hold = 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; } - public void setHold(Boolean hold) { this.hold = hold; } public UpdateConferenceMember callIdsToCoach(List callIdsToCoach) { - this.callIdsToCoach = callIdsToCoach; return this; } @@ -126,16 +119,15 @@ 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; } - public void setCallIdsToCoach(List callIdsToCoach) { this.callIdsToCoach = callIdsToCoach; } @@ -255,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 @@ -302,7 +294,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -341,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 87c6d224..199065c5 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java @@ -38,12 +38,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +49,7 @@ /** * VerifyCodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class VerifyCodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -73,86 +71,78 @@ public VerifyCodeRequest() { } public VerifyCodeRequest to(String to) { - this.to = to; return this; } - /** + /** * The phone number to send the mfa code to. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; } - public void setTo(String to) { this.to = to; } public VerifyCodeRequest scope(String scope) { - this.scope = 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; } - public void setScope(String scope) { this.scope = scope; } public VerifyCodeRequest expirationTimeInMinutes(BigDecimal expirationTimeInMinutes) { - this.expirationTimeInMinutes = expirationTimeInMinutes; 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; } - public void setExpirationTimeInMinutes(BigDecimal expirationTimeInMinutes) { this.expirationTimeInMinutes = expirationTimeInMinutes; } public VerifyCodeRequest code(String code) { - this.code = code; return this; } - /** + /** * The generated mfa code to check if valid. * @return code - **/ + */ @javax.annotation.Nonnull public String getCode() { return code; } - public void setCode(String code) { this.code = code; } @@ -267,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 @@ -326,7 +316,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -365,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 595c8057..8d48ef17 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * VerifyCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class VerifyCodeResponse { public static final String SERIALIZED_NAME_VALID = "valid"; @SerializedName(SERIALIZED_NAME_VALID) @@ -60,21 +58,19 @@ public VerifyCodeResponse() { } public VerifyCodeResponse valid(Boolean valid) { - this.valid = valid; return this; } - /** + /** * Whether or not the supplied code is valid. * @return valid - **/ + */ @javax.annotation.Nullable public Boolean getValid() { return valid; } - public void setValid(Boolean valid) { this.valid = valid; } @@ -177,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 @@ -220,7 +216,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -259,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 905ebfcd..4c8aa0b9 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java @@ -38,12 +38,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -51,7 +49,7 @@ /** * VoiceApiError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class VoiceApiError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -69,63 +67,57 @@ public VoiceApiError() { } public VoiceApiError type(String type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nullable public String getType() { return type; } - public void setType(String type) { this.type = type; } public VoiceApiError description(String description) { - this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nullable public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public VoiceApiError id(String id) { - this.id = id; return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; } - public void setId(String id) { this.id = id; } @@ -245,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 @@ -297,7 +289,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -336,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 e63e8932..17e4ced7 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java @@ -37,12 +37,10 @@ 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; import java.util.Map; -import java.util.Map.Entry; import java.util.Set; import com.bandwidth.sdk.JSON; @@ -50,7 +48,7 @@ /** * VoiceCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class VoiceCodeResponse { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -60,21 +58,19 @@ public VoiceCodeResponse() { } public VoiceCodeResponse callId(String callId) { - this.callId = callId; return this; } - /** + /** * Programmable Voice API Call ID. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; } - public void setCallId(String callId) { this.callId = callId; } @@ -177,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 @@ -223,7 +219,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -262,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); } From cc1c78ec214ec0cbf85762d7482cff5d50cdec7e Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 27 Aug 2024 10:36:19 -0400 Subject: [PATCH 3/5] 7.8.0 --- openapitools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapitools.json b/openapitools.json index f80faaa6..2f4612ce 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.9.0" + "version": "7.8.0" } } From 9cff9a452b369256cdc64847a9ece1df93382bf1 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 27 Aug 2024 10:36:30 -0400 Subject: [PATCH 4/5] remove unnecessary tests --- .openapi-generator-ignore | 1 + .../com/bandwidth/sdk/api/CallsApiTest.java | 121 ---------- .../bandwidth/sdk/api/ConferencesApiTest.java | 186 --------------- .../com/bandwidth/sdk/api/MediaApiTest.java | 99 -------- .../bandwidth/sdk/api/MessagesApiTest.java | 87 ------- .../com/bandwidth/sdk/api/MfaApiTest.java | 86 ------- .../sdk/api/PhoneNumberLookupApiTest.java | 67 ------ .../bandwidth/sdk/api/RecordingsApiTest.java | 201 ---------------- .../bandwidth/sdk/api/StatisticsApiTest.java | 49 ---- .../sdk/api/TranscriptionsApiTest.java | 83 ------- .../sdk/model/AccountStatisticsTest.java | 56 ----- .../sdk/model/AnswerCallbackTest.java | 157 ------------- .../sdk/model/BridgeCompleteCallbackTest.java | 172 -------------- .../BridgeTargetCompleteCallbackTest.java | 148 ------------ .../sdk/model/CallDirectionEnumTest.java | 32 --- .../sdk/model/CallRecordingMetadataTest.java | 198 ---------------- .../sdk/model/CallStateEnumTest.java | 32 --- .../bandwidth/sdk/model/CallStateTest.java | 189 --------------- ...TranscriptionDetectedLanguageEnumTest.java | 32 --- .../model/CallTranscriptionMetadataTest.java | 64 ----- .../model/CallTranscriptionResponseTest.java | 75 ------ .../sdk/model/CallTranscriptionTest.java | 74 ------ .../model/CallTranscriptionTrackEnumTest.java | 32 --- .../sdk/model/CallbackMethodEnumTest.java | 32 --- .../bandwidth/sdk/model/CodeRequestTest.java | 88 ------- .../ConferenceCompletedCallbackTest.java | 82 ------- .../model/ConferenceCreatedCallbackTest.java | 82 ------- .../ConferenceMemberExitCallbackTest.java | 106 --------- .../ConferenceMemberJoinCallbackTest.java | 106 --------- .../sdk/model/ConferenceMemberTest.java | 92 -------- ...ferenceRecordingAvailableCallbackTest.java | 156 ------------- .../ConferenceRecordingMetadataTest.java | 140 ----------- .../model/ConferenceRedirectCallbackTest.java | 82 ------- .../sdk/model/ConferenceStateEnumTest.java | 32 --- .../bandwidth/sdk/model/ConferenceTest.java | 111 --------- .../sdk/model/CreateCallResponseTest.java | 212 ----------------- .../bandwidth/sdk/model/CreateCallTest.java | 212 ----------------- .../sdk/model/CreateLookupResponseTest.java | 57 ----- .../model/CreateMessageRequestErrorTest.java | 67 ------ .../sdk/model/DeferredResultTest.java | 56 ----- .../sdk/model/DisconnectCallbackTest.java | 180 -------------- .../bandwidth/sdk/model/DiversionTest.java | 96 -------- .../bandwidth/sdk/model/DtmfCallbackTest.java | 180 -------------- .../bandwidth/sdk/model/FieldErrorTest.java | 56 ----- .../sdk/model/FileFormatEnumTest.java | 32 --- .../sdk/model/GatherCallbackTest.java | 188 --------------- .../InboundMessageCallbackMessageTest.java | 144 ------------ .../sdk/model/InboundMessageCallbackTest.java | 82 ------- .../sdk/model/InitiateCallbackTest.java | 141 ----------- .../model/ListMessageDirectionEnumTest.java | 32 --- .../sdk/model/ListMessageItemTest.java | 181 -------------- .../sdk/model/LookupRequestTest.java | 50 ---- .../bandwidth/sdk/model/LookupResultTest.java | 112 --------- .../sdk/model/LookupStatusEnumTest.java | 32 --- .../bandwidth/sdk/model/LookupStatusTest.java | 76 ------ .../MachineDetectionCompleteCallbackTest.java | 157 ------------- .../MachineDetectionConfigurationTest.java | 164 ------------- .../model/MachineDetectionModeEnumTest.java | 32 --- .../sdk/model/MachineDetectionResultTest.java | 56 ----- .../com/bandwidth/sdk/model/MediaTest.java | 64 ----- .../MessageDeliveredCallbackMessageTest.java | 144 ------------ .../model/MessageDeliveredCallbackTest.java | 82 ------- .../sdk/model/MessageDirectionEnumTest.java | 32 --- .../MessageFailedCallbackMessageTest.java | 144 ------------ .../sdk/model/MessageFailedCallbackTest.java | 90 ------- .../sdk/model/MessageRequestTest.java | 111 --------- .../MessageSendingCallbackMessageTest.java | 144 ------------ .../sdk/model/MessageSendingCallbackTest.java | 82 ------- .../sdk/model/MessageStatusEnumTest.java | 32 --- .../com/bandwidth/sdk/model/MessageTest.java | 149 ------------ .../sdk/model/MessageTypeEnumTest.java | 32 --- .../bandwidth/sdk/model/MessagesListTest.java | 68 ------ .../sdk/model/MessagingCodeResponseTest.java | 48 ---- .../sdk/model/MessagingRequestErrorTest.java | 56 ----- .../model/MfaForbiddenRequestErrorTest.java | 48 ---- .../sdk/model/MfaRequestErrorTest.java | 56 ----- .../MfaUnauthorizedRequestErrorTest.java | 48 ---- .../com/bandwidth/sdk/model/PageInfoTest.java | 72 ------ .../bandwidth/sdk/model/PriorityEnumTest.java | 32 --- .../model/RecordingAvailableCallbackTest.java | 221 ------------------ .../model/RecordingCompleteCallbackTest.java | 221 ------------------ .../sdk/model/RecordingStateEnumTest.java | 32 --- .../RecordingTranscriptionMetadataTest.java | 74 ------ .../model/RecordingTranscriptionsTest.java | 51 ---- .../sdk/model/RedirectCallbackTest.java | 172 -------------- .../sdk/model/RedirectMethodEnumTest.java | 32 --- .../com/bandwidth/sdk/model/RegionTest.java | 32 --- .../bandwidth/sdk/model/StirShakenTest.java | 64 ----- .../java/com/bandwidth/sdk/model/TagTest.java | 56 ----- .../sdk/model/TnLookupRequestErrorTest.java | 48 ---- .../sdk/model/TranscribeRecordingTest.java | 99 -------- .../TranscriptionAvailableCallbackTest.java | 214 ----------------- .../sdk/model/TranscriptionTest.java | 56 ----- .../sdk/model/TransferAnswerCallbackTest.java | 164 ------------- .../model/TransferCompleteCallbackTest.java | 188 --------------- .../model/TransferDisconnectCallbackTest.java | 204 ---------------- .../sdk/model/UpdateCallRecordingTest.java | 49 ---- .../bandwidth/sdk/model/UpdateCallTest.java | 124 ---------- .../sdk/model/UpdateConferenceMemberTest.java | 67 ------ .../sdk/model/UpdateConferenceTest.java | 116 --------- .../sdk/model/VerifyCodeRequestTest.java | 73 ------ .../sdk/model/VerifyCodeResponseTest.java | 48 ---- .../sdk/model/VoiceApiErrorTest.java | 65 ------ .../sdk/model/VoiceCodeResponseTest.java | 48 ---- 104 files changed, 1 insertion(+), 9996 deletions(-) delete mode 100644 src/test/java/com/bandwidth/sdk/api/CallsApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/api/MediaApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/api/MfaApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallStateTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ConferenceTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CreateCallTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/DiversionTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/LookupResultTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MediaTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessagesListTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/PageInfoTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/RegionTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/StirShakenTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/TagTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java delete mode 100644 src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 39f9dba2..b8192e47 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -12,6 +12,7 @@ pom.xml .idea .gitignore .github/workflows/maven.yml +src/test/ # You can match any string of characters against a directory, file or extension with a single asterisk (*): #foo/*/qux diff --git a/src/test/java/com/bandwidth/sdk/api/CallsApiTest.java b/src/test/java/com/bandwidth/sdk/api/CallsApiTest.java deleted file mode 100644 index b59fa7da..00000000 --- a/src/test/java/com/bandwidth/sdk/api/CallsApiTest.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import com.bandwidth.sdk.model.CallState; -import com.bandwidth.sdk.model.CreateCall; -import com.bandwidth.sdk.model.CreateCallResponse; -import com.bandwidth.sdk.model.UpdateCall; -import com.bandwidth.sdk.model.VoiceApiError; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for CallsApi - */ -@Disabled -public class CallsApiTest { - - private final CallsApi api = new CallsApi(); - - /** - * Create Call - * - * Creates an outbound phone call. All calls are initially queued. Your outbound calls will initiated at a specific dequeueing rate, enabling your application to \"fire and forget\" when creating calls. Queued calls may not be modified until they are dequeued and placed, but may be removed from your queue on demand. <b>Please note:</b> Calls submitted to your queue will be placed approximately in order, but exact ordering is not guaranteed. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createCallTest() throws ApiException { - String accountId = null; - CreateCall createCall = null; - CreateCallResponse response = api.createCall(accountId, createCall); - // TODO: test validations - } - - /** - * Get Call State Information - * - * Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint. **Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCallStateTest() throws ApiException { - String accountId = null; - String callId = null; - CallState response = api.getCallState(accountId, callId); - // TODO: test validations - } - - /** - * Get Calls - * - * Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of call records. Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listCallsTest() throws ApiException { - String accountId = null; - String to = null; - String from = null; - String minStartTime = null; - String maxStartTime = null; - String disconnectCause = null; - Integer pageSize = null; - String pageToken = null; - List response = api.listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken); - // TODO: test validations - } - - /** - * Update Call - * - * Interrupts and redirects a call to a different URL that should return a BXML document. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateCallTest() throws ApiException { - String accountId = null; - String callId = null; - UpdateCall updateCall = null; - api.updateCall(accountId, callId, updateCall); - // TODO: test validations - } - - /** - * Update Call BXML - * - * Interrupts and replaces an active call's BXML document. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateCallBxmlTest() throws ApiException { - String accountId = null; - String callId = null; - String body = null; - api.updateCallBxml(accountId, callId, body); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java b/src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java deleted file mode 100644 index badc8c2a..00000000 --- a/src/test/java/com/bandwidth/sdk/api/ConferencesApiTest.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import com.bandwidth.sdk.model.Conference; -import com.bandwidth.sdk.model.ConferenceMember; -import com.bandwidth.sdk.model.ConferenceRecordingMetadata; -import java.io.File; -import com.bandwidth.sdk.model.UpdateConference; -import com.bandwidth.sdk.model.UpdateConferenceMember; -import com.bandwidth.sdk.model.VoiceApiError; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for ConferencesApi - */ -@Disabled -public class ConferencesApiTest { - - private final ConferencesApi api = new ConferencesApi(); - - /** - * Download Conference Recording - * - * Downloads the specified recording file. - * - * @throws ApiException if the Api call fails - */ - @Test - public void downloadConferenceRecordingTest() throws ApiException { - String accountId = null; - String conferenceId = null; - String recordingId = null; - File response = api.downloadConferenceRecording(accountId, conferenceId, recordingId); - // TODO: test validations - } - - /** - * Get Conference Information - * - * Returns information about the specified conference. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConferenceTest() throws ApiException { - String accountId = null; - String conferenceId = null; - Conference response = api.getConference(accountId, conferenceId); - // TODO: test validations - } - - /** - * Get Conference Member - * - * Returns information about the specified conference member. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConferenceMemberTest() throws ApiException { - String accountId = null; - String conferenceId = null; - String memberId = null; - ConferenceMember response = api.getConferenceMember(accountId, conferenceId, memberId); - // TODO: test validations - } - - /** - * Get Conference Recording Information - * - * Returns metadata for the specified recording. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getConferenceRecordingTest() throws ApiException { - String accountId = null; - String conferenceId = null; - String recordingId = null; - ConferenceRecordingMetadata response = api.getConferenceRecording(accountId, conferenceId, recordingId); - // TODO: test validations - } - - /** - * Get Conference Recordings - * - * Returns a (potentially empty) list of metadata for the recordings that took place during the specified conference. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listConferenceRecordingsTest() throws ApiException { - String accountId = null; - String conferenceId = null; - List response = api.listConferenceRecordings(accountId, conferenceId); - // TODO: test validations - } - - /** - * Get Conferences - * - * Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of conference records. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listConferencesTest() throws ApiException { - String accountId = null; - String name = null; - String minCreatedTime = null; - String maxCreatedTime = null; - Integer pageSize = null; - String pageToken = null; - List response = api.listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken); - // TODO: test validations - } - - /** - * Update Conference - * - * Update the conference state. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateConferenceTest() throws ApiException { - String accountId = null; - String conferenceId = null; - UpdateConference updateConference = null; - api.updateConference(accountId, conferenceId, updateConference); - // TODO: test validations - } - - /** - * Update Conference BXML - * - * Update the conference BXML document. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateConferenceBxmlTest() throws ApiException { - String accountId = null; - String conferenceId = null; - String body = null; - api.updateConferenceBxml(accountId, conferenceId, body); - // TODO: test validations - } - - /** - * Update Conference Member - * - * Updates settings for a particular conference member. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateConferenceMemberTest() throws ApiException { - String accountId = null; - String conferenceId = null; - String memberId = null; - UpdateConferenceMember updateConferenceMember = null; - api.updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/api/MediaApiTest.java b/src/test/java/com/bandwidth/sdk/api/MediaApiTest.java deleted file mode 100644 index 50996132..00000000 --- a/src/test/java/com/bandwidth/sdk/api/MediaApiTest.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import java.io.File; -import com.bandwidth.sdk.model.Media; -import com.bandwidth.sdk.model.MessagingRequestError; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for MediaApi - */ -@Disabled -public class MediaApiTest { - - private final MediaApi api = new MediaApi(); - - /** - * Delete Media - * - * Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteMediaTest() throws ApiException { - String accountId = null; - String mediaId = null; - api.deleteMedia(accountId, mediaId); - // TODO: test validations - } - - /** - * Get Media - * - * Downloads a media file you previously uploaded. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getMediaTest() throws ApiException { - String accountId = null; - String mediaId = null; - File response = api.getMedia(accountId, mediaId); - // TODO: test validations - } - - /** - * List Media - * - * Gets a list of your media files. No query parameters are supported. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listMediaTest() throws ApiException { - String accountId = null; - String continuationToken = null; - List response = api.listMedia(accountId, continuationToken); - // TODO: test validations - } - - /** - * Upload Media - * - * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-). - * - * @throws ApiException if the Api call fails - */ - @Test - public void uploadMediaTest() throws ApiException { - String accountId = null; - String mediaId = null; - File body = null; - String contentType = null; - String cacheControl = null; - api.uploadMedia(accountId, mediaId, body, contentType, cacheControl); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java b/src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java deleted file mode 100644 index f9570693..00000000 --- a/src/test/java/com/bandwidth/sdk/api/MessagesApiTest.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import com.bandwidth.sdk.model.CreateMessageRequestError; -import com.bandwidth.sdk.model.ListMessageDirectionEnum; -import com.bandwidth.sdk.model.Message; -import com.bandwidth.sdk.model.MessageRequest; -import com.bandwidth.sdk.model.MessageStatusEnum; -import com.bandwidth.sdk.model.MessageTypeEnum; -import com.bandwidth.sdk.model.MessagesList; -import com.bandwidth.sdk.model.MessagingRequestError; -import com.bandwidth.sdk.model.Region; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for MessagesApi - */ -@Disabled -public class MessagesApiTest { - - private final MessagesApi api = new MessagesApi(); - - /** - * Create Message - * - * Endpoint for sending text messages and picture messages using V2 messaging. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createMessageTest() throws ApiException { - String accountId = null; - MessageRequest messageRequest = null; - Message response = api.createMessage(accountId, messageRequest); - // TODO: test validations - } - - /** - * List Messages - * - * Returns a list of messages based on query parameters. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listMessagesTest() throws ApiException { - String accountId = null; - String messageId = null; - String sourceTn = null; - String destinationTn = null; - MessageStatusEnum messageStatus = null; - ListMessageDirectionEnum messageDirection = null; - String carrierName = null; - MessageTypeEnum messageType = null; - Integer errorCode = null; - String fromDateTime = null; - String toDateTime = null; - String campaignId = null; - String sort = null; - String pageToken = null; - Integer limit = null; - Boolean limitTotalCount = null; - Region region = null; - MessagesList response = api.listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, region); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/api/MfaApiTest.java b/src/test/java/com/bandwidth/sdk/api/MfaApiTest.java deleted file mode 100644 index 2af13832..00000000 --- a/src/test/java/com/bandwidth/sdk/api/MfaApiTest.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import com.bandwidth.sdk.model.CodeRequest; -import com.bandwidth.sdk.model.MessagingCodeResponse; -import com.bandwidth.sdk.model.MfaForbiddenRequestError; -import com.bandwidth.sdk.model.MfaRequestError; -import com.bandwidth.sdk.model.MfaUnauthorizedRequestError; -import com.bandwidth.sdk.model.VerifyCodeRequest; -import com.bandwidth.sdk.model.VerifyCodeResponse; -import com.bandwidth.sdk.model.VoiceCodeResponse; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for MfaApi - */ -@Disabled -public class MfaApiTest { - - private final MfaApi api = new MfaApi(); - - /** - * Messaging Authentication Code - * - * Send an MFA code via text message (SMS). - * - * @throws ApiException if the Api call fails - */ - @Test - public void generateMessagingCodeTest() throws ApiException { - String accountId = null; - CodeRequest codeRequest = null; - MessagingCodeResponse response = api.generateMessagingCode(accountId, codeRequest); - // TODO: test validations - } - - /** - * Voice Authentication Code - * - * Send an MFA Code via a phone call. - * - * @throws ApiException if the Api call fails - */ - @Test - public void generateVoiceCodeTest() throws ApiException { - String accountId = null; - CodeRequest codeRequest = null; - VoiceCodeResponse response = api.generateVoiceCode(accountId, codeRequest); - // TODO: test validations - } - - /** - * Verify Authentication Code - * - * Verify a previously sent MFA code. - * - * @throws ApiException if the Api call fails - */ - @Test - public void verifyCodeTest() throws ApiException { - String accountId = null; - VerifyCodeRequest verifyCodeRequest = null; - VerifyCodeResponse response = api.verifyCode(accountId, verifyCodeRequest); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java b/src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java deleted file mode 100644 index 0ea70098..00000000 --- a/src/test/java/com/bandwidth/sdk/api/PhoneNumberLookupApiTest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import com.bandwidth.sdk.model.CreateLookupResponse; -import com.bandwidth.sdk.model.LookupRequest; -import com.bandwidth.sdk.model.LookupStatus; -import com.bandwidth.sdk.model.TnLookupRequestError; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for PhoneNumberLookupApi - */ -@Disabled -public class PhoneNumberLookupApiTest { - - private final PhoneNumberLookupApi api = new PhoneNumberLookupApi(); - - /** - * Create Lookup - * - * Create a Phone Number Lookup Request. - * - * @throws ApiException if the Api call fails - */ - @Test - public void createLookupTest() throws ApiException { - String accountId = null; - LookupRequest lookupRequest = null; - CreateLookupResponse response = api.createLookup(accountId, lookupRequest); - // TODO: test validations - } - - /** - * Get Lookup Request Status - * - * Get an existing Phone Number Lookup Request. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getLookupStatusTest() throws ApiException { - String accountId = null; - String requestId = null; - LookupStatus response = api.getLookupStatus(accountId, requestId); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java b/src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java deleted file mode 100644 index 1df9d4c3..00000000 --- a/src/test/java/com/bandwidth/sdk/api/RecordingsApiTest.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import com.bandwidth.sdk.model.CallRecordingMetadata; -import java.io.File; -import com.bandwidth.sdk.model.RecordingTranscriptions; -import com.bandwidth.sdk.model.TranscribeRecording; -import com.bandwidth.sdk.model.UpdateCallRecording; -import com.bandwidth.sdk.model.VoiceApiError; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for RecordingsApi - */ -@Disabled -public class RecordingsApiTest { - - private final RecordingsApi api = new RecordingsApi(); - - /** - * Delete Recording - * - * Delete the recording information, media and transcription. Note: After the deletion is requested and a `204` is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRecordingTest() throws ApiException { - String accountId = null; - String callId = null; - String recordingId = null; - api.deleteRecording(accountId, callId, recordingId); - // TODO: test validations - } - - /** - * Delete Recording Media - * - * Deletes the specified recording's media. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRecordingMediaTest() throws ApiException { - String accountId = null; - String callId = null; - String recordingId = null; - api.deleteRecordingMedia(accountId, callId, recordingId); - // TODO: test validations - } - - /** - * Delete Transcription - * - * Deletes the specified recording's transcription. Note: After the deletion is requested and a `204` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRecordingTranscriptionTest() throws ApiException { - String accountId = null; - String callId = null; - String recordingId = null; - api.deleteRecordingTranscription(accountId, callId, recordingId); - // TODO: test validations - } - - /** - * Download Recording - * - * Downloads the specified recording. - * - * @throws ApiException if the Api call fails - */ - @Test - public void downloadCallRecordingTest() throws ApiException { - String accountId = null; - String callId = null; - String recordingId = null; - File response = api.downloadCallRecording(accountId, callId, recordingId); - // TODO: test validations - } - - /** - * Get Call Recording - * - * Returns metadata for the specified recording. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getCallRecordingTest() throws ApiException { - String accountId = null; - String callId = null; - String recordingId = null; - CallRecordingMetadata response = api.getCallRecording(accountId, callId, recordingId); - // TODO: test validations - } - - /** - * Get Transcription - * - * Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while [`<PlayAudio>`](/docs/voice/bxml/playAudio) and [`<SpeakSentence>`](/docs/voice/bxml/speakSentence) transcript will be the second item. During a [`<Transfer>`](/docs/voice/bxml/transfer) the A-leg transcript will be the first item while the B-leg transcript will be the second item. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRecordingTranscriptionTest() throws ApiException { - String accountId = null; - String callId = null; - String recordingId = null; - RecordingTranscriptions response = api.getRecordingTranscription(accountId, callId, recordingId); - // TODO: test validations - } - - /** - * Get Call Recordings - * - * Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listAccountCallRecordingsTest() throws ApiException { - String accountId = null; - String to = null; - String from = null; - String minStartTime = null; - String maxStartTime = null; - List response = api.listAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime); - // TODO: test validations - } - - /** - * List Call Recordings - * - * Returns a (potentially empty) list of metadata for the recordings that took place during the specified call. - * - * @throws ApiException if the Api call fails - */ - @Test - public void listCallRecordingsTest() throws ApiException { - String accountId = null; - String callId = null; - List response = api.listCallRecordings(accountId, callId); - // TODO: test validations - } - - /** - * Create Transcription Request - * - * Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours. - * - * @throws ApiException if the Api call fails - */ - @Test - public void transcribeCallRecordingTest() throws ApiException { - String accountId = null; - String callId = null; - String recordingId = null; - TranscribeRecording transcribeRecording = null; - api.transcribeCallRecording(accountId, callId, recordingId, transcribeRecording); - // TODO: test validations - } - - /** - * Update Recording - * - * Pause or resume a recording on an active phone call. - * - * @throws ApiException if the Api call fails - */ - @Test - public void updateCallRecordingStateTest() throws ApiException { - String accountId = null; - String callId = null; - UpdateCallRecording updateCallRecording = null; - api.updateCallRecordingState(accountId, callId, updateCallRecording); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java b/src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java deleted file mode 100644 index 5f5d855b..00000000 --- a/src/test/java/com/bandwidth/sdk/api/StatisticsApiTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import com.bandwidth.sdk.model.AccountStatistics; -import com.bandwidth.sdk.model.VoiceApiError; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for StatisticsApi - */ -@Disabled -public class StatisticsApiTest { - - private final StatisticsApi api = new StatisticsApi(); - - /** - * Get Account Statistics - * - * Returns details about the current state of the account. - * - * @throws ApiException if the Api call fails - */ - @Test - public void getStatisticsTest() throws ApiException { - String accountId = null; - AccountStatistics response = api.getStatistics(accountId); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java b/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java deleted file mode 100644 index 825a0b39..00000000 --- a/src/test/java/com/bandwidth/sdk/api/TranscriptionsApiTest.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * 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.api; - -import com.bandwidth.sdk.ApiException; -import com.bandwidth.sdk.model.CallTranscriptionMetadata; -import com.bandwidth.sdk.model.CallTranscriptionResponse; -import com.bandwidth.sdk.model.VoiceApiError; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for TranscriptionsApi - */ -@Disabled -public class TranscriptionsApiTest { - - private final TranscriptionsApi api = new TranscriptionsApi(); - - /** - * Delete a specific transcription - * - * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteRealTimeTranscriptionTest() throws ApiException { - String accountId = null; - String callId = null; - String transcriptionId = null; - api.deleteRealTimeTranscription(accountId, callId, transcriptionId); - // TODO: test validations - } - - /** - * Retrieve a specific transcription - * - * Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). - * - * @throws ApiException if the Api call fails - */ - @Test - public void getRealTimeTranscriptionTest() throws ApiException { - String accountId = null; - String callId = null; - String transcriptionId = null; - CallTranscriptionResponse response = api.getRealTimeTranscription(accountId, callId, transcriptionId); - // TODO: test validations - } - - /** - * Enumerate transcriptions made with StartTranscription - * - * Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). - * - * @throws ApiException if the Api call fails - */ - @Test - public void listRealTimeTranscriptionsTest() throws ApiException { - String accountId = null; - String callId = null; - List response = api.listRealTimeTranscriptions(accountId, callId); - // TODO: test validations - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java b/src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java deleted file mode 100644 index 9ab0f3ee..00000000 --- a/src/test/java/com/bandwidth/sdk/model/AccountStatisticsTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AccountStatistics - */ -public class AccountStatisticsTest { - private final AccountStatistics model = new AccountStatistics(); - - /** - * Model tests for AccountStatistics - */ - @Test - public void testAccountStatistics() { - // TODO: test AccountStatistics - } - - /** - * Test the property 'currentCallQueueSize' - */ - @Test - public void currentCallQueueSizeTest() { - // TODO: test currentCallQueueSize - } - - /** - * Test the property 'maxCallQueueSize' - */ - @Test - public void maxCallQueueSizeTest() { - // TODO: test maxCallQueueSize - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java deleted file mode 100644 index 9b90d2ac..00000000 --- a/src/test/java/com/bandwidth/sdk/model/AnswerCallbackTest.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.bandwidth.sdk.model.MachineDetectionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for AnswerCallback - */ -public class AnswerCallbackTest { - private final AnswerCallback model = new AnswerCallback(); - - /** - * Model tests for AnswerCallback - */ - @Test - public void testAnswerCallback() { - // TODO: test AnswerCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'machineDetectionResult' - */ - @Test - public void machineDetectionResultTest() { - // TODO: test machineDetectionResult - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java deleted file mode 100644 index 7215201f..00000000 --- a/src/test/java/com/bandwidth/sdk/model/BridgeCompleteCallbackTest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for BridgeCompleteCallback - */ -public class BridgeCompleteCallbackTest { - private final BridgeCompleteCallback model = new BridgeCompleteCallback(); - - /** - * Model tests for BridgeCompleteCallback - */ - @Test - public void testBridgeCompleteCallback() { - // TODO: test BridgeCompleteCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'cause' - */ - @Test - public void causeTest() { - // TODO: test cause - } - - /** - * Test the property 'errorMessage' - */ - @Test - public void errorMessageTest() { - // TODO: test errorMessage - } - - /** - * Test the property 'errorId' - */ - @Test - public void errorIdTest() { - // TODO: test errorId - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java deleted file mode 100644 index 8695a23d..00000000 --- a/src/test/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallbackTest.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for BridgeTargetCompleteCallback - */ -public class BridgeTargetCompleteCallbackTest { - private final BridgeTargetCompleteCallback model = new BridgeTargetCompleteCallback(); - - /** - * Model tests for BridgeTargetCompleteCallback - */ - @Test - public void testBridgeTargetCompleteCallback() { - // TODO: test BridgeTargetCompleteCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java deleted file mode 100644 index 71835091..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallDirectionEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallDirectionEnum - */ -public class CallDirectionEnumTest { - /** - * Model tests for CallDirectionEnum - */ - @Test - public void testCallDirectionEnum() { - // TODO: test CallDirectionEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java b/src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java deleted file mode 100644 index 566ce0c2..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallRecordingMetadataTest.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.bandwidth.sdk.model.FileFormatEnum; -import com.bandwidth.sdk.model.RecordingTranscriptionMetadata; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallRecordingMetadata - */ -public class CallRecordingMetadataTest { - private final CallRecordingMetadata model = new CallRecordingMetadata(); - - /** - * Model tests for CallRecordingMetadata - */ - @Test - public void testCallRecordingMetadata() { - // TODO: test CallRecordingMetadata - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'recordingId' - */ - @Test - public void recordingIdTest() { - // TODO: test recordingId - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'channels' - */ - @Test - public void channelsTest() { - // TODO: test channels - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'fileFormat' - */ - @Test - public void fileFormatTest() { - // TODO: test fileFormat - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'mediaUrl' - */ - @Test - public void mediaUrlTest() { - // TODO: test mediaUrl - } - - /** - * Test the property 'transcription' - */ - @Test - public void transcriptionTest() { - // TODO: test transcription - } - - /** - * Test the property 'recordingName' - */ - @Test - public void recordingNameTest() { - // TODO: test recordingName - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java deleted file mode 100644 index 1bccdbb0..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallStateEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallStateEnum - */ -public class CallStateEnumTest { - /** - * Model tests for CallStateEnum - */ - @Test - public void testCallStateEnum() { - // TODO: test CallStateEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallStateTest.java b/src/test/java/com/bandwidth/sdk/model/CallStateTest.java deleted file mode 100644 index 425cf9cb..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallStateTest.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallState - */ -public class CallStateTest { - private final CallState model = new CallState(); - - /** - * Model tests for CallState - */ - @Test - public void testCallState() { - // TODO: test CallState - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'state' - */ - @Test - public void stateTest() { - // TODO: test state - } - - /** - * Test the property 'stirShaken' - */ - @Test - public void stirShakenTest() { - // TODO: test stirShaken - } - - /** - * Test the property 'identity' - */ - @Test - public void identityTest() { - // TODO: test identity - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'disconnectCause' - */ - @Test - public void disconnectCauseTest() { - // TODO: test disconnectCause - } - - /** - * Test the property 'errorMessage' - */ - @Test - public void errorMessageTest() { - // TODO: test errorMessage - } - - /** - * Test the property 'errorId' - */ - @Test - public void errorIdTest() { - // TODO: test errorId - } - - /** - * Test the property 'lastUpdate' - */ - @Test - public void lastUpdateTest() { - // TODO: test lastUpdate - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java deleted file mode 100644 index f6ac2eda..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionDetectedLanguageEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallTranscriptionDetectedLanguageEnum - */ -public class CallTranscriptionDetectedLanguageEnumTest { - /** - * Model tests for CallTranscriptionDetectedLanguageEnum - */ - @Test - public void testCallTranscriptionDetectedLanguageEnum() { - // TODO: test CallTranscriptionDetectedLanguageEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java deleted file mode 100644 index 70e4ab38..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionMetadataTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallTranscriptionMetadata - */ -public class CallTranscriptionMetadataTest { - private final CallTranscriptionMetadata model = new CallTranscriptionMetadata(); - - /** - * Model tests for CallTranscriptionMetadata - */ - @Test - public void testCallTranscriptionMetadata() { - // TODO: test CallTranscriptionMetadata - } - - /** - * Test the property 'transcriptionId' - */ - @Test - public void transcriptionIdTest() { - // TODO: test transcriptionId - } - - /** - * Test the property 'transcriptionName' - */ - @Test - public void transcriptionNameTest() { - // TODO: test transcriptionName - } - - /** - * Test the property 'transcriptionUrl' - */ - @Test - public void transcriptionUrlTest() { - // TODO: test transcriptionUrl - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java deleted file mode 100644 index b725b6d9..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionResponseTest.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallTranscription; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallTranscriptionResponse - */ -public class CallTranscriptionResponseTest { - private final CallTranscriptionResponse model = new CallTranscriptionResponse(); - - /** - * Model tests for CallTranscriptionResponse - */ - @Test - public void testCallTranscriptionResponse() { - // TODO: test CallTranscriptionResponse - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'transcriptionId' - */ - @Test - public void transcriptionIdTest() { - // TODO: test transcriptionId - } - - /** - * Test the property 'tracks' - */ - @Test - public void tracksTest() { - // TODO: test tracks - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java deleted file mode 100644 index 83096973..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallTranscriptionDetectedLanguageEnum; -import com.bandwidth.sdk.model.CallTranscriptionTrackEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallTranscription - */ -public class CallTranscriptionTest { - private final CallTranscription model = new CallTranscription(); - - /** - * Model tests for CallTranscription - */ - @Test - public void testCallTranscription() { - // TODO: test CallTranscription - } - - /** - * Test the property 'detectedLanguage' - */ - @Test - public void detectedLanguageTest() { - // TODO: test detectedLanguage - } - - /** - * Test the property 'track' - */ - @Test - public void trackTest() { - // TODO: test track - } - - /** - * Test the property 'transcript' - */ - @Test - public void transcriptTest() { - // TODO: test transcript - } - - /** - * Test the property 'confidence' - */ - @Test - public void confidenceTest() { - // TODO: test confidence - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java deleted file mode 100644 index 7b07c1ef..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallTranscriptionTrackEnum - */ -public class CallTranscriptionTrackEnumTest { - /** - * Model tests for CallTranscriptionTrackEnum - */ - @Test - public void testCallTranscriptionTrackEnum() { - // TODO: test CallTranscriptionTrackEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java b/src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java deleted file mode 100644 index 9f4393b1..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CallbackMethodEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CallbackMethodEnum - */ -public class CallbackMethodEnumTest { - /** - * Model tests for CallbackMethodEnum - */ - @Test - public void testCallbackMethodEnum() { - // TODO: test CallbackMethodEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java b/src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java deleted file mode 100644 index 4c4fb9e9..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CodeRequestTest.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CodeRequest - */ -public class CodeRequestTest { - private final CodeRequest model = new CodeRequest(); - - /** - * Model tests for CodeRequest - */ - @Test - public void testCodeRequest() { - // TODO: test CodeRequest - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'scope' - */ - @Test - public void scopeTest() { - // TODO: test scope - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'digits' - */ - @Test - public void digitsTest() { - // TODO: test digits - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java deleted file mode 100644 index 3d6a3e22..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceCompletedCallbackTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceCompletedCallback - */ -public class ConferenceCompletedCallbackTest { - private final ConferenceCompletedCallback model = new ConferenceCompletedCallback(); - - /** - * Model tests for ConferenceCompletedCallback - */ - @Test - public void testConferenceCompletedCallback() { - // TODO: test ConferenceCompletedCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'conferenceId' - */ - @Test - public void conferenceIdTest() { - // TODO: test conferenceId - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java deleted file mode 100644 index 06263dea..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceCreatedCallbackTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceCreatedCallback - */ -public class ConferenceCreatedCallbackTest { - private final ConferenceCreatedCallback model = new ConferenceCreatedCallback(); - - /** - * Model tests for ConferenceCreatedCallback - */ - @Test - public void testConferenceCreatedCallback() { - // TODO: test ConferenceCreatedCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'conferenceId' - */ - @Test - public void conferenceIdTest() { - // TODO: test conferenceId - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java deleted file mode 100644 index 71a55ee6..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberExitCallbackTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceMemberExitCallback - */ -public class ConferenceMemberExitCallbackTest { - private final ConferenceMemberExitCallback model = new ConferenceMemberExitCallback(); - - /** - * Model tests for ConferenceMemberExitCallback - */ - @Test - public void testConferenceMemberExitCallback() { - // TODO: test ConferenceMemberExitCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'conferenceId' - */ - @Test - public void conferenceIdTest() { - // TODO: test conferenceId - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java deleted file mode 100644 index 742883e0..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallbackTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceMemberJoinCallback - */ -public class ConferenceMemberJoinCallbackTest { - private final ConferenceMemberJoinCallback model = new ConferenceMemberJoinCallback(); - - /** - * Model tests for ConferenceMemberJoinCallback - */ - @Test - public void testConferenceMemberJoinCallback() { - // TODO: test ConferenceMemberJoinCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'conferenceId' - */ - @Test - public void conferenceIdTest() { - // TODO: test conferenceId - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java deleted file mode 100644 index 00dc4101..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceMemberTest.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceMember - */ -public class ConferenceMemberTest { - private final ConferenceMember model = new ConferenceMember(); - - /** - * Model tests for ConferenceMember - */ - @Test - public void testConferenceMember() { - // TODO: test ConferenceMember - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'conferenceId' - */ - @Test - public void conferenceIdTest() { - // TODO: test conferenceId - } - - /** - * Test the property 'memberUrl' - */ - @Test - public void memberUrlTest() { - // TODO: test memberUrl - } - - /** - * Test the property 'mute' - */ - @Test - public void muteTest() { - // TODO: test mute - } - - /** - * Test the property 'hold' - */ - @Test - public void holdTest() { - // TODO: test hold - } - - /** - * Test the property 'callIdsToCoach' - */ - @Test - public void callIdsToCoachTest() { - // TODO: test callIdsToCoach - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java deleted file mode 100644 index c2b175db..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallbackTest.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.FileFormatEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceRecordingAvailableCallback - */ -public class ConferenceRecordingAvailableCallbackTest { - private final ConferenceRecordingAvailableCallback model = new ConferenceRecordingAvailableCallback(); - - /** - * Model tests for ConferenceRecordingAvailableCallback - */ - @Test - public void testConferenceRecordingAvailableCallback() { - // TODO: test ConferenceRecordingAvailableCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'conferenceId' - */ - @Test - public void conferenceIdTest() { - // TODO: test conferenceId - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'recordingId' - */ - @Test - public void recordingIdTest() { - // TODO: test recordingId - } - - /** - * Test the property 'channels' - */ - @Test - public void channelsTest() { - // TODO: test channels - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - - /** - * Test the property 'fileFormat' - */ - @Test - public void fileFormatTest() { - // TODO: test fileFormat - } - - /** - * Test the property 'mediaUrl' - */ - @Test - public void mediaUrlTest() { - // TODO: test mediaUrl - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java deleted file mode 100644 index b2625687..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceRecordingMetadataTest.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.FileFormatEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceRecordingMetadata - */ -public class ConferenceRecordingMetadataTest { - private final ConferenceRecordingMetadata model = new ConferenceRecordingMetadata(); - - /** - * Model tests for ConferenceRecordingMetadata - */ - @Test - public void testConferenceRecordingMetadata() { - // TODO: test ConferenceRecordingMetadata - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'conferenceId' - */ - @Test - public void conferenceIdTest() { - // TODO: test conferenceId - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'recordingId' - */ - @Test - public void recordingIdTest() { - // TODO: test recordingId - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - - /** - * Test the property 'channels' - */ - @Test - public void channelsTest() { - // TODO: test channels - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'fileFormat' - */ - @Test - public void fileFormatTest() { - // TODO: test fileFormat - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'mediaUrl' - */ - @Test - public void mediaUrlTest() { - // TODO: test mediaUrl - } - - /** - * Test the property 'recordingName' - */ - @Test - public void recordingNameTest() { - // TODO: test recordingName - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java deleted file mode 100644 index abbeba30..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceRedirectCallbackTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceRedirectCallback - */ -public class ConferenceRedirectCallbackTest { - private final ConferenceRedirectCallback model = new ConferenceRedirectCallback(); - - /** - * Model tests for ConferenceRedirectCallback - */ - @Test - public void testConferenceRedirectCallback() { - // TODO: test ConferenceRedirectCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'conferenceId' - */ - @Test - public void conferenceIdTest() { - // TODO: test conferenceId - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java deleted file mode 100644 index 6513fad6..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceStateEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ConferenceStateEnum - */ -public class ConferenceStateEnumTest { - /** - * Model tests for ConferenceStateEnum - */ - @Test - public void testConferenceStateEnum() { - // TODO: test ConferenceStateEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ConferenceTest.java b/src/test/java/com/bandwidth/sdk/model/ConferenceTest.java deleted file mode 100644 index d88ca4f4..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ConferenceTest.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallbackMethodEnum; -import com.bandwidth.sdk.model.ConferenceMember; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Conference - */ -public class ConferenceTest { - private final Conference model = new Conference(); - - /** - * Model tests for Conference - */ - @Test - public void testConference() { - // TODO: test Conference - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'name' - */ - @Test - public void nameTest() { - // TODO: test name - } - - /** - * Test the property 'createdTime' - */ - @Test - public void createdTimeTest() { - // TODO: test createdTime - } - - /** - * Test the property 'completedTime' - */ - @Test - public void completedTimeTest() { - // TODO: test completedTime - } - - /** - * Test the property 'conferenceEventUrl' - */ - @Test - public void conferenceEventUrlTest() { - // TODO: test conferenceEventUrl - } - - /** - * Test the property 'conferenceEventMethod' - */ - @Test - public void conferenceEventMethodTest() { - // TODO: test conferenceEventMethod - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'activeMembers' - */ - @Test - public void activeMembersTest() { - // TODO: test activeMembers - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java b/src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java deleted file mode 100644 index 4d9de0ea..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CreateCallResponseTest.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallbackMethodEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateCallResponse - */ -public class CreateCallResponseTest { - private final CreateCallResponse model = new CreateCallResponse(); - - /** - * Model tests for CreateCallResponse - */ - @Test - public void testCreateCallResponse() { - // TODO: test CreateCallResponse - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'callTimeout' - */ - @Test - public void callTimeoutTest() { - // TODO: test callTimeout - } - - /** - * Test the property 'callbackTimeout' - */ - @Test - public void callbackTimeoutTest() { - // TODO: test callbackTimeout - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'answerMethod' - */ - @Test - public void answerMethodTest() { - // TODO: test answerMethod - } - - /** - * Test the property 'answerUrl' - */ - @Test - public void answerUrlTest() { - // TODO: test answerUrl - } - - /** - * Test the property 'answerFallbackMethod' - */ - @Test - public void answerFallbackMethodTest() { - // TODO: test answerFallbackMethod - } - - /** - * Test the property 'answerFallbackUrl' - */ - @Test - public void answerFallbackUrlTest() { - // TODO: test answerFallbackUrl - } - - /** - * Test the property 'disconnectMethod' - */ - @Test - public void disconnectMethodTest() { - // TODO: test disconnectMethod - } - - /** - * Test the property 'disconnectUrl' - */ - @Test - public void disconnectUrlTest() { - // TODO: test disconnectUrl - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'fallbackUsername' - */ - @Test - public void fallbackUsernameTest() { - // TODO: test fallbackUsername - } - - /** - * Test the property 'fallbackPassword' - */ - @Test - public void fallbackPasswordTest() { - // TODO: test fallbackPassword - } - - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CreateCallTest.java b/src/test/java/com/bandwidth/sdk/model/CreateCallTest.java deleted file mode 100644 index f8de1dcc..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CreateCallTest.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallbackMethodEnum; -import com.bandwidth.sdk.model.MachineDetectionConfiguration; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateCall - */ -public class CreateCallTest { - private final CreateCall model = new CreateCall(); - - /** - * Model tests for CreateCall - */ - @Test - public void testCreateCall() { - // TODO: test CreateCall - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'privacy' - */ - @Test - public void privacyTest() { - // TODO: test privacy - } - - /** - * Test the property 'displayName' - */ - @Test - public void displayNameTest() { - // TODO: test displayName - } - - /** - * Test the property 'uui' - */ - @Test - public void uuiTest() { - // TODO: test uui - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'answerUrl' - */ - @Test - public void answerUrlTest() { - // TODO: test answerUrl - } - - /** - * Test the property 'answerMethod' - */ - @Test - public void answerMethodTest() { - // TODO: test answerMethod - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'answerFallbackUrl' - */ - @Test - public void answerFallbackUrlTest() { - // TODO: test answerFallbackUrl - } - - /** - * Test the property 'answerFallbackMethod' - */ - @Test - public void answerFallbackMethodTest() { - // TODO: test answerFallbackMethod - } - - /** - * Test the property 'fallbackUsername' - */ - @Test - public void fallbackUsernameTest() { - // TODO: test fallbackUsername - } - - /** - * Test the property 'fallbackPassword' - */ - @Test - public void fallbackPasswordTest() { - // TODO: test fallbackPassword - } - - /** - * Test the property 'disconnectUrl' - */ - @Test - public void disconnectUrlTest() { - // TODO: test disconnectUrl - } - - /** - * Test the property 'disconnectMethod' - */ - @Test - public void disconnectMethodTest() { - // TODO: test disconnectMethod - } - - /** - * Test the property 'callTimeout' - */ - @Test - public void callTimeoutTest() { - // TODO: test callTimeout - } - - /** - * Test the property 'callbackTimeout' - */ - @Test - public void callbackTimeoutTest() { - // TODO: test callbackTimeout - } - - /** - * Test the property 'machineDetection' - */ - @Test - public void machineDetectionTest() { - // TODO: test machineDetection - } - - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java b/src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java deleted file mode 100644 index ab7a8e8f..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CreateLookupResponseTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.LookupStatusEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateLookupResponse - */ -public class CreateLookupResponseTest { - private final CreateLookupResponse model = new CreateLookupResponse(); - - /** - * Model tests for CreateLookupResponse - */ - @Test - public void testCreateLookupResponse() { - // TODO: test CreateLookupResponse - } - - /** - * Test the property 'requestId' - */ - @Test - public void requestIdTest() { - // TODO: test requestId - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java deleted file mode 100644 index c1e3a81e..00000000 --- a/src/test/java/com/bandwidth/sdk/model/CreateMessageRequestErrorTest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.FieldError; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for CreateMessageRequestError - */ -public class CreateMessageRequestErrorTest { - private final CreateMessageRequestError model = new CreateMessageRequestError(); - - /** - * Model tests for CreateMessageRequestError - */ - @Test - public void testCreateMessageRequestError() { - // TODO: test CreateMessageRequestError - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'fieldErrors' - */ - @Test - public void fieldErrorsTest() { - // TODO: test fieldErrors - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java b/src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java deleted file mode 100644 index 7b58054d..00000000 --- a/src/test/java/com/bandwidth/sdk/model/DeferredResultTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DeferredResult - */ -public class DeferredResultTest { - private final DeferredResult model = new DeferredResult(); - - /** - * Model tests for DeferredResult - */ - @Test - public void testDeferredResult() { - // TODO: test DeferredResult - } - - /** - * Test the property 'result' - */ - @Test - public void resultTest() { - // TODO: test result - } - - /** - * Test the property 'setOrExpired' - */ - @Test - public void setOrExpiredTest() { - // TODO: test setOrExpired - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java deleted file mode 100644 index 93ed016e..00000000 --- a/src/test/java/com/bandwidth/sdk/model/DisconnectCallbackTest.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DisconnectCallback - */ -public class DisconnectCallbackTest { - private final DisconnectCallback model = new DisconnectCallback(); - - /** - * Model tests for DisconnectCallback - */ - @Test - public void testDisconnectCallback() { - // TODO: test DisconnectCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'cause' - */ - @Test - public void causeTest() { - // TODO: test cause - } - - /** - * Test the property 'errorMessage' - */ - @Test - public void errorMessageTest() { - // TODO: test errorMessage - } - - /** - * Test the property 'errorId' - */ - @Test - public void errorIdTest() { - // TODO: test errorId - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/DiversionTest.java b/src/test/java/com/bandwidth/sdk/model/DiversionTest.java deleted file mode 100644 index b07c2b83..00000000 --- a/src/test/java/com/bandwidth/sdk/model/DiversionTest.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Diversion - */ -public class DiversionTest { - private final Diversion model = new Diversion(); - - /** - * Model tests for Diversion - */ - @Test - public void testDiversion() { - // TODO: test Diversion - } - - /** - * Test the property 'reason' - */ - @Test - public void reasonTest() { - // TODO: test reason - } - - /** - * Test the property 'privacy' - */ - @Test - public void privacyTest() { - // TODO: test privacy - } - - /** - * Test the property 'screen' - */ - @Test - public void screenTest() { - // TODO: test screen - } - - /** - * Test the property 'counter' - */ - @Test - public void counterTest() { - // TODO: test counter - } - - /** - * Test the property 'limit' - */ - @Test - public void limitTest() { - // TODO: test limit - } - - /** - * Test the property 'unknown' - */ - @Test - public void unknownTest() { - // TODO: test unknown - } - - /** - * Test the property 'origTo' - */ - @Test - public void origToTest() { - // TODO: test origTo - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java deleted file mode 100644 index 7760b1a0..00000000 --- a/src/test/java/com/bandwidth/sdk/model/DtmfCallbackTest.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for DtmfCallback - */ -public class DtmfCallbackTest { - private final DtmfCallback model = new DtmfCallback(); - - /** - * Model tests for DtmfCallback - */ - @Test - public void testDtmfCallback() { - // TODO: test DtmfCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'digit' - */ - @Test - public void digitTest() { - // TODO: test digit - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java b/src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java deleted file mode 100644 index 093204d5..00000000 --- a/src/test/java/com/bandwidth/sdk/model/FieldErrorTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FieldError - */ -public class FieldErrorTest { - private final FieldError model = new FieldError(); - - /** - * Model tests for FieldError - */ - @Test - public void testFieldError() { - // TODO: test FieldError - } - - /** - * Test the property 'fieldName' - */ - @Test - public void fieldNameTest() { - // TODO: test fieldName - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java b/src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java deleted file mode 100644 index 534ac98e..00000000 --- a/src/test/java/com/bandwidth/sdk/model/FileFormatEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for FileFormatEnum - */ -public class FileFormatEnumTest { - /** - * Model tests for FileFormatEnum - */ - @Test - public void testFileFormatEnum() { - // TODO: test FileFormatEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java deleted file mode 100644 index 1dd2865a..00000000 --- a/src/test/java/com/bandwidth/sdk/model/GatherCallbackTest.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for GatherCallback - */ -public class GatherCallbackTest { - private final GatherCallback model = new GatherCallback(); - - /** - * Model tests for GatherCallback - */ - @Test - public void testGatherCallback() { - // TODO: test GatherCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'digits' - */ - @Test - public void digitsTest() { - // TODO: test digits - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'terminatingDigit' - */ - @Test - public void terminatingDigitTest() { - // TODO: test terminatingDigit - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java b/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java deleted file mode 100644 index 07561e43..00000000 --- a/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackMessageTest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.MessageDirectionEnum; -import com.bandwidth.sdk.model.PriorityEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InboundMessageCallbackMessage - */ -public class InboundMessageCallbackMessageTest { - private final InboundMessageCallbackMessage model = new InboundMessageCallbackMessage(); - - /** - * Model tests for InboundMessageCallbackMessage - */ - @Test - public void testInboundMessageCallbackMessage() { - // TODO: test InboundMessageCallbackMessage - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'owner' - */ - @Test - public void ownerTest() { - // TODO: test owner - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'segmentCount' - */ - @Test - public void segmentCountTest() { - // TODO: test segmentCount - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'media' - */ - @Test - public void mediaTest() { - // TODO: test media - } - - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java deleted file mode 100644 index 75b239c8..00000000 --- a/src/test/java/com/bandwidth/sdk/model/InboundMessageCallbackTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.InboundMessageCallbackMessage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InboundMessageCallback - */ -public class InboundMessageCallbackTest { - private final InboundMessageCallback model = new InboundMessageCallback(); - - /** - * Model tests for InboundMessageCallback - */ - @Test - public void testInboundMessageCallback() { - // TODO: test InboundMessageCallback - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java deleted file mode 100644 index 17e86e7b..00000000 --- a/src/test/java/com/bandwidth/sdk/model/InitiateCallbackTest.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.bandwidth.sdk.model.Diversion; -import com.bandwidth.sdk.model.StirShaken; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for InitiateCallback - */ -public class InitiateCallbackTest { - private final InitiateCallback model = new InitiateCallback(); - - /** - * Model tests for InitiateCallback - */ - @Test - public void testInitiateCallback() { - // TODO: test InitiateCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'diversion' - */ - @Test - public void diversionTest() { - // TODO: test diversion - } - - /** - * Test the property 'stirShaken' - */ - @Test - public void stirShakenTest() { - // TODO: test stirShaken - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java b/src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java deleted file mode 100644 index 1de5df7a..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ListMessageDirectionEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ListMessageDirectionEnum - */ -public class ListMessageDirectionEnumTest { - /** - * Model tests for ListMessageDirectionEnum - */ - @Test - public void testListMessageDirectionEnum() { - // TODO: test ListMessageDirectionEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java b/src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java deleted file mode 100644 index d01e86a0..00000000 --- a/src/test/java/com/bandwidth/sdk/model/ListMessageItemTest.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.ListMessageDirectionEnum; -import com.bandwidth.sdk.model.MessageStatusEnum; -import com.bandwidth.sdk.model.MessageTypeEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for ListMessageItem - */ -public class ListMessageItemTest { - private final ListMessageItem model = new ListMessageItem(); - - /** - * Model tests for ListMessageItem - */ - @Test - public void testListMessageItem() { - // TODO: test ListMessageItem - } - - /** - * Test the property 'messageId' - */ - @Test - public void messageIdTest() { - // TODO: test messageId - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'sourceTn' - */ - @Test - public void sourceTnTest() { - // TODO: test sourceTn - } - - /** - * Test the property 'destinationTn' - */ - @Test - public void destinationTnTest() { - // TODO: test destinationTn - } - - /** - * Test the property 'messageStatus' - */ - @Test - public void messageStatusTest() { - // TODO: test messageStatus - } - - /** - * Test the property 'messageDirection' - */ - @Test - public void messageDirectionTest() { - // TODO: test messageDirection - } - - /** - * Test the property 'messageType' - */ - @Test - public void messageTypeTest() { - // TODO: test messageType - } - - /** - * Test the property 'segmentCount' - */ - @Test - public void segmentCountTest() { - // TODO: test segmentCount - } - - /** - * Test the property 'errorCode' - */ - @Test - public void errorCodeTest() { - // TODO: test errorCode - } - - /** - * Test the property 'receiveTime' - */ - @Test - public void receiveTimeTest() { - // TODO: test receiveTime - } - - /** - * Test the property 'carrierName' - */ - @Test - public void carrierNameTest() { - // TODO: test carrierName - } - - /** - * Test the property 'messageSize' - */ - @Test - public void messageSizeTest() { - // TODO: test messageSize - } - - /** - * Test the property 'messageLength' - */ - @Test - public void messageLengthTest() { - // TODO: test messageLength - } - - /** - * Test the property 'attachmentCount' - */ - @Test - public void attachmentCountTest() { - // TODO: test attachmentCount - } - - /** - * Test the property 'recipientCount' - */ - @Test - public void recipientCountTest() { - // TODO: test recipientCount - } - - /** - * Test the property 'campaignClass' - */ - @Test - public void campaignClassTest() { - // TODO: test campaignClass - } - - /** - * Test the property 'campaignId' - */ - @Test - public void campaignIdTest() { - // TODO: test campaignId - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java b/src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java deleted file mode 100644 index f62bdb7c..00000000 --- a/src/test/java/com/bandwidth/sdk/model/LookupRequestTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LookupRequest - */ -public class LookupRequestTest { - private final LookupRequest model = new LookupRequest(); - - /** - * Model tests for LookupRequest - */ - @Test - public void testLookupRequest() { - // TODO: test LookupRequest - } - - /** - * Test the property 'tns' - */ - @Test - public void tnsTest() { - // TODO: test tns - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/LookupResultTest.java b/src/test/java/com/bandwidth/sdk/model/LookupResultTest.java deleted file mode 100644 index 2d4d24e6..00000000 --- a/src/test/java/com/bandwidth/sdk/model/LookupResultTest.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LookupResult - */ -public class LookupResultTest { - private final LookupResult model = new LookupResult(); - - /** - * Model tests for LookupResult - */ - @Test - public void testLookupResult() { - // TODO: test LookupResult - } - - /** - * Test the property 'responseCode' - */ - @Test - public void responseCodeTest() { - // TODO: test responseCode - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'e164Format' - */ - @Test - public void e164FormatTest() { - // TODO: test e164Format - } - - /** - * Test the property 'formatted' - */ - @Test - public void formattedTest() { - // TODO: test formatted - } - - /** - * Test the property 'country' - */ - @Test - public void countryTest() { - // TODO: test country - } - - /** - * Test the property 'lineType' - */ - @Test - public void lineTypeTest() { - // TODO: test lineType - } - - /** - * Test the property 'lineProvider' - */ - @Test - public void lineProviderTest() { - // TODO: test lineProvider - } - - /** - * Test the property 'mobileCountryCode' - */ - @Test - public void mobileCountryCodeTest() { - // TODO: test mobileCountryCode - } - - /** - * Test the property 'mobileNetworkCode' - */ - @Test - public void mobileNetworkCodeTest() { - // TODO: test mobileNetworkCode - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java b/src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java deleted file mode 100644 index a319141c..00000000 --- a/src/test/java/com/bandwidth/sdk/model/LookupStatusEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LookupStatusEnum - */ -public class LookupStatusEnumTest { - /** - * Model tests for LookupStatusEnum - */ - @Test - public void testLookupStatusEnum() { - // TODO: test LookupStatusEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java b/src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java deleted file mode 100644 index 8dd2e2ed..00000000 --- a/src/test/java/com/bandwidth/sdk/model/LookupStatusTest.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.LookupResult; -import com.bandwidth.sdk.model.LookupStatusEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for LookupStatus - */ -public class LookupStatusTest { - private final LookupStatus model = new LookupStatus(); - - /** - * Model tests for LookupStatus - */ - @Test - public void testLookupStatus() { - // TODO: test LookupStatus - } - - /** - * Test the property 'requestId' - */ - @Test - public void requestIdTest() { - // TODO: test requestId - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'result' - */ - @Test - public void resultTest() { - // TODO: test result - } - - /** - * Test the property 'failedTelephoneNumbers' - */ - @Test - public void failedTelephoneNumbersTest() { - // TODO: test failedTelephoneNumbers - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java deleted file mode 100644 index f3df366f..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallbackTest.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.bandwidth.sdk.model.MachineDetectionResult; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MachineDetectionCompleteCallback - */ -public class MachineDetectionCompleteCallbackTest { - private final MachineDetectionCompleteCallback model = new MachineDetectionCompleteCallback(); - - /** - * Model tests for MachineDetectionCompleteCallback - */ - @Test - public void testMachineDetectionCompleteCallback() { - // TODO: test MachineDetectionCompleteCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'machineDetectionResult' - */ - @Test - public void machineDetectionResultTest() { - // TODO: test machineDetectionResult - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java b/src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java deleted file mode 100644 index da68183d..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MachineDetectionConfigurationTest.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallbackMethodEnum; -import com.bandwidth.sdk.model.MachineDetectionModeEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MachineDetectionConfiguration - */ -public class MachineDetectionConfigurationTest { - private final MachineDetectionConfiguration model = new MachineDetectionConfiguration(); - - /** - * Model tests for MachineDetectionConfiguration - */ - @Test - public void testMachineDetectionConfiguration() { - // TODO: test MachineDetectionConfiguration - } - - /** - * Test the property 'mode' - */ - @Test - public void modeTest() { - // TODO: test mode - } - - /** - * Test the property 'detectionTimeout' - */ - @Test - public void detectionTimeoutTest() { - // TODO: test detectionTimeout - } - - /** - * Test the property 'silenceTimeout' - */ - @Test - public void silenceTimeoutTest() { - // TODO: test silenceTimeout - } - - /** - * Test the property 'speechThreshold' - */ - @Test - public void speechThresholdTest() { - // TODO: test speechThreshold - } - - /** - * Test the property 'speechEndThreshold' - */ - @Test - public void speechEndThresholdTest() { - // TODO: test speechEndThreshold - } - - /** - * Test the property 'machineSpeechEndThreshold' - */ - @Test - public void machineSpeechEndThresholdTest() { - // TODO: test machineSpeechEndThreshold - } - - /** - * Test the property 'delayResult' - */ - @Test - public void delayResultTest() { - // TODO: test delayResult - } - - /** - * Test the property 'callbackUrl' - */ - @Test - public void callbackUrlTest() { - // TODO: test callbackUrl - } - - /** - * Test the property 'callbackMethod' - */ - @Test - public void callbackMethodTest() { - // TODO: test callbackMethod - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'fallbackUrl' - */ - @Test - public void fallbackUrlTest() { - // TODO: test fallbackUrl - } - - /** - * Test the property 'fallbackMethod' - */ - @Test - public void fallbackMethodTest() { - // TODO: test fallbackMethod - } - - /** - * Test the property 'fallbackUsername' - */ - @Test - public void fallbackUsernameTest() { - // TODO: test fallbackUsername - } - - /** - * Test the property 'fallbackPassword' - */ - @Test - public void fallbackPasswordTest() { - // TODO: test fallbackPassword - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java b/src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java deleted file mode 100644 index b073db8d..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MachineDetectionModeEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MachineDetectionModeEnum - */ -public class MachineDetectionModeEnumTest { - /** - * Model tests for MachineDetectionModeEnum - */ - @Test - public void testMachineDetectionModeEnum() { - // TODO: test MachineDetectionModeEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java b/src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java deleted file mode 100644 index dd5f361e..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MachineDetectionResultTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MachineDetectionResult - */ -public class MachineDetectionResultTest { - private final MachineDetectionResult model = new MachineDetectionResult(); - - /** - * Model tests for MachineDetectionResult - */ - @Test - public void testMachineDetectionResult() { - // TODO: test MachineDetectionResult - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MediaTest.java b/src/test/java/com/bandwidth/sdk/model/MediaTest.java deleted file mode 100644 index a6e0ebeb..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MediaTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Media - */ -public class MediaTest { - private final Media model = new Media(); - - /** - * Model tests for Media - */ - @Test - public void testMedia() { - // TODO: test Media - } - - /** - * Test the property 'content' - */ - @Test - public void contentTest() { - // TODO: test content - } - - /** - * Test the property 'contentLength' - */ - @Test - public void contentLengthTest() { - // TODO: test contentLength - } - - /** - * Test the property 'mediaName' - */ - @Test - public void mediaNameTest() { - // TODO: test mediaName - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java b/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java deleted file mode 100644 index f7531192..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessageTest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.MessageDirectionEnum; -import com.bandwidth.sdk.model.PriorityEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageDeliveredCallbackMessage - */ -public class MessageDeliveredCallbackMessageTest { - private final MessageDeliveredCallbackMessage model = new MessageDeliveredCallbackMessage(); - - /** - * Model tests for MessageDeliveredCallbackMessage - */ - @Test - public void testMessageDeliveredCallbackMessage() { - // TODO: test MessageDeliveredCallbackMessage - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'owner' - */ - @Test - public void ownerTest() { - // TODO: test owner - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'segmentCount' - */ - @Test - public void segmentCountTest() { - // TODO: test segmentCount - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'media' - */ - @Test - public void mediaTest() { - // TODO: test media - } - - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java deleted file mode 100644 index d63c10a0..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageDeliveredCallbackTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.MessageDeliveredCallbackMessage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageDeliveredCallback - */ -public class MessageDeliveredCallbackTest { - private final MessageDeliveredCallback model = new MessageDeliveredCallback(); - - /** - * Model tests for MessageDeliveredCallback - */ - @Test - public void testMessageDeliveredCallback() { - // TODO: test MessageDeliveredCallback - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java b/src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java deleted file mode 100644 index d2272686..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageDirectionEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageDirectionEnum - */ -public class MessageDirectionEnumTest { - /** - * Model tests for MessageDirectionEnum - */ - @Test - public void testMessageDirectionEnum() { - // TODO: test MessageDirectionEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java b/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java deleted file mode 100644 index f897c144..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackMessageTest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.MessageDirectionEnum; -import com.bandwidth.sdk.model.PriorityEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageFailedCallbackMessage - */ -public class MessageFailedCallbackMessageTest { - private final MessageFailedCallbackMessage model = new MessageFailedCallbackMessage(); - - /** - * Model tests for MessageFailedCallbackMessage - */ - @Test - public void testMessageFailedCallbackMessage() { - // TODO: test MessageFailedCallbackMessage - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'owner' - */ - @Test - public void ownerTest() { - // TODO: test owner - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'segmentCount' - */ - @Test - public void segmentCountTest() { - // TODO: test segmentCount - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'media' - */ - @Test - public void mediaTest() { - // TODO: test media - } - - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java deleted file mode 100644 index 9d65bec5..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageFailedCallbackTest.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.MessageFailedCallbackMessage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageFailedCallback - */ -public class MessageFailedCallbackTest { - private final MessageFailedCallback model = new MessageFailedCallback(); - - /** - * Model tests for MessageFailedCallback - */ - @Test - public void testMessageFailedCallback() { - // TODO: test MessageFailedCallback - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - - /** - * Test the property 'errorCode' - */ - @Test - public void errorCodeTest() { - // TODO: test errorCode - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java b/src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java deleted file mode 100644 index f335c801..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageRequestTest.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.PriorityEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageRequest - */ -public class MessageRequestTest { - private final MessageRequest model = new MessageRequest(); - - /** - * Model tests for MessageRequest - */ - @Test - public void testMessageRequest() { - // TODO: test MessageRequest - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } - - /** - * Test the property 'media' - */ - @Test - public void mediaTest() { - // TODO: test media - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } - - /** - * Test the property 'expiration' - */ - @Test - public void expirationTest() { - // TODO: test expiration - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java b/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java deleted file mode 100644 index ebf99649..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackMessageTest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.MessageDirectionEnum; -import com.bandwidth.sdk.model.PriorityEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageSendingCallbackMessage - */ -public class MessageSendingCallbackMessageTest { - private final MessageSendingCallbackMessage model = new MessageSendingCallbackMessage(); - - /** - * Model tests for MessageSendingCallbackMessage - */ - @Test - public void testMessageSendingCallbackMessage() { - // TODO: test MessageSendingCallbackMessage - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'owner' - */ - @Test - public void ownerTest() { - // TODO: test owner - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'segmentCount' - */ - @Test - public void segmentCountTest() { - // TODO: test segmentCount - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'media' - */ - @Test - public void mediaTest() { - // TODO: test media - } - - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java deleted file mode 100644 index aaaf9b10..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageSendingCallbackTest.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.MessageSendingCallbackMessage; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageSendingCallback - */ -public class MessageSendingCallbackTest { - private final MessageSendingCallback model = new MessageSendingCallback(); - - /** - * Model tests for MessageSendingCallback - */ - @Test - public void testMessageSendingCallback() { - // TODO: test MessageSendingCallback - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java b/src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java deleted file mode 100644 index a7cc6af7..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageStatusEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageStatusEnum - */ -public class MessageStatusEnumTest { - /** - * Model tests for MessageStatusEnum - */ - @Test - public void testMessageStatusEnum() { - // TODO: test MessageStatusEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageTest.java b/src/test/java/com/bandwidth/sdk/model/MessageTest.java deleted file mode 100644 index 47b269da..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageTest.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.MessageDirectionEnum; -import com.bandwidth.sdk.model.PriorityEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.LinkedHashSet; -import java.util.Set; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Message - */ -public class MessageTest { - private final Message model = new Message(); - - /** - * Model tests for Message - */ - @Test - public void testMessage() { - // TODO: test Message - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'owner' - */ - @Test - public void ownerTest() { - // TODO: test owner - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'time' - */ - @Test - public void timeTest() { - // TODO: test time - } - - /** - * Test the property 'segmentCount' - */ - @Test - public void segmentCountTest() { - // TODO: test segmentCount - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'media' - */ - @Test - public void mediaTest() { - // TODO: test media - } - - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'priority' - */ - @Test - public void priorityTest() { - // TODO: test priority - } - - /** - * Test the property 'expiration' - */ - @Test - public void expirationTest() { - // TODO: test expiration - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java b/src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java deleted file mode 100644 index 50ae0c83..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessageTypeEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessageTypeEnum - */ -public class MessageTypeEnumTest { - /** - * Model tests for MessageTypeEnum - */ - @Test - public void testMessageTypeEnum() { - // TODO: test MessageTypeEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessagesListTest.java b/src/test/java/com/bandwidth/sdk/model/MessagesListTest.java deleted file mode 100644 index 90412dd7..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessagesListTest.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.ListMessageItem; -import com.bandwidth.sdk.model.PageInfo; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessagesList - */ -public class MessagesListTest { - private final MessagesList model = new MessagesList(); - - /** - * Model tests for MessagesList - */ - @Test - public void testMessagesList() { - // TODO: test MessagesList - } - - /** - * Test the property 'totalCount' - */ - @Test - public void totalCountTest() { - // TODO: test totalCount - } - - /** - * Test the property 'pageInfo' - */ - @Test - public void pageInfoTest() { - // TODO: test pageInfo - } - - /** - * Test the property 'messages' - */ - @Test - public void messagesTest() { - // TODO: test messages - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java b/src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java deleted file mode 100644 index 8338b314..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessagingCodeResponseTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessagingCodeResponse - */ -public class MessagingCodeResponseTest { - private final MessagingCodeResponse model = new MessagingCodeResponse(); - - /** - * Model tests for MessagingCodeResponse - */ - @Test - public void testMessagingCodeResponse() { - // TODO: test MessagingCodeResponse - } - - /** - * Test the property 'messageId' - */ - @Test - public void messageIdTest() { - // TODO: test messageId - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java deleted file mode 100644 index 9756a881..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MessagingRequestErrorTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MessagingRequestError - */ -public class MessagingRequestErrorTest { - private final MessagingRequestError model = new MessagingRequestError(); - - /** - * Model tests for MessagingRequestError - */ - @Test - public void testMessagingRequestError() { - // TODO: test MessagingRequestError - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java deleted file mode 100644 index 992050c7..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MfaForbiddenRequestErrorTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MfaForbiddenRequestError - */ -public class MfaForbiddenRequestErrorTest { - private final MfaForbiddenRequestError model = new MfaForbiddenRequestError(); - - /** - * Model tests for MfaForbiddenRequestError - */ - @Test - public void testMfaForbiddenRequestError() { - // TODO: test MfaForbiddenRequestError - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java deleted file mode 100644 index 1e6415c5..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MfaRequestErrorTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MfaRequestError - */ -public class MfaRequestErrorTest { - private final MfaRequestError model = new MfaRequestError(); - - /** - * Model tests for MfaRequestError - */ - @Test - public void testMfaRequestError() { - // TODO: test MfaRequestError - } - - /** - * Test the property 'error' - */ - @Test - public void errorTest() { - // TODO: test error - } - - /** - * Test the property 'requestId' - */ - @Test - public void requestIdTest() { - // TODO: test requestId - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java deleted file mode 100644 index 1d21c046..00000000 --- a/src/test/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestErrorTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for MfaUnauthorizedRequestError - */ -public class MfaUnauthorizedRequestErrorTest { - private final MfaUnauthorizedRequestError model = new MfaUnauthorizedRequestError(); - - /** - * Model tests for MfaUnauthorizedRequestError - */ - @Test - public void testMfaUnauthorizedRequestError() { - // TODO: test MfaUnauthorizedRequestError - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/PageInfoTest.java b/src/test/java/com/bandwidth/sdk/model/PageInfoTest.java deleted file mode 100644 index df4448b7..00000000 --- a/src/test/java/com/bandwidth/sdk/model/PageInfoTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PageInfo - */ -public class PageInfoTest { - private final PageInfo model = new PageInfo(); - - /** - * Model tests for PageInfo - */ - @Test - public void testPageInfo() { - // TODO: test PageInfo - } - - /** - * Test the property 'prevPage' - */ - @Test - public void prevPageTest() { - // TODO: test prevPage - } - - /** - * Test the property 'nextPage' - */ - @Test - public void nextPageTest() { - // TODO: test nextPage - } - - /** - * Test the property 'prevPageToken' - */ - @Test - public void prevPageTokenTest() { - // TODO: test prevPageToken - } - - /** - * Test the property 'nextPageToken' - */ - @Test - public void nextPageTokenTest() { - // TODO: test nextPageToken - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java b/src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java deleted file mode 100644 index 07ee2319..00000000 --- a/src/test/java/com/bandwidth/sdk/model/PriorityEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for PriorityEnum - */ -public class PriorityEnumTest { - /** - * Model tests for PriorityEnum - */ - @Test - public void testPriorityEnum() { - // TODO: test PriorityEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java deleted file mode 100644 index 7508dabd..00000000 --- a/src/test/java/com/bandwidth/sdk/model/RecordingAvailableCallbackTest.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.bandwidth.sdk.model.FileFormatEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RecordingAvailableCallback - */ -public class RecordingAvailableCallbackTest { - private final RecordingAvailableCallback model = new RecordingAvailableCallback(); - - /** - * Model tests for RecordingAvailableCallback - */ - @Test - public void testRecordingAvailableCallback() { - // TODO: test RecordingAvailableCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'recordingId' - */ - @Test - public void recordingIdTest() { - // TODO: test recordingId - } - - /** - * Test the property 'mediaUrl' - */ - @Test - public void mediaUrlTest() { - // TODO: test mediaUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - - /** - * Test the property 'fileFormat' - */ - @Test - public void fileFormatTest() { - // TODO: test fileFormat - } - - /** - * Test the property 'channels' - */ - @Test - public void channelsTest() { - // TODO: test channels - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java deleted file mode 100644 index 864fdd90..00000000 --- a/src/test/java/com/bandwidth/sdk/model/RecordingCompleteCallbackTest.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.bandwidth.sdk.model.FileFormatEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RecordingCompleteCallback - */ -public class RecordingCompleteCallbackTest { - private final RecordingCompleteCallback model = new RecordingCompleteCallback(); - - /** - * Model tests for RecordingCompleteCallback - */ - @Test - public void testRecordingCompleteCallback() { - // TODO: test RecordingCompleteCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'recordingId' - */ - @Test - public void recordingIdTest() { - // TODO: test recordingId - } - - /** - * Test the property 'mediaUrl' - */ - @Test - public void mediaUrlTest() { - // TODO: test mediaUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - - /** - * Test the property 'fileFormat' - */ - @Test - public void fileFormatTest() { - // TODO: test fileFormat - } - - /** - * Test the property 'channels' - */ - @Test - public void channelsTest() { - // TODO: test channels - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java deleted file mode 100644 index 08f397e2..00000000 --- a/src/test/java/com/bandwidth/sdk/model/RecordingStateEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RecordingStateEnum - */ -public class RecordingStateEnumTest { - /** - * Model tests for RecordingStateEnum - */ - @Test - public void testRecordingStateEnum() { - // TODO: test RecordingStateEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java deleted file mode 100644 index 0dd53aa4..00000000 --- a/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadataTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RecordingTranscriptionMetadata - */ -public class RecordingTranscriptionMetadataTest { - private final RecordingTranscriptionMetadata model = new RecordingTranscriptionMetadata(); - - /** - * Model tests for RecordingTranscriptionMetadata - */ - @Test - public void testRecordingTranscriptionMetadata() { - // TODO: test RecordingTranscriptionMetadata - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'completedTime' - */ - @Test - public void completedTimeTest() { - // TODO: test completedTime - } - - /** - * Test the property 'url' - */ - @Test - public void urlTest() { - // TODO: test url - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java b/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java deleted file mode 100644 index a44a9cc3..00000000 --- a/src/test/java/com/bandwidth/sdk/model/RecordingTranscriptionsTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.Transcription; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RecordingTranscriptions - */ -public class RecordingTranscriptionsTest { - private final RecordingTranscriptions model = new RecordingTranscriptions(); - - /** - * Model tests for RecordingTranscriptions - */ - @Test - public void testRecordingTranscriptions() { - // TODO: test RecordingTranscriptions - } - - /** - * Test the property 'transcripts' - */ - @Test - public void transcriptsTest() { - // TODO: test transcripts - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java deleted file mode 100644 index ffcef1d1..00000000 --- a/src/test/java/com/bandwidth/sdk/model/RedirectCallbackTest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RedirectCallback - */ -public class RedirectCallbackTest { - private final RedirectCallback model = new RedirectCallback(); - - /** - * Model tests for RedirectCallback - */ - @Test - public void testRedirectCallback() { - // TODO: test RedirectCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java b/src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java deleted file mode 100644 index f6eeab01..00000000 --- a/src/test/java/com/bandwidth/sdk/model/RedirectMethodEnumTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for RedirectMethodEnum - */ -public class RedirectMethodEnumTest { - /** - * Model tests for RedirectMethodEnum - */ - @Test - public void testRedirectMethodEnum() { - // TODO: test RedirectMethodEnum - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/RegionTest.java b/src/test/java/com/bandwidth/sdk/model/RegionTest.java deleted file mode 100644 index c4c36914..00000000 --- a/src/test/java/com/bandwidth/sdk/model/RegionTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.model; - -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Region - */ -public class RegionTest { - /** - * Model tests for Region - */ - @Test - public void testRegion() { - // TODO: test Region - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/StirShakenTest.java b/src/test/java/com/bandwidth/sdk/model/StirShakenTest.java deleted file mode 100644 index 45462150..00000000 --- a/src/test/java/com/bandwidth/sdk/model/StirShakenTest.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for StirShaken - */ -public class StirShakenTest { - private final StirShaken model = new StirShaken(); - - /** - * Model tests for StirShaken - */ - @Test - public void testStirShaken() { - // TODO: test StirShaken - } - - /** - * Test the property 'verstat' - */ - @Test - public void verstatTest() { - // TODO: test verstat - } - - /** - * Test the property 'attestationIndicator' - */ - @Test - public void attestationIndicatorTest() { - // TODO: test attestationIndicator - } - - /** - * Test the property 'originatingId' - */ - @Test - public void originatingIdTest() { - // TODO: test originatingId - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/TagTest.java b/src/test/java/com/bandwidth/sdk/model/TagTest.java deleted file mode 100644 index 4fd046cc..00000000 --- a/src/test/java/com/bandwidth/sdk/model/TagTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Tag - */ -public class TagTest { - private final Tag model = new Tag(); - - /** - * Model tests for Tag - */ - @Test - public void testTag() { - // TODO: test Tag - } - - /** - * Test the property 'key' - */ - @Test - public void keyTest() { - // TODO: test key - } - - /** - * Test the property 'value' - */ - @Test - public void valueTest() { - // TODO: test value - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java b/src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java deleted file mode 100644 index 49ea9a3a..00000000 --- a/src/test/java/com/bandwidth/sdk/model/TnLookupRequestErrorTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TnLookupRequestError - */ -public class TnLookupRequestErrorTest { - private final TnLookupRequestError model = new TnLookupRequestError(); - - /** - * Model tests for TnLookupRequestError - */ - @Test - public void testTnLookupRequestError() { - // TODO: test TnLookupRequestError - } - - /** - * Test the property 'message' - */ - @Test - public void messageTest() { - // TODO: test message - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java b/src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java deleted file mode 100644 index b484a73a..00000000 --- a/src/test/java/com/bandwidth/sdk/model/TranscribeRecordingTest.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallbackMethodEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TranscribeRecording - */ -public class TranscribeRecordingTest { - private final TranscribeRecording model = new TranscribeRecording(); - - /** - * Model tests for TranscribeRecording - */ - @Test - public void testTranscribeRecording() { - // TODO: test TranscribeRecording - } - - /** - * Test the property 'callbackUrl' - */ - @Test - public void callbackUrlTest() { - // TODO: test callbackUrl - } - - /** - * Test the property 'callbackMethod' - */ - @Test - public void callbackMethodTest() { - // TODO: test callbackMethod - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'callbackTimeout' - */ - @Test - public void callbackTimeoutTest() { - // TODO: test callbackTimeout - } - - /** - * Test the property 'detectLanguage' - */ - @Test - public void detectLanguageTest() { - // TODO: test detectLanguage - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java deleted file mode 100644 index 99eefe2f..00000000 --- a/src/test/java/com/bandwidth/sdk/model/TranscriptionAvailableCallbackTest.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.bandwidth.sdk.model.FileFormatEnum; -import com.bandwidth.sdk.model.Transcription; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TranscriptionAvailableCallback - */ -public class TranscriptionAvailableCallbackTest { - private final TranscriptionAvailableCallback model = new TranscriptionAvailableCallback(); - - /** - * Model tests for TranscriptionAvailableCallback - */ - @Test - public void testTranscriptionAvailableCallback() { - // TODO: test TranscriptionAvailableCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'mediaUrl' - */ - @Test - public void mediaUrlTest() { - // TODO: test mediaUrl - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'recordingId' - */ - @Test - public void recordingIdTest() { - // TODO: test recordingId - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'duration' - */ - @Test - public void durationTest() { - // TODO: test duration - } - - /** - * Test the property 'fileFormat' - */ - @Test - public void fileFormatTest() { - // TODO: test fileFormat - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'transcription' - */ - @Test - public void transcriptionTest() { - // TODO: test transcription - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java b/src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java deleted file mode 100644 index 20f2b849..00000000 --- a/src/test/java/com/bandwidth/sdk/model/TranscriptionTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for Transcription - */ -public class TranscriptionTest { - private final Transcription model = new Transcription(); - - /** - * Model tests for Transcription - */ - @Test - public void testTranscription() { - // TODO: test Transcription - } - - /** - * Test the property 'text' - */ - @Test - public void textTest() { - // TODO: test text - } - - /** - * Test the property 'confidence' - */ - @Test - public void confidenceTest() { - // TODO: test confidence - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java deleted file mode 100644 index 3b127e1e..00000000 --- a/src/test/java/com/bandwidth/sdk/model/TransferAnswerCallbackTest.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TransferAnswerCallback - */ -public class TransferAnswerCallbackTest { - private final TransferAnswerCallback model = new TransferAnswerCallback(); - - /** - * Model tests for TransferAnswerCallback - */ - @Test - public void testTransferAnswerCallback() { - // TODO: test TransferAnswerCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java deleted file mode 100644 index 5a482574..00000000 --- a/src/test/java/com/bandwidth/sdk/model/TransferCompleteCallbackTest.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TransferCompleteCallback - */ -public class TransferCompleteCallbackTest { - private final TransferCompleteCallback model = new TransferCompleteCallback(); - - /** - * Model tests for TransferCompleteCallback - */ - @Test - public void testTransferCompleteCallback() { - // TODO: test TransferCompleteCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - - /** - * Test the property 'cause' - */ - @Test - public void causeTest() { - // TODO: test cause - } - - /** - * Test the property 'errorMessage' - */ - @Test - public void errorMessageTest() { - // TODO: test errorMessage - } - - /** - * Test the property 'errorId' - */ - @Test - public void errorIdTest() { - // TODO: test errorId - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java b/src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java deleted file mode 100644 index e9d6a56c..00000000 --- a/src/test/java/com/bandwidth/sdk/model/TransferDisconnectCallbackTest.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallDirectionEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for TransferDisconnectCallback - */ -public class TransferDisconnectCallbackTest { - private final TransferDisconnectCallback model = new TransferDisconnectCallback(); - - /** - * Model tests for TransferDisconnectCallback - */ - @Test - public void testTransferDisconnectCallback() { - // TODO: test TransferDisconnectCallback - } - - /** - * Test the property 'eventType' - */ - @Test - public void eventTypeTest() { - // TODO: test eventType - } - - /** - * Test the property 'eventTime' - */ - @Test - public void eventTimeTest() { - // TODO: test eventTime - } - - /** - * Test the property 'accountId' - */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** - * Test the property 'applicationId' - */ - @Test - public void applicationIdTest() { - // TODO: test applicationId - } - - /** - * Test the property 'from' - */ - @Test - public void fromTest() { - // TODO: test from - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'direction' - */ - @Test - public void directionTest() { - // TODO: test direction - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - - /** - * Test the property 'callUrl' - */ - @Test - public void callUrlTest() { - // TODO: test callUrl - } - - /** - * Test the property 'parentCallId' - */ - @Test - public void parentCallIdTest() { - // TODO: test parentCallId - } - - /** - * Test the property 'enqueuedTime' - */ - @Test - public void enqueuedTimeTest() { - // TODO: test enqueuedTime - } - - /** - * Test the property 'startTime' - */ - @Test - public void startTimeTest() { - // TODO: test startTime - } - - /** - * Test the property 'answerTime' - */ - @Test - public void answerTimeTest() { - // TODO: test answerTime - } - - /** - * Test the property 'endTime' - */ - @Test - public void endTimeTest() { - // TODO: test endTime - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - - /** - * Test the property 'transferCallerId' - */ - @Test - public void transferCallerIdTest() { - // TODO: test transferCallerId - } - - /** - * Test the property 'transferTo' - */ - @Test - public void transferToTest() { - // TODO: test transferTo - } - - /** - * Test the property 'cause' - */ - @Test - public void causeTest() { - // TODO: test cause - } - - /** - * Test the property 'errorMessage' - */ - @Test - public void errorMessageTest() { - // TODO: test errorMessage - } - - /** - * Test the property 'errorId' - */ - @Test - public void errorIdTest() { - // TODO: test errorId - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java b/src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java deleted file mode 100644 index c62c22b6..00000000 --- a/src/test/java/com/bandwidth/sdk/model/UpdateCallRecordingTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.RecordingStateEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UpdateCallRecording - */ -public class UpdateCallRecordingTest { - private final UpdateCallRecording model = new UpdateCallRecording(); - - /** - * Model tests for UpdateCallRecording - */ - @Test - public void testUpdateCallRecording() { - // TODO: test UpdateCallRecording - } - - /** - * Test the property 'state' - */ - @Test - public void stateTest() { - // TODO: test state - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java b/src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java deleted file mode 100644 index 304c437d..00000000 --- a/src/test/java/com/bandwidth/sdk/model/UpdateCallTest.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.CallStateEnum; -import com.bandwidth.sdk.model.RedirectMethodEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UpdateCall - */ -public class UpdateCallTest { - private final UpdateCall model = new UpdateCall(); - - /** - * Model tests for UpdateCall - */ - @Test - public void testUpdateCall() { - // TODO: test UpdateCall - } - - /** - * Test the property 'state' - */ - @Test - public void stateTest() { - // TODO: test state - } - - /** - * Test the property 'redirectUrl' - */ - @Test - public void redirectUrlTest() { - // TODO: test redirectUrl - } - - /** - * Test the property 'redirectMethod' - */ - @Test - public void redirectMethodTest() { - // TODO: test redirectMethod - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'redirectFallbackUrl' - */ - @Test - public void redirectFallbackUrlTest() { - // TODO: test redirectFallbackUrl - } - - /** - * Test the property 'redirectFallbackMethod' - */ - @Test - public void redirectFallbackMethodTest() { - // TODO: test redirectFallbackMethod - } - - /** - * Test the property 'fallbackUsername' - */ - @Test - public void fallbackUsernameTest() { - // TODO: test fallbackUsername - } - - /** - * Test the property 'fallbackPassword' - */ - @Test - public void fallbackPasswordTest() { - // TODO: test fallbackPassword - } - - /** - * Test the property 'tag' - */ - @Test - public void tagTest() { - // TODO: test tag - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java b/src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java deleted file mode 100644 index 1b2400be..00000000 --- a/src/test/java/com/bandwidth/sdk/model/UpdateConferenceMemberTest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UpdateConferenceMember - */ -public class UpdateConferenceMemberTest { - private final UpdateConferenceMember model = new UpdateConferenceMember(); - - /** - * Model tests for UpdateConferenceMember - */ - @Test - public void testUpdateConferenceMember() { - // TODO: test UpdateConferenceMember - } - - /** - * Test the property 'mute' - */ - @Test - public void muteTest() { - // TODO: test mute - } - - /** - * Test the property 'hold' - */ - @Test - public void holdTest() { - // TODO: test hold - } - - /** - * Test the property 'callIdsToCoach' - */ - @Test - public void callIdsToCoachTest() { - // TODO: test callIdsToCoach - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java b/src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java deleted file mode 100644 index 7e5eb9e3..00000000 --- a/src/test/java/com/bandwidth/sdk/model/UpdateConferenceTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * 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.model; - -import com.bandwidth.sdk.model.ConferenceStateEnum; -import com.bandwidth.sdk.model.RedirectMethodEnum; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.net.URI; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for UpdateConference - */ -public class UpdateConferenceTest { - private final UpdateConference model = new UpdateConference(); - - /** - * Model tests for UpdateConference - */ - @Test - public void testUpdateConference() { - // TODO: test UpdateConference - } - - /** - * Test the property 'status' - */ - @Test - public void statusTest() { - // TODO: test status - } - - /** - * Test the property 'redirectUrl' - */ - @Test - public void redirectUrlTest() { - // TODO: test redirectUrl - } - - /** - * Test the property 'redirectMethod' - */ - @Test - public void redirectMethodTest() { - // TODO: test redirectMethod - } - - /** - * Test the property 'username' - */ - @Test - public void usernameTest() { - // TODO: test username - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - - /** - * Test the property 'redirectFallbackUrl' - */ - @Test - public void redirectFallbackUrlTest() { - // TODO: test redirectFallbackUrl - } - - /** - * Test the property 'redirectFallbackMethod' - */ - @Test - public void redirectFallbackMethodTest() { - // TODO: test redirectFallbackMethod - } - - /** - * Test the property 'fallbackUsername' - */ - @Test - public void fallbackUsernameTest() { - // TODO: test fallbackUsername - } - - /** - * Test the property 'fallbackPassword' - */ - @Test - public void fallbackPasswordTest() { - // TODO: test fallbackPassword - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java b/src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java deleted file mode 100644 index 8d4c5574..00000000 --- a/src/test/java/com/bandwidth/sdk/model/VerifyCodeRequestTest.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for VerifyCodeRequest - */ -public class VerifyCodeRequestTest { - private final VerifyCodeRequest model = new VerifyCodeRequest(); - - /** - * Model tests for VerifyCodeRequest - */ - @Test - public void testVerifyCodeRequest() { - // TODO: test VerifyCodeRequest - } - - /** - * Test the property 'to' - */ - @Test - public void toTest() { - // TODO: test to - } - - /** - * Test the property 'scope' - */ - @Test - public void scopeTest() { - // TODO: test scope - } - - /** - * Test the property 'expirationTimeInMinutes' - */ - @Test - public void expirationTimeInMinutesTest() { - // TODO: test expirationTimeInMinutes - } - - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java b/src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java deleted file mode 100644 index b8ef2c6f..00000000 --- a/src/test/java/com/bandwidth/sdk/model/VerifyCodeResponseTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for VerifyCodeResponse - */ -public class VerifyCodeResponseTest { - private final VerifyCodeResponse model = new VerifyCodeResponse(); - - /** - * Model tests for VerifyCodeResponse - */ - @Test - public void testVerifyCodeResponse() { - // TODO: test VerifyCodeResponse - } - - /** - * Test the property 'valid' - */ - @Test - public void validTest() { - // TODO: test valid - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java b/src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java deleted file mode 100644 index e269047e..00000000 --- a/src/test/java/com/bandwidth/sdk/model/VoiceApiErrorTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for VoiceApiError - */ -public class VoiceApiErrorTest { - private final VoiceApiError model = new VoiceApiError(); - - /** - * Model tests for VoiceApiError - */ - @Test - public void testVoiceApiError() { - // TODO: test VoiceApiError - } - - /** - * Test the property 'type' - */ - @Test - public void typeTest() { - // TODO: test type - } - - /** - * Test the property 'description' - */ - @Test - public void descriptionTest() { - // TODO: test description - } - - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - -} diff --git a/src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java b/src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java deleted file mode 100644 index c5bf9234..00000000 --- a/src/test/java/com/bandwidth/sdk/model/VoiceCodeResponseTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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.model; - -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** - * Model tests for VoiceCodeResponse - */ -public class VoiceCodeResponseTest { - private final VoiceCodeResponse model = new VoiceCodeResponse(); - - /** - * Model tests for VoiceCodeResponse - */ - @Test - public void testVoiceCodeResponse() { - // TODO: test VoiceCodeResponse - } - - /** - * Test the property 'callId' - */ - @Test - public void callIdTest() { - // TODO: test callId - } - -} From dbaa17bf7c2bef1594d8ea5600994f33590409bb Mon Sep 17 00:00:00 2001 From: ckoegel Date: Tue, 27 Aug 2024 10:47:41 -0400 Subject: [PATCH 5/5] go back to 7.6 --- .openapi-generator/VERSION | 2 +- README.md | 2 +- build.gradle | 7 +- build.sbt | 5 +- 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 +- .../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 +++--- 94 files changed, 2874 insertions(+), 2834 deletions(-) diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 09a6d308..93c8ddab 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.8.0 +7.6.0 diff --git a/README.md b/README.md index b20224a4..4380cf6b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Bandwidth - API version: 1.0.0 - - Generator version: 7.8.0 + - Generator version: 7.6.0 Bandwidth's Communication APIs diff --git a/build.gradle b/build.gradle index 7e11e0b0..9f33620e 100644 --- a/build.gradle +++ b/build.gradle @@ -112,13 +112,14 @@ 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 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' + implementation 'javax.ws.rs:jsr311-api:1.1.1' + implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' 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.3' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2' testImplementation 'org.mockito:mockito-core:3.12.4' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2' } javadoc { diff --git a/build.sbt b/build.sbt index 8ce42414..c186322a 100644 --- a/build.sbt +++ b/build.sbt @@ -14,13 +14,14 @@ 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", - "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6", + "javax.ws.rs" % "jsr311-api" % "1.1.1", + "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1", "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.3" % "test", + "org.junit.jupiter" % "junit-jupiter-api" % "5.10.2" % "test", "com.novocode" % "junit-interface" % "0.10" % "test", "org.mockito" % "mockito-core" % "3.12.4" % "test" ) diff --git a/openapitools.json b/openapitools.json index 2f4612ce..5c50d6a2 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.8.0" + "version": "7.6.0" } } diff --git a/src/main/java/com/bandwidth/sdk/ApiClient.java b/src/main/java/com/bandwidth/sdk/ApiClient.java index 5307b00f..35e36a6d 100644 --- a/src/main/java/com/bandwidth/sdk/ApiClient.java +++ b/src/main/java/com/bandwidth/sdk/ApiClient.java @@ -735,30 +735,6 @@ 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. * @@ -1197,6 +1173,10 @@ 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 @@ -1224,12 +1204,10 @@ public Request buildRequest(String baseUrl, String path, String method, List updatedQueryParams = new ArrayList<>(queryParams); - // update parameters with authentication settings - updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - final Request.Builder reqBuilder = new Request.Builder().url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); + final Request.Builder reqBuilder = new Request.Builder().url(url); 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 3ec11cbe..a1c6b060 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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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 00719909..612351ee 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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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 fce101a7..0659d01f 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,14 +31,16 @@ 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 @@ -55,6 +57,11 @@ 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() @@ -402,7 +409,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(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); + return new java.sql.Date(sdf.parse(date).getTime()); } catch (ParseException e) { throw new JsonParseException(e); } @@ -412,7 +419,7 @@ public java.sql.Date read(JsonReader in) throws IOException { /** * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, ISO8601Utils will be used. + * If the dateFormat is null, DateTimeFormatter will be used. */ public static class DateTypeAdapter extends TypeAdapter { @@ -437,7 +444,7 @@ public void write(JsonWriter out, Date date) throws IOException { if (dateFormat != null) { value = dateFormat.format(date); } else { - value = ISO8601Utils.format(date, true); + value = date.toInstant().atOffset(ZoneOffset.UTC).format(dtf); } out.value(value); } @@ -456,7 +463,7 @@ public Date read(JsonReader in) throws IOException { if (dateFormat != null) { return dateFormat.parse(date); } - return ISO8601Utils.parse(date, new ParsePosition(0)); + return sdf.parse(date); } 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 315d1d54..bb9a088b 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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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 9576cd00..b02050dc 100644 --- a/src/main/java/com/bandwidth/sdk/ServerConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/ServerConfiguration.java @@ -1,16 +1,3 @@ -/* - * 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; @@ -18,7 +5,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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 d43982c3..bc89b1ba 100644 --- a/src/main/java/com/bandwidth/sdk/ServerVariable.java +++ b/src/main/java/com/bandwidth/sdk/ServerVariable.java @@ -1,16 +1,3 @@ -/* - * 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; @@ -18,7 +5,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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 6eea0913..6b85f153 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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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/auth/ApiKeyAuth.java b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java index 0ff3e900..a091f358 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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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 2f3bc4f8..d313b5b0 100644 --- a/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java @@ -22,6 +22,8 @@ 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 4f4203c2..4d95d13c 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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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 3ae9c1d1..60cd0928 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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.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 d89e7b36..70c75675 100644 --- a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java +++ b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * AccountStatistics */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class AccountStatistics { public static final String SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE = "currentCallQueueSize"; @SerializedName(SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE) @@ -66,10 +67,10 @@ public AccountStatistics currentCallQueueSize(Integer currentCallQueueSize) { return this; } - /** + /** * The number of calls currently enqueued. * @return currentCallQueueSize - */ + **/ @javax.annotation.Nullable public Integer getCurrentCallQueueSize() { return currentCallQueueSize; @@ -85,10 +86,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; @@ -199,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 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 @@ -286,22 +287,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 830afd03..837c8aa0 100644 --- a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java @@ -42,6 +42,7 @@ 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 +54,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class AnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -119,10 +120,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; @@ -138,10 +139,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; @@ -157,10 +158,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; @@ -176,10 +177,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; @@ -195,10 +196,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; @@ -214,10 +215,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; @@ -233,10 +234,10 @@ public AnswerCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -252,10 +253,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; @@ -271,10 +272,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; @@ -290,10 +291,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; @@ -309,10 +310,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; @@ -328,10 +329,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; @@ -347,10 +348,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; @@ -366,10 +367,10 @@ public AnswerCallback machineDetectionResult(MachineDetectionResult machineDetec return this; } - /** + /** * Get machineDetectionResult * @return machineDetectionResult - */ + **/ @javax.annotation.Nullable public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; @@ -527,12 +528,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 @@ -646,22 +647,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 836b0c62..83671f6b 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class BridgeCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -126,10 +127,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; @@ -145,10 +146,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; @@ -164,10 +165,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; @@ -183,10 +184,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; @@ -202,10 +203,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; @@ -221,10 +222,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; @@ -240,10 +241,10 @@ public BridgeCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -259,10 +260,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; @@ -278,10 +279,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; @@ -297,10 +298,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; @@ -316,10 +317,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; @@ -335,10 +336,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; @@ -354,10 +355,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; @@ -373,10 +374,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; @@ -392,10 +393,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; @@ -411,10 +412,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; @@ -578,12 +579,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 @@ -702,22 +703,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 908c0dbc..b7159a07 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class BridgeTargetCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -114,10 +115,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; @@ -133,10 +134,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; @@ -152,10 +153,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; @@ -171,10 +172,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; @@ -190,10 +191,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; @@ -209,10 +210,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; @@ -228,10 +229,10 @@ public BridgeTargetCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -247,10 +248,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; @@ -266,10 +267,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; @@ -285,10 +286,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; @@ -304,10 +305,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; @@ -323,10 +324,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; @@ -342,10 +343,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; @@ -500,12 +501,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 @@ -615,22 +616,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 9befbb02..3ebe6945 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java @@ -43,6 +43,7 @@ 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 +55,7 @@ /** * CallRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CallRecordingMetadata { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -140,10 +141,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; @@ -159,10 +160,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; @@ -178,10 +179,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; @@ -197,10 +198,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; @@ -216,10 +217,10 @@ public CallRecordingMetadata recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - */ + **/ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -235,10 +236,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; @@ -254,10 +255,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; @@ -273,10 +274,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; @@ -292,10 +293,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; @@ -311,10 +312,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; @@ -330,10 +331,10 @@ public CallRecordingMetadata direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -349,10 +350,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; @@ -368,10 +369,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; @@ -387,10 +388,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; @@ -406,10 +407,10 @@ public CallRecordingMetadata fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - */ + **/ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -425,10 +426,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; @@ -444,10 +445,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; @@ -463,10 +464,10 @@ public CallRecordingMetadata transcription(RecordingTranscriptionMetadata transc return this; } - /** + /** * Get transcription * @return transcription - */ + **/ @javax.annotation.Nullable public RecordingTranscriptionMetadata getTranscription() { return transcription; @@ -482,10 +483,10 @@ public CallRecordingMetadata recordingName(String recordingName) { return this; } - /** + /** * A name to identify this recording. * @return recordingName - */ + **/ @javax.annotation.Nullable public String getRecordingName() { return recordingName; @@ -658,12 +659,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 @@ -796,22 +797,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 b59e10af..d0f13890 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallState.java +++ b/src/main/java/com/bandwidth/sdk/model/CallState.java @@ -42,6 +42,7 @@ 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 +54,7 @@ /** * CallState */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CallState { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -135,10 +136,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; @@ -154,10 +155,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; @@ -173,10 +174,10 @@ public CallState callId(String callId) { return this; } - /** + /** * The programmable voice API call ID. * @return callId - */ + **/ @javax.annotation.Nullable public String getCallId() { return callId; @@ -192,10 +193,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; @@ -211,10 +212,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; @@ -230,10 +231,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; @@ -249,10 +250,10 @@ public CallState direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -268,10 +269,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; @@ -295,10 +296,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; @@ -314,10 +315,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; @@ -333,10 +334,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; @@ -352,10 +353,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; @@ -371,10 +372,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; @@ -390,10 +391,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; @@ -409,10 +410,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; @@ -428,10 +429,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; @@ -447,10 +448,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; @@ -466,10 +467,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; @@ -639,12 +640,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 @@ -763,22 +764,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 ea30192f..6508819f 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java @@ -39,6 +39,7 @@ 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 +51,7 @@ /** * CallTranscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CallTranscription { public static final String SERIALIZED_NAME_DETECTED_LANGUAGE = "detectedLanguage"; @SerializedName(SERIALIZED_NAME_DETECTED_LANGUAGE) @@ -76,10 +77,10 @@ public CallTranscription detectedLanguage(CallTranscriptionDetectedLanguageEnum return this; } - /** + /** * Get detectedLanguage * @return detectedLanguage - */ + **/ @javax.annotation.Nullable public CallTranscriptionDetectedLanguageEnum getDetectedLanguage() { return detectedLanguage; @@ -95,10 +96,10 @@ public CallTranscription track(CallTranscriptionTrackEnum track) { return this; } - /** + /** * Get track * @return track - */ + **/ @javax.annotation.Nullable public CallTranscriptionTrackEnum getTrack() { return track; @@ -114,10 +115,10 @@ public CallTranscription transcript(String transcript) { return this; } - /** + /** * The transcription itself. * @return transcript - */ + **/ @javax.annotation.Nullable public String getTranscript() { return transcript; @@ -133,12 +134,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; @@ -255,12 +256,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 @@ -353,22 +354,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 a6790a81..fa0ccf13 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * CallTranscriptionMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CallTranscriptionMetadata { public static final String SERIALIZED_NAME_TRANSCRIPTION_ID = "transcriptionId"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_ID) @@ -70,10 +71,10 @@ public CallTranscriptionMetadata transcriptionId(String transcriptionId) { return this; } - /** + /** * The programmable voice API transcription ID. * @return transcriptionId - */ + **/ @javax.annotation.Nullable public String getTranscriptionId() { return transcriptionId; @@ -89,10 +90,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; @@ -108,10 +109,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; @@ -225,12 +226,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 @@ -321,22 +322,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 fe5c9272..1814433e 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java @@ -40,6 +40,7 @@ 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 +52,7 @@ /** * CallTranscriptionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CallTranscriptionResponse { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -77,10 +78,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; @@ -96,10 +97,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; @@ -115,10 +116,10 @@ public CallTranscriptionResponse transcriptionId(String transcriptionId) { return this; } - /** + /** * The programmable voice API transcription ID. * @return transcriptionId - */ + **/ @javax.annotation.Nullable public String getTranscriptionId() { return transcriptionId; @@ -142,10 +143,10 @@ public CallTranscriptionResponse addTracksItem(CallTranscription tracksItem) { return this; } - /** + /** * Get tracks * @return tracks - */ + **/ @javax.annotation.Nullable public List getTracks() { return tracks; @@ -262,12 +263,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 @@ -372,22 +373,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 fe8614b7..59a827f8 100644 --- a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * CodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -82,10 +83,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; @@ -101,10 +102,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; @@ -120,10 +121,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; @@ -139,10 +140,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; @@ -158,10 +159,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; @@ -177,12 +178,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; @@ -310,12 +311,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 @@ -419,22 +420,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 98ccebc8..509a0b15 100644 --- a/src/main/java/com/bandwidth/sdk/model/Conference.java +++ b/src/main/java/com/bandwidth/sdk/model/Conference.java @@ -44,6 +44,7 @@ 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 +56,7 @@ /** * Conference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class Conference { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -97,10 +98,10 @@ public Conference id(String id) { return this; } - /** + /** * The Bandwidth-generated conference ID. * @return id - */ + **/ @javax.annotation.Nullable public String getId() { return id; @@ -116,10 +117,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; @@ -135,10 +136,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; @@ -154,10 +155,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; @@ -173,10 +174,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; @@ -192,10 +193,10 @@ public Conference conferenceEventMethod(CallbackMethodEnum conferenceEventMethod return this; } - /** + /** * Get conferenceEventMethod * @return conferenceEventMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getConferenceEventMethod() { return conferenceEventMethod; @@ -211,10 +212,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; @@ -238,10 +239,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; @@ -381,12 +382,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 @@ -498,22 +499,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 486a8156..257c8bad 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java @@ -39,6 +39,7 @@ 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 +51,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ConferenceCompletedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -80,10 +81,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; @@ -99,10 +100,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; @@ -118,10 +119,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; @@ -137,10 +138,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; @@ -156,10 +157,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; @@ -290,12 +291,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 @@ -389,22 +390,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 ba3d0685..d0cb449d 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java @@ -39,6 +39,7 @@ 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 +51,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ConferenceCreatedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -80,10 +81,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; @@ -99,10 +100,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; @@ -118,10 +119,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; @@ -137,10 +138,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; @@ -156,10 +157,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; @@ -290,12 +291,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 @@ -389,22 +390,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 0ecbc750..9d1902e5 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java @@ -41,6 +41,7 @@ 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 +53,7 @@ /** * ConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ConferenceMember { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -86,10 +87,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; @@ -105,10 +106,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; @@ -124,10 +125,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; @@ -143,10 +144,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; @@ -162,10 +163,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; @@ -189,10 +190,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; @@ -326,12 +327,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 @@ -426,22 +427,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 11c80c02..ce9ca9f6 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java @@ -39,6 +39,7 @@ 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 +51,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ConferenceMemberExitCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -92,10 +93,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; @@ -111,10 +112,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; @@ -130,10 +131,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; @@ -149,10 +150,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; @@ -168,10 +169,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; @@ -187,10 +188,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; @@ -206,10 +207,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; @@ -225,10 +226,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; @@ -368,12 +369,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 @@ -476,22 +477,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 b04511fa..0aeecc46 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java @@ -39,6 +39,7 @@ 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 +51,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ConferenceMemberJoinCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -92,10 +93,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; @@ -111,10 +112,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; @@ -130,10 +131,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; @@ -149,10 +150,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; @@ -168,10 +169,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; @@ -187,10 +188,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; @@ -206,10 +207,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; @@ -225,10 +226,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; @@ -368,12 +369,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 @@ -476,22 +477,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 e4871ae9..2663f047 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ConferenceRecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -118,10 +119,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; @@ -137,10 +138,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; @@ -156,10 +157,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; @@ -175,10 +176,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; @@ -194,10 +195,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; @@ -213,10 +214,10 @@ public ConferenceRecordingAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - */ + **/ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -232,10 +233,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; @@ -251,10 +252,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; @@ -270,10 +271,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; @@ -289,10 +290,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; @@ -308,10 +309,10 @@ public ConferenceRecordingAvailableCallback fileFormat(FileFormatEnum fileFormat return this; } - /** + /** * Get fileFormat * @return fileFormat - */ + **/ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -327,10 +328,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; @@ -346,10 +347,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; @@ -365,10 +366,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; @@ -526,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 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 @@ -644,22 +645,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 1bec34a8..1dcb0d10 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java @@ -41,6 +41,7 @@ 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 +53,7 @@ /** * ConferenceRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ConferenceRecordingMetadata { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -110,10 +111,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; @@ -129,10 +130,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; @@ -148,10 +149,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; @@ -167,10 +168,10 @@ public ConferenceRecordingMetadata recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - */ + **/ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -186,10 +187,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; @@ -205,10 +206,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; @@ -224,10 +225,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; @@ -243,10 +244,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; @@ -262,10 +263,10 @@ public ConferenceRecordingMetadata fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - */ + **/ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -281,10 +282,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; @@ -300,10 +301,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; @@ -319,10 +320,10 @@ public ConferenceRecordingMetadata recordingName(String recordingName) { return this; } - /** + /** * A name to identify this recording. * @return recordingName - */ + **/ @javax.annotation.Nullable public String getRecordingName() { return recordingName; @@ -474,12 +475,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 @@ -589,22 +590,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 792a6408..0857f61d 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java @@ -39,6 +39,7 @@ 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 +51,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ConferenceRedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -80,10 +81,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; @@ -99,10 +100,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; @@ -118,10 +119,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; @@ -137,10 +138,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; @@ -156,10 +157,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; @@ -290,12 +291,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 @@ -389,22 +390,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 e8ca3306..b232eccb 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCall.java @@ -41,6 +41,7 @@ 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 +53,7 @@ /** * CreateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CreateCall { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -146,10 +147,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; @@ -165,10 +166,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; @@ -184,10 +185,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; @@ -203,10 +204,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; @@ -222,10 +223,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; @@ -241,10 +242,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; @@ -260,10 +261,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; @@ -279,10 +280,10 @@ public CreateCall answerMethod(CallbackMethodEnum answerMethod) { return this; } - /** + /** * Get answerMethod * @return answerMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getAnswerMethod() { return answerMethod; @@ -298,10 +299,10 @@ public CreateCall username(String username) { return this; } - /** + /** * Basic auth username. * @return username - */ + **/ @javax.annotation.Nullable public String getUsername() { return username; @@ -317,10 +318,10 @@ public CreateCall password(String password) { return this; } - /** + /** * Basic auth password. * @return password - */ + **/ @javax.annotation.Nullable public String getPassword() { return password; @@ -336,10 +337,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; @@ -355,10 +356,10 @@ public CreateCall answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) return this; } - /** + /** * Get answerFallbackMethod * @return answerFallbackMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; @@ -374,10 +375,10 @@ public CreateCall fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - */ + **/ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -393,10 +394,10 @@ public CreateCall fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - */ + **/ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -412,10 +413,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; @@ -431,10 +432,10 @@ public CreateCall disconnectMethod(CallbackMethodEnum disconnectMethod) { return this; } - /** + /** * Get disconnectMethod * @return disconnectMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; @@ -450,12 +451,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; @@ -471,12 +472,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; @@ -492,10 +493,10 @@ public CreateCall machineDetection(MachineDetectionConfiguration machineDetectio return this; } - /** + /** * Get machineDetection * @return machineDetection - */ + **/ @javax.annotation.Nullable public MachineDetectionConfiguration getMachineDetection() { return machineDetection; @@ -511,12 +512,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; @@ -532,10 +533,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; @@ -718,12 +719,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 @@ -867,22 +868,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 2a59b716..78bf72b6 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java @@ -41,6 +41,7 @@ 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 +53,7 @@ /** * CreateCallResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CreateCallResponse { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -146,10 +147,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; @@ -165,10 +166,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; @@ -184,10 +185,10 @@ public CreateCallResponse callId(String callId) { return this; } - /** + /** * Programmable Voice API Call ID. * @return callId - */ + **/ @javax.annotation.Nonnull public String getCallId() { return callId; @@ -203,10 +204,10 @@ public CreateCallResponse to(String to) { return this; } - /** + /** * Recipient of the outgoing call. * @return to - */ + **/ @javax.annotation.Nonnull public String getTo() { return to; @@ -222,10 +223,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; @@ -241,10 +242,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; @@ -260,10 +261,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; @@ -279,10 +280,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; @@ -298,10 +299,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; @@ -317,10 +318,10 @@ public CreateCallResponse tag(String tag) { return this; } - /** + /** * Custom tag value. * @return tag - */ + **/ @javax.annotation.Nullable public String getTag() { return tag; @@ -336,10 +337,10 @@ public CreateCallResponse answerMethod(CallbackMethodEnum answerMethod) { return this; } - /** + /** * Get answerMethod * @return answerMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getAnswerMethod() { return answerMethod; @@ -355,10 +356,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; @@ -374,10 +375,10 @@ public CreateCallResponse answerFallbackMethod(CallbackMethodEnum answerFallback return this; } - /** + /** * Get answerFallbackMethod * @return answerFallbackMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; @@ -393,10 +394,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; @@ -412,10 +413,10 @@ public CreateCallResponse disconnectMethod(CallbackMethodEnum disconnectMethod) return this; } - /** + /** * Get disconnectMethod * @return disconnectMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; @@ -431,10 +432,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; @@ -450,10 +451,10 @@ public CreateCallResponse username(String username) { return this; } - /** + /** * Basic auth username. * @return username - */ + **/ @javax.annotation.Nullable public String getUsername() { return username; @@ -469,10 +470,10 @@ public CreateCallResponse password(String password) { return this; } - /** + /** * Basic auth password. * @return password - */ + **/ @javax.annotation.Nullable public String getPassword() { return password; @@ -488,10 +489,10 @@ public CreateCallResponse fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - */ + **/ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -507,10 +508,10 @@ public CreateCallResponse fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - */ + **/ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -526,10 +527,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; @@ -717,12 +718,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 @@ -861,22 +862,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 211b1ccd..35a1012c 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java @@ -38,6 +38,7 @@ 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 +50,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CreateLookupResponse { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -67,10 +68,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; @@ -86,10 +87,10 @@ public CreateLookupResponse status(LookupStatusEnum status) { return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable public LookupStatusEnum getStatus() { return status; @@ -200,12 +201,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 @@ -294,22 +295,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 0f1f7360..9191f939 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java @@ -40,6 +40,7 @@ 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 +52,7 @@ /** * CreateMessageRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class CreateMessageRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -73,10 +74,10 @@ public CreateMessageRequestError type(String type) { return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull public String getType() { return type; @@ -92,10 +93,10 @@ public CreateMessageRequestError description(String description) { return this; } - /** + /** * Get description * @return description - */ + **/ @javax.annotation.Nonnull public String getDescription() { return description; @@ -119,10 +120,10 @@ public CreateMessageRequestError addFieldErrorsItem(FieldError fieldErrorsItem) return this; } - /** + /** * Get fieldErrors * @return fieldErrors - */ + **/ @javax.annotation.Nullable public List getFieldErrors() { return fieldErrors; @@ -238,12 +239,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 @@ -352,22 +353,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 521831e0..ae14eab6 100644 --- a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java +++ b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * DeferredResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class DeferredResult { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) @@ -66,10 +67,10 @@ public DeferredResult result(Object result) { return this; } - /** + /** * Get result * @return result - */ + **/ @javax.annotation.Nullable public Object getResult() { return result; @@ -85,10 +86,10 @@ public DeferredResult setOrExpired(Boolean setOrExpired) { return this; } - /** + /** * Get setOrExpired * @return setOrExpired - */ + **/ @javax.annotation.Nullable public Boolean getSetOrExpired() { return setOrExpired; @@ -199,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 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 @@ -286,22 +287,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 901905dd..ca295a14 100644 --- a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class DisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -130,10 +131,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; @@ -149,10 +150,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; @@ -168,10 +169,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; @@ -187,10 +188,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; @@ -206,10 +207,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; @@ -225,10 +226,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; @@ -244,10 +245,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; @@ -263,10 +264,10 @@ public DisconnectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -282,10 +283,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; @@ -301,10 +302,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; @@ -320,10 +321,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; @@ -339,10 +340,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; @@ -358,10 +359,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; @@ -377,10 +378,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; @@ -396,10 +397,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; @@ -415,10 +416,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; @@ -434,10 +435,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; @@ -604,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 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 @@ -728,22 +729,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 190ff096..3e7ccb17 100644 --- a/src/main/java/com/bandwidth/sdk/model/Diversion.java +++ b/src/main/java/com/bandwidth/sdk/model/Diversion.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * Diversion */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class Diversion { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -86,10 +87,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; @@ -105,10 +106,10 @@ public Diversion privacy(String privacy) { return this; } - /** + /** * off or full * @return privacy - */ + **/ @javax.annotation.Nullable public String getPrivacy() { return privacy; @@ -124,10 +125,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; @@ -143,10 +144,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; @@ -162,10 +163,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; @@ -181,10 +182,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; @@ -200,10 +201,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; @@ -329,12 +330,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 @@ -437,22 +438,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 ef3cfdac..d10fbab4 100644 --- a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class DtmfCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -130,10 +131,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; @@ -149,10 +150,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; @@ -168,10 +169,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; @@ -187,10 +188,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; @@ -206,10 +207,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; @@ -225,10 +226,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; @@ -244,10 +245,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; @@ -263,10 +264,10 @@ public DtmfCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -282,10 +283,10 @@ public DtmfCallback digit(String digit) { return this; } - /** + /** * The digit collected in the call. * @return digit - */ + **/ @javax.annotation.Nullable public String getDigit() { return digit; @@ -301,10 +302,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; @@ -320,10 +321,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; @@ -339,10 +340,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; @@ -358,10 +359,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; @@ -377,10 +378,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; @@ -396,10 +397,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; @@ -415,10 +416,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; @@ -434,10 +435,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; @@ -604,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 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 @@ -731,22 +732,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 8cdf7abb..92914b7e 100644 --- a/src/main/java/com/bandwidth/sdk/model/FieldError.java +++ b/src/main/java/com/bandwidth/sdk/model/FieldError.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * FieldError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class FieldError { public static final String SERIALIZED_NAME_FIELD_NAME = "fieldName"; @SerializedName(SERIALIZED_NAME_FIELD_NAME) @@ -66,10 +67,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; @@ -85,10 +86,10 @@ public FieldError description(String description) { return this; } - /** + /** * The error associated with the field * @return description - */ + **/ @javax.annotation.Nullable public String getDescription() { return description; @@ -199,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 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 @@ -292,22 +293,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 e789af98..77e14b64 100644 --- a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class GatherCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -134,10 +135,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; @@ -153,10 +154,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; @@ -172,10 +173,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; @@ -191,10 +192,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; @@ -210,10 +211,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; @@ -229,10 +230,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; @@ -248,10 +249,10 @@ public GatherCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -267,10 +268,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; @@ -286,10 +287,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; @@ -305,10 +306,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; @@ -324,10 +325,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; @@ -343,10 +344,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; @@ -362,10 +363,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; @@ -381,10 +382,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; @@ -400,10 +401,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; @@ -419,10 +420,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; @@ -438,10 +439,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; @@ -457,10 +458,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; @@ -630,12 +631,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 @@ -760,22 +761,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 251b60c5..8dca880d 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java @@ -39,6 +39,7 @@ 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 +51,7 @@ /** * Inbound Message Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class InboundMessageCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -80,10 +81,10 @@ public InboundMessageCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - */ + **/ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -99,10 +100,10 @@ public InboundMessageCallback type(String type) { return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull public String getType() { return type; @@ -118,10 +119,10 @@ public InboundMessageCallback to(String to) { return this; } - /** + /** * Get to * @return to - */ + **/ @javax.annotation.Nonnull public String getTo() { return to; @@ -137,10 +138,10 @@ public InboundMessageCallback description(String description) { return this; } - /** + /** * Get description * @return description - */ + **/ @javax.annotation.Nonnull public String getDescription() { return description; @@ -156,10 +157,10 @@ public InboundMessageCallback message(InboundMessageCallbackMessage message) { return this; } - /** + /** * Get message * @return message - */ + **/ @javax.annotation.Nonnull public InboundMessageCallbackMessage getMessage() { return message; @@ -284,12 +285,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 @@ -389,22 +390,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 063db4b9..ac08aa7e 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java @@ -45,6 +45,7 @@ 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 +57,7 @@ /** * Inbound Message Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class InboundMessageCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -114,10 +115,10 @@ public InboundMessageCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - */ + **/ @javax.annotation.Nonnull public String getId() { return id; @@ -133,10 +134,10 @@ public InboundMessageCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - */ + **/ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -152,10 +153,10 @@ public InboundMessageCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - */ + **/ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -171,10 +172,10 @@ public InboundMessageCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - */ + **/ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -190,10 +191,10 @@ public InboundMessageCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - */ + **/ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -209,10 +210,10 @@ public InboundMessageCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -236,10 +237,10 @@ public InboundMessageCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - */ + **/ @javax.annotation.Nonnull public Set getTo() { return to; @@ -255,10 +256,10 @@ public InboundMessageCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - */ + **/ @javax.annotation.Nonnull public String getFrom() { return from; @@ -274,10 +275,10 @@ public InboundMessageCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - */ + **/ @javax.annotation.Nonnull public String getText() { return text; @@ -293,10 +294,10 @@ public InboundMessageCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - */ + **/ @javax.annotation.Nullable public String getTag() { return tag; @@ -320,10 +321,10 @@ public InboundMessageCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - */ + **/ @javax.annotation.Nullable public List getMedia() { return media; @@ -339,10 +340,10 @@ public InboundMessageCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - */ + **/ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -492,12 +493,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 @@ -620,22 +621,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 b5f3e3b3..c1a87bd5 100644 --- a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java @@ -42,6 +42,7 @@ 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 +54,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class InitiateCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -111,10 +112,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; @@ -130,10 +131,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; @@ -149,10 +150,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; @@ -168,10 +169,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; @@ -187,10 +188,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; @@ -206,10 +207,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; @@ -225,10 +226,10 @@ public InitiateCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -244,10 +245,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; @@ -263,10 +264,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; @@ -282,10 +283,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; @@ -301,10 +302,10 @@ public InitiateCallback diversion(Diversion diversion) { return this; } - /** + /** * Get diversion * @return diversion - */ + **/ @javax.annotation.Nullable public Diversion getDiversion() { return diversion; @@ -320,10 +321,10 @@ public InitiateCallback stirShaken(StirShaken stirShaken) { return this; } - /** + /** * Get stirShaken * @return stirShaken - */ + **/ @javax.annotation.Nullable public StirShaken getStirShaken() { return stirShaken; @@ -464,12 +465,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 @@ -584,22 +585,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 3781989e..988186b3 100644 --- a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java +++ b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java @@ -42,6 +42,7 @@ 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 +54,7 @@ /** * ListMessageItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class ListMessageItem { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -131,10 +132,10 @@ public ListMessageItem messageId(String messageId) { return this; } - /** + /** * The message id * @return messageId - */ + **/ @javax.annotation.Nullable public String getMessageId() { return messageId; @@ -150,10 +151,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; @@ -169,10 +170,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; @@ -188,10 +189,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; @@ -207,10 +208,10 @@ public ListMessageItem messageStatus(MessageStatusEnum messageStatus) { return this; } - /** + /** * Get messageStatus * @return messageStatus - */ + **/ @javax.annotation.Nullable public MessageStatusEnum getMessageStatus() { return messageStatus; @@ -226,10 +227,10 @@ public ListMessageItem messageDirection(ListMessageDirectionEnum messageDirectio return this; } - /** + /** * Get messageDirection * @return messageDirection - */ + **/ @javax.annotation.Nullable public ListMessageDirectionEnum getMessageDirection() { return messageDirection; @@ -245,10 +246,10 @@ public ListMessageItem messageType(MessageTypeEnum messageType) { return this; } - /** + /** * Get messageType * @return messageType - */ + **/ @javax.annotation.Nullable public MessageTypeEnum getMessageType() { return messageType; @@ -264,10 +265,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; @@ -283,10 +284,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; @@ -302,10 +303,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; @@ -321,10 +322,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; @@ -340,10 +341,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; @@ -359,10 +360,10 @@ public ListMessageItem messageLength(Integer messageLength) { return this; } - /** + /** * The length of the message content. * @return messageLength - */ + **/ @javax.annotation.Nullable public Integer getMessageLength() { return messageLength; @@ -378,10 +379,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; @@ -397,10 +398,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; @@ -416,10 +417,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; @@ -435,10 +436,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; @@ -605,12 +606,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 @@ -725,22 +726,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 2a1118a6..75414526 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java @@ -39,6 +39,7 @@ 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 +51,7 @@ /** * Create phone number lookup request. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class LookupRequest { public static final String SERIALIZED_NAME_TNS = "tns"; @SerializedName(SERIALIZED_NAME_TNS) @@ -72,10 +73,10 @@ public LookupRequest addTnsItem(String tnsItem) { return this; } - /** + /** * Get tns * @return tns - */ + **/ @javax.annotation.Nonnull public List getTns() { return tns; @@ -184,12 +185,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 @@ -284,22 +285,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 f4001240..e9079cb3 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupResult.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupResult.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * Carrier information results for the specified telephone number. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class LookupResult { public static final String SERIALIZED_NAME_RESPONSE_CODE = "Response Code"; @SerializedName(SERIALIZED_NAME_RESPONSE_CODE) @@ -94,10 +95,10 @@ public LookupResult responseCode(Integer responseCode) { return this; } - /** + /** * Our vendor's response code. * @return responseCode - */ + **/ @javax.annotation.Nullable public Integer getResponseCode() { return responseCode; @@ -113,10 +114,10 @@ public LookupResult message(String message) { return this; } - /** + /** * Message associated with the response code. * @return message - */ + **/ @javax.annotation.Nullable public String getMessage() { return message; @@ -132,10 +133,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; @@ -151,10 +152,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; @@ -170,10 +171,10 @@ public LookupResult country(String country) { return this; } - /** + /** * The country of the telephone number. * @return country - */ + **/ @javax.annotation.Nullable public String getCountry() { return country; @@ -189,10 +190,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; @@ -208,10 +209,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; @@ -227,10 +228,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; @@ -246,10 +247,10 @@ public LookupResult mobileNetworkCode(String mobileNetworkCode) { return this; } - /** + /** * The second half of the HNI. * @return mobileNetworkCode - */ + **/ @javax.annotation.Nullable public String getMobileNetworkCode() { return mobileNetworkCode; @@ -381,12 +382,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 @@ -492,22 +493,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 6facf948..dfca01c8 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class LookupStatus { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -78,10 +79,10 @@ public LookupStatus requestId(String requestId) { return this; } - /** + /** * The requestId. * @return requestId - */ + **/ @javax.annotation.Nullable public String getRequestId() { return requestId; @@ -97,10 +98,10 @@ public LookupStatus status(LookupStatusEnum status) { return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable public LookupStatusEnum getStatus() { return status; @@ -124,10 +125,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; @@ -151,10 +152,10 @@ public LookupStatus addFailedTelephoneNumbersItem(String failedTelephoneNumbersI return this; } - /** + /** * The telephone numbers whose lookup failed. * @return failedTelephoneNumbers - */ + **/ @javax.annotation.Nullable public List getFailedTelephoneNumbers() { return failedTelephoneNumbers; @@ -271,12 +272,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 @@ -383,22 +384,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 7df2350d..31ee19f2 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java @@ -42,6 +42,7 @@ 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 +54,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MachineDetectionCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -119,10 +120,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; @@ -138,10 +139,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; @@ -157,10 +158,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; @@ -176,10 +177,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; @@ -195,10 +196,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; @@ -214,10 +215,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; @@ -233,10 +234,10 @@ public MachineDetectionCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -252,10 +253,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; @@ -271,10 +272,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; @@ -290,10 +291,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; @@ -309,10 +310,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; @@ -328,10 +329,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; @@ -347,10 +348,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; @@ -366,10 +367,10 @@ public MachineDetectionCompleteCallback machineDetectionResult(MachineDetectionR return this; } - /** + /** * Get machineDetectionResult * @return machineDetectionResult - */ + **/ @javax.annotation.Nullable public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; @@ -527,12 +528,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 @@ -646,22 +647,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 585aaa92..86785f36 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MachineDetectionConfiguration { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) @@ -122,10 +123,10 @@ public MachineDetectionConfiguration mode(MachineDetectionModeEnum mode) { return this; } - /** + /** * Get mode * @return mode - */ + **/ @javax.annotation.Nullable public MachineDetectionModeEnum getMode() { return mode; @@ -141,10 +142,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; @@ -160,10 +161,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; @@ -179,10 +180,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; @@ -198,10 +199,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; @@ -217,10 +218,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; @@ -236,10 +237,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; @@ -255,10 +256,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; @@ -274,10 +275,10 @@ public MachineDetectionConfiguration callbackMethod(CallbackMethodEnum callbackM return this; } - /** + /** * Get callbackMethod * @return callbackMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getCallbackMethod() { return callbackMethod; @@ -293,10 +294,10 @@ public MachineDetectionConfiguration username(String username) { return this; } - /** + /** * Basic auth username. * @return username - */ + **/ @javax.annotation.Nullable public String getUsername() { return username; @@ -312,10 +313,10 @@ public MachineDetectionConfiguration password(String password) { return this; } - /** + /** * Basic auth password. * @return password - */ + **/ @javax.annotation.Nullable public String getPassword() { return password; @@ -331,10 +332,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; @@ -350,10 +351,10 @@ public MachineDetectionConfiguration fallbackMethod(CallbackMethodEnum fallbackM return this; } - /** + /** * Get fallbackMethod * @return fallbackMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getFallbackMethod() { return fallbackMethod; @@ -369,10 +370,10 @@ public MachineDetectionConfiguration fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - */ + **/ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -388,10 +389,10 @@ public MachineDetectionConfiguration fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - */ + **/ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -552,12 +553,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 @@ -669,22 +670,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 4f215cb7..f3ff2b2e 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MachineDetectionResult { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -66,10 +67,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; @@ -85,10 +86,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; @@ -199,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 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 @@ -292,22 +293,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 e2e019cf..f31d58bf 100644 --- a/src/main/java/com/bandwidth/sdk/model/Media.java +++ b/src/main/java/com/bandwidth/sdk/model/Media.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * Media */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class Media { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -70,10 +71,10 @@ public Media content(String content) { return this; } - /** + /** * Get content * @return content - */ + **/ @javax.annotation.Nullable public String getContent() { return content; @@ -89,10 +90,10 @@ public Media contentLength(Integer contentLength) { return this; } - /** + /** * Get contentLength * @return contentLength - */ + **/ @javax.annotation.Nullable public Integer getContentLength() { return contentLength; @@ -108,10 +109,10 @@ public Media mediaName(String mediaName) { return this; } - /** + /** * Get mediaName * @return mediaName - */ + **/ @javax.annotation.Nullable public String getMediaName() { return mediaName; @@ -225,12 +226,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 @@ -318,22 +319,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 1dd79514..f7893107 100644 --- a/src/main/java/com/bandwidth/sdk/model/Message.java +++ b/src/main/java/com/bandwidth/sdk/model/Message.java @@ -42,6 +42,7 @@ 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 +54,7 @@ /** * Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class Message { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +116,10 @@ public Message id(String id) { return this; } - /** + /** * The id of the message. * @return id - */ + **/ @javax.annotation.Nullable public String getId() { return id; @@ -134,10 +135,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; @@ -153,10 +154,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; @@ -172,10 +173,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; @@ -191,10 +192,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; @@ -210,10 +211,10 @@ public Message direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +238,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; @@ -256,10 +257,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; @@ -283,10 +284,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; @@ -302,10 +303,10 @@ public Message text(String text) { return this; } - /** + /** * The contents of the message. * @return text - */ + **/ @javax.annotation.Nullable public String getText() { return text; @@ -321,10 +322,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; @@ -340,10 +341,10 @@ public Message priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - */ + **/ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -359,10 +360,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; @@ -506,12 +507,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 @@ -627,22 +628,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 335d8efc..fe3ce3db 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java @@ -39,6 +39,7 @@ 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 +51,7 @@ /** * Message Delivered Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessageDeliveredCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -80,10 +81,10 @@ public MessageDeliveredCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - */ + **/ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -99,10 +100,10 @@ public MessageDeliveredCallback type(String type) { return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull public String getType() { return type; @@ -118,10 +119,10 @@ public MessageDeliveredCallback to(String to) { return this; } - /** + /** * Get to * @return to - */ + **/ @javax.annotation.Nonnull public String getTo() { return to; @@ -137,10 +138,10 @@ public MessageDeliveredCallback description(String description) { return this; } - /** + /** * Get description * @return description - */ + **/ @javax.annotation.Nonnull public String getDescription() { return description; @@ -156,10 +157,10 @@ public MessageDeliveredCallback message(MessageDeliveredCallbackMessage message) return this; } - /** + /** * Get message * @return message - */ + **/ @javax.annotation.Nonnull public MessageDeliveredCallbackMessage getMessage() { return message; @@ -284,12 +285,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 @@ -389,22 +390,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 5abed798..dbafd12b 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java @@ -45,6 +45,7 @@ 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 +57,7 @@ /** * Message Delivered Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessageDeliveredCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -114,10 +115,10 @@ public MessageDeliveredCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - */ + **/ @javax.annotation.Nonnull public String getId() { return id; @@ -133,10 +134,10 @@ public MessageDeliveredCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - */ + **/ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -152,10 +153,10 @@ public MessageDeliveredCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - */ + **/ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -171,10 +172,10 @@ public MessageDeliveredCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - */ + **/ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -190,10 +191,10 @@ public MessageDeliveredCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - */ + **/ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -209,10 +210,10 @@ public MessageDeliveredCallbackMessage direction(MessageDirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -236,10 +237,10 @@ public MessageDeliveredCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - */ + **/ @javax.annotation.Nonnull public Set getTo() { return to; @@ -255,10 +256,10 @@ public MessageDeliveredCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - */ + **/ @javax.annotation.Nonnull public String getFrom() { return from; @@ -274,10 +275,10 @@ public MessageDeliveredCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - */ + **/ @javax.annotation.Nonnull public String getText() { return text; @@ -293,10 +294,10 @@ public MessageDeliveredCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - */ + **/ @javax.annotation.Nonnull public String getTag() { return tag; @@ -320,10 +321,10 @@ public MessageDeliveredCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - */ + **/ @javax.annotation.Nullable public List getMedia() { return media; @@ -339,10 +340,10 @@ public MessageDeliveredCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - */ + **/ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -493,12 +494,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 @@ -621,22 +622,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 a216172b..49153874 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java @@ -39,6 +39,7 @@ 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 +51,7 @@ /** * Message Failed Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessageFailedCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -84,10 +85,10 @@ public MessageFailedCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - */ + **/ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -103,10 +104,10 @@ public MessageFailedCallback type(String type) { return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull public String getType() { return type; @@ -122,10 +123,10 @@ public MessageFailedCallback to(String to) { return this; } - /** + /** * Get to * @return to - */ + **/ @javax.annotation.Nonnull public String getTo() { return to; @@ -141,10 +142,10 @@ public MessageFailedCallback description(String description) { return this; } - /** + /** * Get description * @return description - */ + **/ @javax.annotation.Nonnull public String getDescription() { return description; @@ -160,10 +161,10 @@ public MessageFailedCallback message(MessageFailedCallbackMessage message) { return this; } - /** + /** * Get message * @return message - */ + **/ @javax.annotation.Nonnull public MessageFailedCallbackMessage getMessage() { return message; @@ -179,10 +180,10 @@ public MessageFailedCallback errorCode(Integer errorCode) { return this; } - /** + /** * Get errorCode * @return errorCode - */ + **/ @javax.annotation.Nonnull public Integer getErrorCode() { return errorCode; @@ -311,12 +312,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 @@ -416,22 +417,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 88733a8d..12dc3384 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java @@ -45,6 +45,7 @@ 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 +57,7 @@ /** * Message Failed Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessageFailedCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -114,10 +115,10 @@ public MessageFailedCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - */ + **/ @javax.annotation.Nonnull public String getId() { return id; @@ -133,10 +134,10 @@ public MessageFailedCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - */ + **/ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -152,10 +153,10 @@ public MessageFailedCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - */ + **/ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -171,10 +172,10 @@ public MessageFailedCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - */ + **/ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -190,10 +191,10 @@ public MessageFailedCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - */ + **/ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -209,10 +210,10 @@ public MessageFailedCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -236,10 +237,10 @@ public MessageFailedCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - */ + **/ @javax.annotation.Nonnull public Set getTo() { return to; @@ -255,10 +256,10 @@ public MessageFailedCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - */ + **/ @javax.annotation.Nonnull public String getFrom() { return from; @@ -274,10 +275,10 @@ public MessageFailedCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - */ + **/ @javax.annotation.Nonnull public String getText() { return text; @@ -293,10 +294,10 @@ public MessageFailedCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - */ + **/ @javax.annotation.Nonnull public String getTag() { return tag; @@ -320,10 +321,10 @@ public MessageFailedCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - */ + **/ @javax.annotation.Nullable public List getMedia() { return media; @@ -339,10 +340,10 @@ public MessageFailedCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - */ + **/ @javax.annotation.Nonnull public PriorityEnum getPriority() { return priority; @@ -494,12 +495,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("priority"); } - /** - * 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 @@ -620,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 b87a5dd5..44b019c0 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java @@ -44,6 +44,7 @@ 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 +56,7 @@ /** * MessageRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessageRequest { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -97,10 +98,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; @@ -124,10 +125,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; @@ -143,10 +144,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; @@ -162,10 +163,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; @@ -189,10 +190,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; @@ -208,10 +209,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; @@ -227,10 +228,10 @@ public MessageRequest priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - */ + **/ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -246,10 +247,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; @@ -381,12 +382,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 @@ -501,22 +502,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 4e145778..97861788 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java @@ -39,6 +39,7 @@ 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 +51,7 @@ /** * Message Sending Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessageSendingCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -80,10 +81,10 @@ public MessageSendingCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - */ + **/ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -99,10 +100,10 @@ public MessageSendingCallback type(String type) { return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull public String getType() { return type; @@ -118,10 +119,10 @@ public MessageSendingCallback to(String to) { return this; } - /** + /** * Get to * @return to - */ + **/ @javax.annotation.Nonnull public String getTo() { return to; @@ -137,10 +138,10 @@ public MessageSendingCallback description(String description) { return this; } - /** + /** * Get description * @return description - */ + **/ @javax.annotation.Nonnull public String getDescription() { return description; @@ -156,10 +157,10 @@ public MessageSendingCallback message(MessageSendingCallbackMessage message) { return this; } - /** + /** * Get message * @return message - */ + **/ @javax.annotation.Nonnull public MessageSendingCallbackMessage getMessage() { return message; @@ -284,12 +285,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 @@ -389,22 +390,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 690760b2..14f30700 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java @@ -45,6 +45,7 @@ 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 +57,7 @@ /** * Message Sending Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessageSendingCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -114,10 +115,10 @@ public MessageSendingCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - */ + **/ @javax.annotation.Nonnull public String getId() { return id; @@ -133,10 +134,10 @@ public MessageSendingCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - */ + **/ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -152,10 +153,10 @@ public MessageSendingCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - */ + **/ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -171,10 +172,10 @@ public MessageSendingCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - */ + **/ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -190,10 +191,10 @@ public MessageSendingCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - */ + **/ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -209,10 +210,10 @@ public MessageSendingCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -236,10 +237,10 @@ public MessageSendingCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - */ + **/ @javax.annotation.Nonnull public Set getTo() { return to; @@ -255,10 +256,10 @@ public MessageSendingCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - */ + **/ @javax.annotation.Nonnull public String getFrom() { return from; @@ -274,10 +275,10 @@ public MessageSendingCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - */ + **/ @javax.annotation.Nonnull public String getText() { return text; @@ -293,10 +294,10 @@ public MessageSendingCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - */ + **/ @javax.annotation.Nullable public String getTag() { return tag; @@ -320,10 +321,10 @@ public MessageSendingCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - */ + **/ @javax.annotation.Nonnull public List getMedia() { return media; @@ -339,10 +340,10 @@ public MessageSendingCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - */ + **/ @javax.annotation.Nonnull public PriorityEnum getPriority() { return priority; @@ -494,12 +495,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("priority"); } - /** - * 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 @@ -622,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 d91ff841..13bc6bce 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagesList.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagesList.java @@ -41,6 +41,7 @@ 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 +53,7 @@ /** * MessagesList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessagesList { public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) @@ -74,10 +75,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; @@ -93,10 +94,10 @@ public MessagesList pageInfo(PageInfo pageInfo) { return this; } - /** + /** * Get pageInfo * @return pageInfo - */ + **/ @javax.annotation.Nullable public PageInfo getPageInfo() { return pageInfo; @@ -120,10 +121,10 @@ public MessagesList addMessagesItem(ListMessageItem messagesItem) { return this; } - /** + /** * Get messages * @return messages - */ + **/ @javax.annotation.Nullable public List getMessages() { return messages; @@ -237,12 +238,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 @@ -342,22 +343,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 5a032141..d4224fb0 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * MessagingCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessagingCodeResponse { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -62,10 +63,10 @@ public MessagingCodeResponse messageId(String messageId) { return this; } - /** + /** * Messaging API Message ID. * @return messageId - */ + **/ @javax.annotation.Nullable public String getMessageId() { return messageId; @@ -173,12 +174,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 @@ -263,22 +264,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 a2cf3027..8097ac14 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * MessagingRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MessagingRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -66,10 +67,10 @@ public MessagingRequestError type(String type) { return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nonnull public String getType() { return type; @@ -85,10 +86,10 @@ public MessagingRequestError description(String description) { return this; } - /** + /** * Get description * @return description - */ + **/ @javax.annotation.Nonnull public String getDescription() { return description; @@ -201,12 +202,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 @@ -301,22 +302,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 bbaa6394..96e1f5ee 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * MfaForbiddenRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MfaForbiddenRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -62,10 +63,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; @@ -173,12 +174,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 @@ -263,22 +264,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 bd89a5f3..fec8d616 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * MfaRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MfaRequestError { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -66,10 +67,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; @@ -85,10 +86,10 @@ public MfaRequestError requestId(String requestId) { return this; } - /** + /** * The associated requestId from AWS. * @return requestId - */ + **/ @javax.annotation.Nullable public String getRequestId() { return requestId; @@ -199,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 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 @@ -292,22 +293,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 66dd0acb..1c9d9966 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * MfaUnauthorizedRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class MfaUnauthorizedRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -62,10 +63,10 @@ public MfaUnauthorizedRequestError message(String message) { return this; } - /** + /** * Unauthorized * @return message - */ + **/ @javax.annotation.Nullable public String getMessage() { return message; @@ -173,12 +174,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 @@ -263,22 +264,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 3cb89cd6..fdc30505 100644 --- a/src/main/java/com/bandwidth/sdk/model/PageInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/PageInfo.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * PageInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class PageInfo { public static final String SERIALIZED_NAME_PREV_PAGE = "prevPage"; @SerializedName(SERIALIZED_NAME_PREV_PAGE) @@ -74,10 +75,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; @@ -93,10 +94,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; @@ -112,10 +113,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; @@ -131,10 +132,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; @@ -251,12 +252,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 @@ -350,22 +351,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 4b3b196b..d1972c60 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java @@ -42,6 +42,7 @@ 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 +54,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class RecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -151,10 +152,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; @@ -170,10 +171,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; @@ -189,10 +190,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; @@ -208,10 +209,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; @@ -227,10 +228,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; @@ -246,10 +247,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; @@ -265,10 +266,10 @@ public RecordingAvailableCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -284,10 +285,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; @@ -303,10 +304,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; @@ -322,10 +323,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; @@ -341,10 +342,10 @@ public RecordingAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - */ + **/ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -360,10 +361,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; @@ -379,10 +380,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; @@ -398,10 +399,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; @@ -417,10 +418,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; @@ -436,10 +437,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; @@ -455,10 +456,10 @@ public RecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - */ + **/ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -474,10 +475,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; @@ -493,10 +494,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; @@ -512,10 +513,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; @@ -531,10 +532,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; @@ -550,10 +551,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; @@ -735,12 +736,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 @@ -875,22 +876,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 1482039e..92fd8347 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java @@ -42,6 +42,7 @@ 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 +54,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class RecordingCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -151,10 +152,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; @@ -170,10 +171,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; @@ -189,10 +190,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; @@ -208,10 +209,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; @@ -227,10 +228,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; @@ -246,10 +247,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; @@ -265,10 +266,10 @@ public RecordingCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -284,10 +285,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; @@ -303,10 +304,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; @@ -322,10 +323,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; @@ -341,10 +342,10 @@ public RecordingCompleteCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - */ + **/ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -360,10 +361,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; @@ -379,10 +380,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; @@ -398,10 +399,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; @@ -417,10 +418,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; @@ -436,10 +437,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; @@ -455,10 +456,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; @@ -474,10 +475,10 @@ public RecordingCompleteCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - */ + **/ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -493,10 +494,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; @@ -512,10 +513,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; @@ -531,10 +532,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; @@ -550,10 +551,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; @@ -735,12 +736,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 @@ -872,22 +873,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 afae64a5..6ef1583f 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java @@ -39,6 +39,7 @@ 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 +51,7 @@ /** * If the recording was transcribed, metadata about the transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class RecordingTranscriptionMetadata { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -76,10 +77,10 @@ public RecordingTranscriptionMetadata id(String id) { return this; } - /** + /** * The unique transcription ID * @return id - */ + **/ @javax.annotation.Nullable public String getId() { return id; @@ -95,10 +96,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; @@ -114,10 +115,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; @@ -133,10 +134,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; @@ -253,12 +254,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 @@ -349,22 +350,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 c09377bc..96087470 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java @@ -40,6 +40,7 @@ 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 +52,7 @@ /** * RecordingTranscriptions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class RecordingTranscriptions { public static final String SERIALIZED_NAME_TRANSCRIPTS = "transcripts"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTS) @@ -73,10 +74,10 @@ public RecordingTranscriptions addTranscriptsItem(Transcription transcriptsItem) return this; } - /** + /** * Get transcripts * @return transcripts - */ + **/ @javax.annotation.Nullable public List getTranscripts() { return transcripts; @@ -184,12 +185,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 @@ -285,22 +286,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 4b45963c..fbd94765 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class RedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -126,10 +127,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; @@ -145,10 +146,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; @@ -164,10 +165,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; @@ -183,10 +184,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; @@ -202,10 +203,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; @@ -221,10 +222,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; @@ -240,10 +241,10 @@ public RedirectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -259,10 +260,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; @@ -278,10 +279,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; @@ -297,10 +298,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; @@ -316,10 +317,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; @@ -335,10 +336,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; @@ -354,10 +355,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; @@ -373,10 +374,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; @@ -392,10 +393,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; @@ -411,10 +412,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; @@ -578,12 +579,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 @@ -702,22 +703,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 7baea815..ce8dc501 100644 --- a/src/main/java/com/bandwidth/sdk/model/StirShaken.java +++ b/src/main/java/com/bandwidth/sdk/model/StirShaken.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * StirShaken */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class StirShaken { public static final String SERIALIZED_NAME_VERSTAT = "verstat"; @SerializedName(SERIALIZED_NAME_VERSTAT) @@ -70,10 +71,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; @@ -89,10 +90,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; @@ -108,10 +109,10 @@ public StirShaken originatingId(String originatingId) { return this; } - /** + /** * (optional) A unique origination identifier. * @return originatingId - */ + **/ @javax.annotation.Nullable public String getOriginatingId() { return originatingId; @@ -225,12 +226,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 @@ -321,22 +322,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 d34aabd4..0607f53c 100644 --- a/src/main/java/com/bandwidth/sdk/model/Tag.java +++ b/src/main/java/com/bandwidth/sdk/model/Tag.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * Tag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class Tag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -66,10 +67,10 @@ public Tag key(String key) { return this; } - /** + /** * Get key * @return key - */ + **/ @javax.annotation.Nullable public String getKey() { return key; @@ -85,10 +86,10 @@ public Tag value(String value) { return this; } - /** + /** * Get value * @return value - */ + **/ @javax.annotation.Nullable public String getValue() { return value; @@ -199,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 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 @@ -292,22 +293,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 d7ff7324..8737295b 100644 --- a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * TnLookupRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class TnLookupRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -62,10 +63,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; @@ -173,12 +174,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 @@ -263,22 +264,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 f3eba021..4bcf208f 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java @@ -40,6 +40,7 @@ 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 +52,7 @@ /** * TranscribeRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class TranscribeRecording { public static final String SERIALIZED_NAME_CALLBACK_URL = "callbackUrl"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) @@ -89,10 +90,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; @@ -108,10 +109,10 @@ public TranscribeRecording callbackMethod(CallbackMethodEnum callbackMethod) { return this; } - /** + /** * Get callbackMethod * @return callbackMethod - */ + **/ @javax.annotation.Nullable public CallbackMethodEnum getCallbackMethod() { return callbackMethod; @@ -127,10 +128,10 @@ public TranscribeRecording username(String username) { return this; } - /** + /** * Basic auth username. * @return username - */ + **/ @javax.annotation.Nullable public String getUsername() { return username; @@ -146,10 +147,10 @@ public TranscribeRecording password(String password) { return this; } - /** + /** * Basic auth password. * @return password - */ + **/ @javax.annotation.Nullable public String getPassword() { return password; @@ -165,10 +166,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; @@ -184,12 +185,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; @@ -205,10 +206,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; @@ -345,12 +346,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 @@ -448,22 +449,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 a99672e9..69a77729 100644 --- a/src/main/java/com/bandwidth/sdk/model/Transcription.java +++ b/src/main/java/com/bandwidth/sdk/model/Transcription.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * Transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class Transcription { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -66,10 +67,10 @@ public Transcription text(String text) { return this; } - /** + /** * The transcribed text * @return text - */ + **/ @javax.annotation.Nullable public String getText() { return text; @@ -85,10 +86,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; @@ -199,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 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 @@ -289,22 +290,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 30acbb65..ad62e343 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java @@ -43,6 +43,7 @@ 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 +55,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class TranscriptionAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -148,10 +149,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; @@ -167,10 +168,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; @@ -186,10 +187,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; @@ -205,10 +206,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; @@ -224,10 +225,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; @@ -243,10 +244,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; @@ -262,10 +263,10 @@ public TranscriptionAvailableCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -281,10 +282,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; @@ -300,10 +301,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; @@ -319,10 +320,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; @@ -338,10 +339,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; @@ -357,10 +358,10 @@ public TranscriptionAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - */ + **/ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -376,10 +377,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; @@ -395,10 +396,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; @@ -414,10 +415,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; @@ -433,10 +434,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; @@ -452,10 +453,10 @@ public TranscriptionAvailableCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - */ + **/ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -471,10 +472,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; @@ -490,10 +491,10 @@ public TranscriptionAvailableCallback transcription(Transcription transcription) return this; } - /** + /** * Get transcription * @return transcription - */ + **/ @javax.annotation.Nullable public Transcription getTranscription() { return transcription; @@ -509,10 +510,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; @@ -528,10 +529,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; @@ -710,12 +711,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 @@ -851,22 +852,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 ec82efab..d8ced07f 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class TransferAnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -122,10 +123,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; @@ -141,10 +142,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; @@ -160,10 +161,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; @@ -179,10 +180,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; @@ -198,10 +199,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; @@ -217,10 +218,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; @@ -236,10 +237,10 @@ public TransferAnswerCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -255,10 +256,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; @@ -274,10 +275,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; @@ -293,10 +294,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; @@ -312,10 +313,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; @@ -331,10 +332,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; @@ -350,10 +351,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; @@ -369,10 +370,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; @@ -388,10 +389,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; @@ -552,12 +553,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 @@ -673,22 +674,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 580a9708..bdabf015 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class TransferCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -134,10 +135,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; @@ -153,10 +154,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; @@ -172,10 +173,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; @@ -191,10 +192,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; @@ -210,10 +211,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; @@ -229,10 +230,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; @@ -248,10 +249,10 @@ public TransferCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -267,10 +268,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; @@ -286,10 +287,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; @@ -305,10 +306,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; @@ -324,10 +325,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; @@ -343,10 +344,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; @@ -362,10 +363,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; @@ -381,10 +382,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; @@ -400,10 +401,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; @@ -419,10 +420,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; @@ -438,10 +439,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; @@ -457,10 +458,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; @@ -630,12 +631,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 @@ -760,22 +761,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 20e7149b..dec8165b 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java @@ -41,6 +41,7 @@ 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 +53,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.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class TransferDisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -142,10 +143,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; @@ -161,10 +162,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; @@ -180,10 +181,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; @@ -199,10 +200,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; @@ -218,10 +219,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; @@ -237,10 +238,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; @@ -256,10 +257,10 @@ public TransferDisconnectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - */ + **/ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -275,10 +276,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; @@ -294,10 +295,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; @@ -313,10 +314,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; @@ -332,10 +333,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; @@ -351,10 +352,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; @@ -370,10 +371,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; @@ -389,10 +390,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; @@ -408,10 +409,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; @@ -427,10 +428,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; @@ -446,10 +447,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; @@ -465,10 +466,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; @@ -484,10 +485,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; @@ -503,10 +504,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; @@ -682,12 +683,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 @@ -815,22 +816,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 08abb6b4..dd2cc35c 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java @@ -41,6 +41,7 @@ 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 +53,7 @@ /** * UpdateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class UpdateCall { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -102,10 +103,10 @@ public UpdateCall state(CallStateEnum state) { return this; } - /** + /** * Get state * @return state - */ + **/ @javax.annotation.Nullable public CallStateEnum getState() { return state; @@ -121,10 +122,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; @@ -140,10 +141,10 @@ public UpdateCall redirectMethod(RedirectMethodEnum redirectMethod) { return this; } - /** + /** * Get redirectMethod * @return redirectMethod - */ + **/ @javax.annotation.Nullable public RedirectMethodEnum getRedirectMethod() { return redirectMethod; @@ -159,10 +160,10 @@ public UpdateCall username(String username) { return this; } - /** + /** * Basic auth username. * @return username - */ + **/ @javax.annotation.Nullable public String getUsername() { return username; @@ -178,10 +179,10 @@ public UpdateCall password(String password) { return this; } - /** + /** * Basic auth password. * @return password - */ + **/ @javax.annotation.Nullable public String getPassword() { return password; @@ -197,10 +198,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; @@ -216,10 +217,10 @@ public UpdateCall redirectFallbackMethod(RedirectMethodEnum redirectFallbackMeth return this; } - /** + /** * Get redirectFallbackMethod * @return redirectFallbackMethod - */ + **/ @javax.annotation.Nullable public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; @@ -235,10 +236,10 @@ public UpdateCall fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - */ + **/ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -254,10 +255,10 @@ public UpdateCall fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - */ + **/ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -273,10 +274,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; @@ -422,12 +423,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 @@ -542,22 +543,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 fa9d3621..b7eec69c 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java @@ -38,6 +38,7 @@ 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 +50,7 @@ /** * UpdateCallRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class UpdateCallRecording { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -63,10 +64,10 @@ public UpdateCallRecording state(RecordingStateEnum state) { return this; } - /** + /** * Get state * @return state - */ + **/ @javax.annotation.Nonnull public RecordingStateEnum getState() { return state; @@ -175,12 +176,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 @@ -271,22 +272,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 513093a1..511da727 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java @@ -41,6 +41,7 @@ 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 +53,7 @@ /** * UpdateConference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class UpdateConference { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -98,10 +99,10 @@ public UpdateConference status(ConferenceStateEnum status) { return this; } - /** + /** * Get status * @return status - */ + **/ @javax.annotation.Nullable public ConferenceStateEnum getStatus() { return status; @@ -117,10 +118,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; @@ -136,10 +137,10 @@ public UpdateConference redirectMethod(RedirectMethodEnum redirectMethod) { return this; } - /** + /** * Get redirectMethod * @return redirectMethod - */ + **/ @javax.annotation.Nullable public RedirectMethodEnum getRedirectMethod() { return redirectMethod; @@ -155,10 +156,10 @@ public UpdateConference username(String username) { return this; } - /** + /** * Basic auth username. * @return username - */ + **/ @javax.annotation.Nullable public String getUsername() { return username; @@ -174,10 +175,10 @@ public UpdateConference password(String password) { return this; } - /** + /** * Basic auth password. * @return password - */ + **/ @javax.annotation.Nullable public String getPassword() { return password; @@ -193,10 +194,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; @@ -212,10 +213,10 @@ public UpdateConference redirectFallbackMethod(RedirectMethodEnum redirectFallba return this; } - /** + /** * Get redirectFallbackMethod * @return redirectFallbackMethod - */ + **/ @javax.annotation.Nullable public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; @@ -231,10 +232,10 @@ public UpdateConference fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - */ + **/ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -250,10 +251,10 @@ public UpdateConference fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - */ + **/ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -396,12 +397,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 @@ -513,22 +514,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 e48f5d0c..d80e102f 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java @@ -40,6 +40,7 @@ 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 +52,7 @@ /** * UpdateConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class UpdateConferenceMember { public static final String SERIALIZED_NAME_MUTE = "mute"; @SerializedName(SERIALIZED_NAME_MUTE) @@ -73,10 +74,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; @@ -92,10 +93,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; @@ -119,10 +120,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; @@ -247,12 +248,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 @@ -338,22 +339,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 199065c5..9bf0a02d 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java @@ -38,6 +38,7 @@ 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 +50,7 @@ /** * VerifyCodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class VerifyCodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -75,10 +76,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; @@ -94,10 +95,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; @@ -113,12 +114,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; @@ -134,10 +135,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; @@ -257,12 +258,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 @@ -360,22 +361,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 8d48ef17..397c5e6c 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * VerifyCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class VerifyCodeResponse { public static final String SERIALIZED_NAME_VALID = "valid"; @SerializedName(SERIALIZED_NAME_VALID) @@ -62,10 +63,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; @@ -173,12 +174,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 @@ -260,22 +261,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 4c8aa0b9..5d049049 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java @@ -38,6 +38,7 @@ 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 +50,7 @@ /** * VoiceApiError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class VoiceApiError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -71,10 +72,10 @@ public VoiceApiError type(String type) { return this; } - /** + /** * Get type * @return type - */ + **/ @javax.annotation.Nullable public String getType() { return type; @@ -90,10 +91,10 @@ public VoiceApiError description(String description) { return this; } - /** + /** * Get description * @return description - */ + **/ @javax.annotation.Nullable public String getDescription() { return description; @@ -109,10 +110,10 @@ public VoiceApiError id(String id) { return this; } - /** + /** * Get id * @return id - */ + **/ @javax.annotation.Nullable public String getId() { return id; @@ -237,12 +238,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 @@ -333,22 +334,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 17e4ced7..7976d567 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java @@ -37,6 +37,7 @@ 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; @@ -48,7 +49,7 @@ /** * VoiceCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") public class VoiceCodeResponse { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -62,10 +63,10 @@ public VoiceCodeResponse callId(String callId) { return this; } - /** + /** * Programmable Voice API Call ID. * @return callId - */ + **/ @javax.annotation.Nullable public String getCallId() { return callId; @@ -173,12 +174,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 @@ -263,22 +264,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); }
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -