diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 87bdbb9a..09c43c7e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -233,5 +233,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/model/CallTranscriptionDetectedLanguageEnumTest.java -src/test/java/com/bandwidth/sdk/model/CallTranscriptionTrackEnumTest.java diff --git a/api/openapi.yaml b/api/openapi.yaml index 4f239468..67afdbb0 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -796,7 +796,7 @@ paths: items: $ref: '#/components/schemas/callState' type: array - description: Calls retrieved successfully + description: OK "400": content: application/json: @@ -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 @@ -1038,7 +1038,7 @@ paths: application/json: schema: $ref: '#/components/schemas/callState' - description: Call found + description: OK "400": content: application/json: @@ -1150,7 +1150,7 @@ paths: $ref: '#/components/requestBodies/updateCallRequest' responses: "200": - description: Call was successfully modified. + description: OK "400": content: application/json: @@ -1453,7 +1453,7 @@ paths: items: $ref: '#/components/schemas/conference' type: array - description: Conferences retrieved successfully + description: OK "400": content: application/json: @@ -1570,7 +1570,7 @@ paths: application/json: schema: $ref: '#/components/schemas/conference' - description: Conferences retrieved successfully + description: OK "400": content: application/json: @@ -1924,7 +1924,7 @@ paths: application/json: schema: $ref: '#/components/schemas/conferenceMember' - description: Conference member found + description: OK "400": content: application/json: @@ -2165,7 +2165,7 @@ paths: items: $ref: '#/components/schemas/conferenceRecordingMetadata' type: array - description: Conference recordings retrieved successfully + description: OK "400": content: application/json: @@ -2291,7 +2291,7 @@ paths: application/json: schema: $ref: '#/components/schemas/conferenceRecordingMetadata' - description: Conference recording found + description: OK "400": content: application/json: @@ -2422,7 +2422,7 @@ paths: schema: format: binary type: string - description: Media found + description: OK "400": content: application/json: @@ -2576,7 +2576,7 @@ paths: items: $ref: '#/components/schemas/callRecordingMetadata' type: array - description: Recordings retrieved successfully + description: OK "400": content: application/json: @@ -2691,7 +2691,7 @@ paths: $ref: '#/components/requestBodies/updateCallRecordingRequest' responses: "200": - description: Recording state was successfully modified. + description: OK "400": content: application/json: @@ -2813,7 +2813,7 @@ paths: items: $ref: '#/components/schemas/callRecordingMetadata' type: array - description: Recordings retrieved successfully + description: OK "400": content: application/json: @@ -3060,7 +3060,7 @@ paths: application/json: schema: $ref: '#/components/schemas/callRecordingMetadata' - description: Recording found + description: OK "400": content: application/json: @@ -3309,7 +3309,7 @@ paths: schema: format: binary type: string - description: Media found + description: OK "400": content: application/json: @@ -3562,7 +3562,7 @@ paths: application/json: schema: $ref: '#/components/schemas/recordingTranscriptions' - description: Transcription found. + description: OK "400": content: application/json: @@ -3794,7 +3794,7 @@ paths: application/json: schema: $ref: '#/components/schemas/accountStatistics' - description: Statistics Found + description: OK "400": content: application/json: @@ -3911,7 +3911,7 @@ paths: application/json: schema: $ref: '#/components/schemas/callTranscriptionMetadataList' - description: Transcription found. + description: OK "400": content: application/json: @@ -4036,7 +4036,7 @@ paths: style: simple responses: "200": - description: Transcription data was deleted. + description: No Content "400": content: application/json: @@ -4159,7 +4159,7 @@ paths: application/json: schema: $ref: '#/components/schemas/callTranscriptionResponse' - description: Transcription found. + description: OK "400": content: application/json: @@ -5649,7 +5649,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 +5662,9 @@ components: application/json: schema: $ref: '#/components/schemas/callState' - description: Call found + description: OK + updateCallResponse: + description: OK listCallsResponse: content: application/json: @@ -5670,13 +5672,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 +5688,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 +5705,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 +5736,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 +5756,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 +5975,8 @@ components: schema: $ref: '#/components/schemas/tnLookupRequestError' description: Unsupported Media Type + tnLookupNotFoundError: + description: Not Found tnLookupTooManyRequestsError: content: application/json: @@ -7686,6 +7692,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: |- @@ -8170,6 +8177,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\ @@ -8248,6 +8256,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\ @@ -8341,6 +8350,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\ @@ -8725,6 +8735,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\ @@ -8825,6 +8836,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\ @@ -8920,6 +8932,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\ @@ -9016,6 +9029,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." @@ -9076,6 +9090,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\ @@ -9153,6 +9168,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 ,\ @@ -9270,6 +9286,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 ,\ @@ -9390,6 +9407,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 ,\ @@ -9479,6 +9497,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 @@ -9591,6 +9610,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\ @@ -9677,6 +9697,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\ @@ -9782,6 +9803,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 ,\ @@ -9979,6 +10001,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 ,\ diff --git a/bandwidth.yml b/bandwidth.yml index e0b5f0dc..5362a7c5 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -377,7 +377,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 +777,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 +1324,7 @@ paths: '403': $ref: '#/components/responses/tnLookupForbiddenError' '404': - description: Not Found + $ref: '#/components/responses/tnLookupNotFoundError' '429': $ref: '#/components/responses/tnLookupTooManyRequestsError' '500': @@ -2919,6 +2919,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 +4277,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 +4737,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 +4751,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 +4767,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 +4783,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 +4800,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 +4831,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 +4851,7 @@ components: items: $ref: '#/components/schemas/conferenceRecordingMetadata' getConferenceRecordingResponse: - description: Conference recording found + description: OK content: application/json: schema: @@ -5068,6 +5074,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: 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/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/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/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/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
Status Code Description Response Headers
200 Conferences retrieved successfully -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
- + @@ -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/model/AnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java index 2dfc3428..837c8aa0 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; @@ -89,7 +90,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) @@ -266,7 +267,7 @@ public void setCallId(String callId) { } - public AnswerCallback callUrl(String callUrl) { + public AnswerCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -276,11 +277,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java index c297c96f..83671f6b 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; @@ -88,7 +89,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) @@ -273,7 +274,7 @@ public void setCallId(String callId) { } - public BridgeCompleteCallback callUrl(String callUrl) { + public BridgeCompleteCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -283,11 +284,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java index 5b6fde22..b7159a07 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; @@ -88,7 +89,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) @@ -261,7 +262,7 @@ public void setCallId(String callId) { } - public BridgeTargetCompleteCallback callUrl(String callUrl) { + public BridgeTargetCompleteCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -271,11 +272,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java index ebae4f4a..9d1902e5 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; @@ -64,7 +65,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) @@ -119,7 +120,7 @@ public void setConferenceId(String conferenceId) { } - public ConferenceMember memberUrl(String memberUrl) { + public ConferenceMember memberUrl(URI memberUrl) { this.memberUrl = memberUrl; return this; } @@ -129,11 +130,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java index 29f7fd01..ca295a14 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; @@ -88,7 +89,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) @@ -277,7 +278,7 @@ public void setDirection(CallDirectionEnum direction) { } - public DisconnectCallback callUrl(String callUrl) { + public DisconnectCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -287,11 +288,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java index 67912c33..d10fbab4 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; @@ -92,7 +93,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) @@ -296,7 +297,7 @@ public void setDigit(String digit) { } - public DtmfCallback callUrl(String callUrl) { + public DtmfCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -306,11 +307,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java index e635fd05..77e14b64 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; @@ -92,7 +93,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) @@ -300,7 +301,7 @@ public void setDigits(String digits) { } - public GatherCallback callUrl(String callUrl) { + public GatherCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -310,11 +311,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java index 52b0ef46..c1a87bd5 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; @@ -89,7 +90,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) @@ -258,7 +259,7 @@ public void setCallId(String callId) { } - public InitiateCallback callUrl(String callUrl) { + public InitiateCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -268,11 +269,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java index e3e46763..31ee19f2 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; @@ -89,7 +90,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) @@ -266,7 +267,7 @@ public void setCallId(String callId) { } - public MachineDetectionCompleteCallback callUrl(String callUrl) { + public MachineDetectionCompleteCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -276,11 +277,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java index 7921781a..d1972c60 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java @@ -90,7 +90,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) @@ -299,7 +299,7 @@ public void setCallId(String callId) { } - public RecordingAvailableCallback callUrl(String callUrl) { + public RecordingAvailableCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -309,11 +309,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java index 0f7ea796..92fd8347 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java @@ -90,7 +90,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) @@ -299,7 +299,7 @@ public void setCallId(String callId) { } - public RecordingCompleteCallback callUrl(String callUrl) { + public RecordingCompleteCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -309,11 +309,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java index 352bf6d1..fbd94765 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; @@ -88,7 +89,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) @@ -273,7 +274,7 @@ public void setCallId(String callId) { } - public RedirectCallback callUrl(String callUrl) { + public RedirectCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -283,11 +284,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java index a40236f0..ad62e343 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java @@ -91,7 +91,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) @@ -296,7 +296,7 @@ public void setCallId(String callId) { } - public TranscriptionAvailableCallback callUrl(String callUrl) { + public TranscriptionAvailableCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -306,11 +306,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java index 64ecfeda..d8ced07f 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; @@ -88,7 +89,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) @@ -269,7 +270,7 @@ public void setCallId(String callId) { } - public TransferAnswerCallback callUrl(String callUrl) { + public TransferAnswerCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -279,11 +280,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java index 57410ffc..bdabf015 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; @@ -88,7 +89,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) @@ -281,7 +282,7 @@ public void setCallId(String callId) { } - public TransferCompleteCallback callUrl(String callUrl) { + public TransferCompleteCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -291,11 +292,11 @@ 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; } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java index 594a9730..dec8165b 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; @@ -88,7 +89,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) @@ -289,7 +290,7 @@ public void setCallId(String callId) { } - public TransferDisconnectCallback callUrl(String callUrl) { + public TransferDisconnectCallback callUrl(URI callUrl) { this.callUrl = callUrl; return this; } @@ -299,11 +300,11 @@ 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; } diff --git a/src/test/java/com/bandwidth/sdk/unit/api/ConferencesApiTest.java b/src/test/java/com/bandwidth/sdk/unit/api/ConferencesApiTest.java index 77ebefa2..cf3b33d3 100644 --- a/src/test/java/com/bandwidth/sdk/unit/api/ConferencesApiTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/api/ConferencesApiTest.java @@ -88,7 +88,7 @@ public void testGetConferenceMember() throws ApiException { assertThat(response.getData(), instanceOf(ConferenceMember.class)); assertThat(response.getData().getCallId().length(), is(47)); assertThat(response.getData().getConferenceId().length(), is(50)); - assertThat(response.getData().getMemberUrl(), instanceOf(String.class)); // should be a URI + assertThat(response.getData().getMemberUrl(), instanceOf(URI.class)); assertThat(response.getData().getMute(), instanceOf(Boolean.class)); assertThat(response.getData().getHold(), instanceOf(Boolean.class)); assertThat(response.getData().getCallIdsToCoach(), instanceOf(List.class)); diff --git a/src/test/java/com/bandwidth/sdk/unit/models/AnswerCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/AnswerCallbackTest.java index d56c7cd3..e8655730 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/AnswerCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/AnswerCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.AnswerCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -35,7 +36,7 @@ public class AnswerCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -121,7 +122,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/BridgeCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/BridgeCompleteCallbackTest.java index bd7da5a3..13cf0139 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/BridgeCompleteCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/BridgeCompleteCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.BridgeCompleteCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -34,7 +35,7 @@ public class BridgeCompleteCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -120,7 +121,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/BridgeTargetCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/BridgeTargetCompleteCallbackTest.java index 97a062cd..9a52ef97 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/BridgeTargetCompleteCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/BridgeTargetCompleteCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.BridgeTargetCompleteCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -34,7 +35,7 @@ public class BridgeTargetCompleteCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -117,7 +118,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/ConferenceMemberTest.java b/src/test/java/com/bandwidth/sdk/unit/models/ConferenceMemberTest.java index 3fb8e288..c9abbf64 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/ConferenceMemberTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/ConferenceMemberTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.util.List; import java.util.Arrays; import java.util.ArrayList; @@ -29,7 +30,7 @@ public class ConferenceMemberTest { private final ConferenceMember model = new ConferenceMember() .callId("callId") .conferenceId("conferenceId") - .memberUrl("memberUrl") + .memberUrl(URI.create("https://bandwidth.com")) .mute(true) .hold(true) .callIdsToCoach(new ArrayList(Arrays.asList("callIdsToCoach"))); @@ -63,7 +64,7 @@ public void conferenceIdTest() { */ @Test public void memberUrlTest() { - assertThat(model.getMemberUrl(), instanceOf(String.class)); + assertThat(model.getMemberUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/DisconnectCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/DisconnectCallbackTest.java index 15056651..5d05e41f 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/DisconnectCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/DisconnectCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.DisconnectCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -34,7 +35,7 @@ public class DisconnectCallbackTest { .to("to") .callId("callId") .direction(CallDirectionEnum.INBOUND) - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -121,7 +122,7 @@ public void directionTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/DtmfCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/DtmfCallbackTest.java index 1ec95d38..a5925616 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/DtmfCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/DtmfCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.DtmfCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -35,7 +36,7 @@ public class DtmfCallbackTest { .callId("callId") .direction(CallDirectionEnum.INBOUND) .digit("digit") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -129,7 +130,7 @@ public void digitTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/GatherCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/GatherCallbackTest.java index 31195da5..056968c2 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/GatherCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/GatherCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.GatherCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -35,7 +36,7 @@ public class GatherCallbackTest { .direction(CallDirectionEnum.INBOUND) .callId("callId") .digits("digits") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -130,7 +131,7 @@ public void digitsTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/InitiateCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/InitiateCallbackTest.java index d92dac83..b8da33ec 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/InitiateCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/InitiateCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.InitiateCallback; import com.bandwidth.sdk.model.Diversion; @@ -36,7 +37,7 @@ public class InitiateCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .startTime(OffsetDateTime.now()) .diversion(new Diversion()) .stirShaken(new StirShaken()); @@ -118,7 +119,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/MachineDetectionCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/MachineDetectionCompleteCallbackTest.java index 96393350..bf333c2f 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/MachineDetectionCompleteCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/MachineDetectionCompleteCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.MachineDetectionCompleteCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -35,7 +36,7 @@ public class MachineDetectionCompleteCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -119,7 +120,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/RecordingAvailableCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/RecordingAvailableCallbackTest.java index 72d9c2ed..8676243f 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/RecordingAvailableCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/RecordingAvailableCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.RecordingAvailableCallback; @@ -36,7 +37,7 @@ public class RecordingAvailableCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .parentCallId("parentCallId") .recordingId("recordingId") .mediaUrl(URI.create("https://example.com")) @@ -128,7 +129,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/RecordingCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/RecordingCompleteCallbackTest.java index b9444b42..5a176b86 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/RecordingCompleteCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/RecordingCompleteCallbackTest.java @@ -36,7 +36,7 @@ public class RecordingCompleteCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("https://bandwidth.com") // should be a URI, need to update the spec + .callUrl(URI.create("https://bandwidth.com")) .parentCallId("parentCallId") .recordingId("recordingId") .mediaUrl(URI.create("https://bandwidth.com")) @@ -129,7 +129,7 @@ public void callIdTest() { @Test public void callUrlTest() { // assertThat(model.getCallUrl(), instanceOf(URI.class)); - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/RedirectCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/RedirectCallbackTest.java index 6918c7ed..a04f6662 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/RedirectCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/RedirectCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.RedirectCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -34,7 +35,7 @@ public class RedirectCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .parentCallId("parentCallId") .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) @@ -120,7 +121,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/TranscriptionAvailableCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/TranscriptionAvailableCallbackTest.java index 2af84d6f..eb59b826 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/TranscriptionAvailableCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/TranscriptionAvailableCallbackTest.java @@ -37,7 +37,7 @@ public class TranscriptionAvailableCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") // should be URI - .callUrl("https://example.com") + .callUrl(URI.create("https://bandwidth.com")) .mediaUrl(URI.create("https://example.com")) .parentCallId("parentCallId") .recordingId("recordingId") @@ -129,7 +129,7 @@ public void callIdTest() { @Test public void callUrlTest() { // assertThat(model.getCallUrl(), instanceOf(URI.class)); - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/TransferAnswerCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/TransferAnswerCallbackTest.java index acec0148..1394db0e 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/TransferAnswerCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/TransferAnswerCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.TransferAnswerCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -34,7 +35,7 @@ public class TransferAnswerCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") // Should be URI + .callUrl(URI.create("https://bandwidth.com")) // Should be URI .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -119,7 +120,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/TransferCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/TransferCompleteCallbackTest.java index ed50bbd1..db116516 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/TransferCompleteCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/TransferCompleteCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.TransferCompleteCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -34,7 +35,7 @@ public class TransferCompleteCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") // should be uri + .callUrl(URI.create("https://bandwidth.com")) // should be uri .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) .answerTime(OffsetDateTime.now()) @@ -122,7 +123,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/TransferDisconnectCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/TransferDisconnectCallbackTest.java index 38c111e8..7eb52e51 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/TransferDisconnectCallbackTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/TransferDisconnectCallbackTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Test; +import java.net.URI; import java.time.OffsetDateTime; import com.bandwidth.sdk.model.TransferDisconnectCallback; import com.bandwidth.sdk.model.CallDirectionEnum; @@ -34,7 +35,7 @@ public class TransferDisconnectCallbackTest { .to("to") .direction(CallDirectionEnum.INBOUND) .callId("callId") - .callUrl("callUrl") + .callUrl(URI.create("https://bandwidth.com")) .parentCallId("parentCallId") .enqueuedTime(OffsetDateTime.now()) .startTime(OffsetDateTime.now()) @@ -124,7 +125,7 @@ public void callIdTest() { */ @Test public void callUrlTest() { - assertThat(model.getCallUrl(), instanceOf(String.class)); + assertThat(model.getCallUrl(), instanceOf(URI.class)); } /** diff --git a/src/test/java/com/bandwidth/sdk/unit/models/bxml/TransferVerbTest.java b/src/test/java/com/bandwidth/sdk/unit/models/bxml/TransferVerbTest.java index 682b665d..301fd75a 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/bxml/TransferVerbTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/bxml/TransferVerbTest.java @@ -58,7 +58,7 @@ public class TransferVerbTest { public void transferVerbWorks() throws JAXBException { JAXBContext jaxbContext = JAXBContext.newInstance(Bxml.class); String expectedSipUriBxml = "sip@bw.com"; - String expectedPhoneNumberBxml = "+19195551234"; // + String expectedPhoneNumberBxml = "+19195551234"; assertThat(new Bxml().with(transfer1).toBxml(jaxbContext), is(expectedSipUriBxml)); assertThat(new Bxml().with(transfer2).toBxml(jaxbContext), is(expectedPhoneNumberBxml));
Status Code Description Response Headers
200 Transcription found. -
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -