diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 08281dbe..60258aad 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -169,6 +169,8 @@ docs/RecordingTranscriptions.md docs/RecordingsApi.md docs/RedirectCallback.md docs/RedirectMethodEnum.md +docs/ReferCallStatusEnum.md +docs/ReferCompleteCallback.md docs/SipConnectionMetadata.md docs/SipCredentials.md docs/SmsMessageContent.md @@ -413,6 +415,8 @@ src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java src/main/java/com/bandwidth/sdk/model/RedirectCallback.java src/main/java/com/bandwidth/sdk/model/RedirectMethodEnum.java +src/main/java/com/bandwidth/sdk/model/ReferCallStatusEnum.java +src/main/java/com/bandwidth/sdk/model/ReferCompleteCallback.java src/main/java/com/bandwidth/sdk/model/SipConnectionMetadata.java src/main/java/com/bandwidth/sdk/model/SipCredentials.java src/main/java/com/bandwidth/sdk/model/SmsMessageContent.java diff --git a/README.md b/README.md index 327c0bbb..edfc7096 100644 --- a/README.md +++ b/README.md @@ -345,6 +345,8 @@ Class | Method | HTTP request | Description - [RecordingTranscriptions](docs/RecordingTranscriptions.md) - [RedirectCallback](docs/RedirectCallback.md) - [RedirectMethodEnum](docs/RedirectMethodEnum.md) + - [ReferCallStatusEnum](docs/ReferCallStatusEnum.md) + - [ReferCompleteCallback](docs/ReferCompleteCallback.md) - [SipConnectionMetadata](docs/SipConnectionMetadata.md) - [SipCredentials](docs/SipCredentials.md) - [SmsMessageContent](docs/SmsMessageContent.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 2cfff7d2..a882bf66 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -10955,6 +10955,13 @@ components: - outbound example: inbound type: string + referCallStatusEnum: + description: The outcome of the REFER operation. + enum: + - success + - failure + example: success + type: string fileFormatEnum: description: The format that the recording is stored in. enum: @@ -12323,8 +12330,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12409,8 +12416,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12503,8 +12510,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12582,8 +12589,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12624,8 +12631,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12665,8 +12672,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12720,8 +12727,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12770,8 +12777,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12807,8 +12814,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12888,8 +12895,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -12998,8 +13005,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13092,8 +13099,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13195,8 +13202,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13285,8 +13292,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13363,8 +13370,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13481,8 +13488,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13602,8 +13609,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13683,6 +13690,91 @@ components: example: "+15555555555" type: string type: object + referCompleteCallback: + description: "This event is sent to the referCompleteUrl of a call's \ + \ verb when the SIP REFER flow completes. On success, the call has been torn\ + \ down and the BXML returned from this callback is ignored. On failure, the\ + \ call remains active and the BXML returned from this callback is executed\ + \ on the call." + properties: + eventType: + description: "The event type, value can be one of the following: answer,\ + \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ + \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ + \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." + example: bridgeComplete + type: string + eventTime: + description: "The approximate UTC date and time when the event was generated\ + \ by the Bandwidth server, in ISO 8601 format. This may not be exactly\ + \ the time of event execution." + example: 2022-06-17T22:19:40.375Z + format: date-time + type: string + accountId: + description: The user account associated with the call. + example: "9900000" + type: string + applicationId: + description: The id of the application associated with the call. + example: 04e88489-df02-4e34-a0ee-27a91849555f + type: string + from: + description: The provided identifier of the caller. Must be a phone number + in E.164 format (e.g. +15555555555). + example: "+15555555555" + type: string + to: + description: "The phone number that received the call, in E.164 format (e.g.\ + \ +15555555555)." + example: "+15555555555" + type: string + direction: + $ref: "#/components/schemas/callDirectionEnum" + callId: + description: The call id associated with the event. + example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + type: string + 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." + example: 2022-06-17T22:19:40.375Z + format: date-time + type: string + answerTime: + description: "Time the call was answered, in ISO 8601 format." + example: 2022-06-17T22:20:00Z + format: date-time + nullable: true + type: string + tag: + description: "(optional) The tag specified on call creation. If no tag was\ + \ specified or it was previously cleared, this field will not be present." + example: exampleTag + nullable: true + type: string + referCallStatus: + $ref: "#/components/schemas/referCallStatusEnum" + referSipResponseCode: + description: "(optional) The SIP response code returned for the REFER request\ + \ itself (e.g. 202, 405, 603). Present when a SIP response was received\ + \ for the REFER." + example: 202 + type: integer + notifySipResponseCode: + description: "(optional) The final SIP response code reported via NOTIFY\ + \ (message/sipfrag body). Present only when the caller's endpoint sent\ + \ a final NOTIFY (e.g. 200, 404, 486, 503). Not present on NOTIFY timeout\ + \ or when the REFER was rejected before a subscription was established." + example: 200 + type: integer + type: object transcriptionAvailableCallback: description: The Transcription Available event is sent when the recording transcription is available to be downloaded. @@ -13692,8 +13784,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13805,8 +13897,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13892,8 +13984,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -13998,8 +14090,8 @@ components: \ bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect,\ \ conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer,\ - \ transferComplete, transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable,\ + \ transferAnswer, transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -14107,8 +14199,8 @@ components: \ bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin,\ \ conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable,\ \ disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete,\ - \ recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete,\ - \ transferDisconnect." + \ recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer,\ + \ transferComplete, transferDisconnect." example: bridgeComplete type: string eventTime: @@ -14248,6 +14340,19 @@ components: example: exampleTag nullable: true type: string + referSipResponseCode: + description: "(optional) The SIP response code returned for the REFER request\ + \ itself (e.g. 202, 405, 603). Present when a SIP response was received for\ + \ the REFER." + example: 202 + type: integer + notifySipResponseCode: + description: "(optional) The final SIP response code reported via NOTIFY (message/sipfrag\ + \ body). Present only when the caller's endpoint sent a final NOTIFY (e.g.\ + \ 200, 404, 486, 503). Not present on NOTIFY timeout or when the REFER was\ + \ rejected before a subscription was established." + example: 200 + type: integer cause: description: "Reason the call failed - hangup, busy, timeout, cancel, rejected,\ \ callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded,\ diff --git a/bandwidth.yml b/bandwidth.yml index 8764a422..4b88b456 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -3184,6 +3184,13 @@ components: - outbound description: The direction of the call. example: inbound + referCallStatusEnum: + type: string + enum: + - success + - failure + description: The outcome of the REFER operation. + example: success fileFormatEnum: type: string enum: @@ -5134,6 +5141,45 @@ components: $ref: '#/components/schemas/transferCallerId' transferTo: $ref: '#/components/schemas/transferTo' + referCompleteCallback: + type: object + description: >- + This event is sent to the referCompleteUrl of a call's verb when + the SIP REFER flow completes. On success, the call has been torn down + and the BXML returned from this callback is ignored. On failure, the + call remains active and the BXML returned from this callback is executed + on the call. + properties: + eventType: + $ref: '#/components/schemas/eventType' + eventTime: + $ref: '#/components/schemas/eventTime' + accountId: + $ref: '#/components/schemas/accountId' + applicationId: + $ref: '#/components/schemas/applicationId1' + from: + $ref: '#/components/schemas/from' + to: + $ref: '#/components/schemas/to' + direction: + $ref: '#/components/schemas/callDirectionEnum' + callId: + $ref: '#/components/schemas/callId' + callUrl: + $ref: '#/components/schemas/callUrl' + startTime: + $ref: '#/components/schemas/startTime' + answerTime: + $ref: '#/components/schemas/answerTime' + tag: + $ref: '#/components/schemas/tag1' + referCallStatus: + $ref: '#/components/schemas/referCallStatusEnum' + referSipResponseCode: + $ref: '#/components/schemas/referSipResponseCode' + notifySipResponseCode: + $ref: '#/components/schemas/notifySipResponseCode' transcriptionAvailableCallback: type: object description: >- @@ -5326,8 +5372,8 @@ components: conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, - recordingAvailable, redirect, transcriptionAvailable, transferAnswer, - transferComplete, transferDisconnect. + recordingAvailable, redirect, referComplete, transcriptionAvailable, + transferAnswer, transferComplete, transferDisconnect. example: bridgeComplete eventTime: type: string @@ -5479,6 +5525,21 @@ components: or it was previously cleared, this field will not be present. example: exampleTag nullable: true + referSipResponseCode: + type: integer + description: >- + (optional) The SIP response code returned for the REFER request itself + (e.g. 202, 405, 603). Present when a SIP response was received for the + REFER. + example: 202 + notifySipResponseCode: + type: integer + description: >- + (optional) The final SIP response code reported via NOTIFY + (message/sipfrag body). Present only when the caller's endpoint sent a + final NOTIFY (e.g. 200, 404, 486, 503). Not present on NOTIFY timeout or + when the REFER was rejected before a subscription was established. + example: 200 cause: type: string description: >- diff --git a/docs/AnswerCallback.md b/docs/AnswerCallback.md index fce1cb0f..484f3803 100644 --- a/docs/AnswerCallback.md +++ b/docs/AnswerCallback.md @@ -8,7 +8,7 @@ The Answer event is sent to the answerUrl specified in the createCall request wh | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/BridgeCompleteCallback.md b/docs/BridgeCompleteCallback.md index ee9d956f..b8c20468 100644 --- a/docs/BridgeCompleteCallback.md +++ b/docs/BridgeCompleteCallback.md @@ -8,7 +8,7 @@ If the target call leaves the , then this callback is sent to the bridge | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/BridgeTargetCompleteCallback.md b/docs/BridgeTargetCompleteCallback.md index c23f465c..770f78f5 100644 --- a/docs/BridgeTargetCompleteCallback.md +++ b/docs/BridgeTargetCompleteCallback.md @@ -8,7 +8,7 @@ If the originating call leaves the , then this callback is sent to the b | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/ConferenceCompletedCallback.md b/docs/ConferenceCompletedCallback.md index 6840355c..765f93e0 100644 --- a/docs/ConferenceCompletedCallback.md +++ b/docs/ConferenceCompletedCallback.md @@ -8,7 +8,7 @@ The Conference Completed event is fired when the last member leaves the conferen | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**conferenceId** | **String** | The unique, Bandwidth-generated ID of the conference that was recorded | [optional] | |**name** | **String** | The user-specified name of the conference that was recorded | [optional] | diff --git a/docs/ConferenceCreatedCallback.md b/docs/ConferenceCreatedCallback.md index 8f1196a0..0b777cd1 100644 --- a/docs/ConferenceCreatedCallback.md +++ b/docs/ConferenceCreatedCallback.md @@ -8,7 +8,7 @@ The Conference Created event is fired whenever a new conference that specified a | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**conferenceId** | **String** | The unique, Bandwidth-generated ID of the conference that was recorded | [optional] | |**name** | **String** | The user-specified name of the conference that was recorded | [optional] | diff --git a/docs/ConferenceMemberExitCallback.md b/docs/ConferenceMemberExitCallback.md index 1a912f28..c089e576 100644 --- a/docs/ConferenceMemberExitCallback.md +++ b/docs/ConferenceMemberExitCallback.md @@ -8,7 +8,7 @@ The Conference Member Exit event is fired whenever a caller exits a conference t | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**conferenceId** | **String** | The unique, Bandwidth-generated ID of the conference that was recorded | [optional] | |**name** | **String** | The user-specified name of the conference that was recorded | [optional] | diff --git a/docs/ConferenceMemberJoinCallback.md b/docs/ConferenceMemberJoinCallback.md index c8dec63d..aca57b71 100644 --- a/docs/ConferenceMemberJoinCallback.md +++ b/docs/ConferenceMemberJoinCallback.md @@ -8,7 +8,7 @@ The Conference Member Join event is fired whenever a caller joins a conference t | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**conferenceId** | **String** | The unique, Bandwidth-generated ID of the conference that was recorded | [optional] | |**name** | **String** | The user-specified name of the conference that was recorded | [optional] | diff --git a/docs/ConferenceRecordingAvailableCallback.md b/docs/ConferenceRecordingAvailableCallback.md index 41a8f825..9d5c3f86 100644 --- a/docs/ConferenceRecordingAvailableCallback.md +++ b/docs/ConferenceRecordingAvailableCallback.md @@ -8,7 +8,7 @@ The Conference Recording Available event is sent after a conference recording ha | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**conferenceId** | **String** | The unique, Bandwidth-generated ID of the conference that was recorded | [optional] | |**name** | **String** | The user-specified name of the conference that was recorded | [optional] | diff --git a/docs/ConferenceRedirectCallback.md b/docs/ConferenceRedirectCallback.md index 5dde9a89..ea1b18d1 100644 --- a/docs/ConferenceRedirectCallback.md +++ b/docs/ConferenceRedirectCallback.md @@ -8,7 +8,7 @@ The Conference Redirect event is fired whenever an existing conference is modifi | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**conferenceId** | **String** | The unique, Bandwidth-generated ID of the conference that was recorded | [optional] | |**name** | **String** | The user-specified name of the conference that was recorded | [optional] | diff --git a/docs/DisconnectCallback.md b/docs/DisconnectCallback.md index 816d3a90..132411f5 100644 --- a/docs/DisconnectCallback.md +++ b/docs/DisconnectCallback.md @@ -8,7 +8,7 @@ The Disconnect event is fired when a call ends, for any reason. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/DtmfCallback.md b/docs/DtmfCallback.md index 9f280db9..593adcc7 100644 --- a/docs/DtmfCallback.md +++ b/docs/DtmfCallback.md @@ -8,7 +8,7 @@ The DTMF event is sent for every digit detected after a verb is ex | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/GatherCallback.md b/docs/GatherCallback.md index e3ef7da8..20977640 100644 --- a/docs/GatherCallback.md +++ b/docs/GatherCallback.md @@ -8,7 +8,7 @@ The gather event is sent after a verb is executed. Its purpose is to re | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/InitiateCallback.md b/docs/InitiateCallback.md index 0b0d0d7e..c644cea2 100644 --- a/docs/InitiateCallback.md +++ b/docs/InitiateCallback.md @@ -8,7 +8,7 @@ The Initiate event is fired when an inbound call is received for a Telephone Num | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/MachineDetectionCompleteCallback.md b/docs/MachineDetectionCompleteCallback.md index 9a369e53..e828d1f8 100644 --- a/docs/MachineDetectionCompleteCallback.md +++ b/docs/MachineDetectionCompleteCallback.md @@ -8,7 +8,7 @@ This event is sent to the url informed when requesting a machine detection opera | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/RecordingAvailableCallback.md b/docs/RecordingAvailableCallback.md index 90d6410d..06b7a2cb 100644 --- a/docs/RecordingAvailableCallback.md +++ b/docs/RecordingAvailableCallback.md @@ -8,7 +8,7 @@ The Recording Available event is sent after a recording has been processed. It i | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/RecordingCompleteCallback.md b/docs/RecordingCompleteCallback.md index 17814da7..07449f25 100644 --- a/docs/RecordingCompleteCallback.md +++ b/docs/RecordingCompleteCallback.md @@ -8,7 +8,7 @@ The Record Complete event is sent after a verb has executed if the call | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/RedirectCallback.md b/docs/RedirectCallback.md index 597a44ab..18f40276 100644 --- a/docs/RedirectCallback.md +++ b/docs/RedirectCallback.md @@ -8,7 +8,7 @@ The Redirect event is fired when a verb is executed. Its purpose is t | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/ReferCallStatusEnum.md b/docs/ReferCallStatusEnum.md new file mode 100644 index 00000000..20becc95 --- /dev/null +++ b/docs/ReferCallStatusEnum.md @@ -0,0 +1,13 @@ + + +# ReferCallStatusEnum + +## Enum + + +* `SUCCESS` (value: `"success"`) + +* `FAILURE` (value: `"failure"`) + + + diff --git a/docs/ReferCompleteCallback.md b/docs/ReferCompleteCallback.md new file mode 100644 index 00000000..3096e3c4 --- /dev/null +++ b/docs/ReferCompleteCallback.md @@ -0,0 +1,28 @@ + + +# ReferCompleteCallback + +This event is sent to the referCompleteUrl of a call's verb when the SIP REFER flow completes. On success, the call has been torn down and the BXML returned from this callback is ignored. On failure, the call remains active and the BXML returned from this callback is executed on the call. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | +|**accountId** | **String** | The user account associated with the call. | [optional] | +|**applicationId** | **String** | The id of the application associated with the call. | [optional] | +|**from** | **String** | The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). | [optional] | +|**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** | **URI** | The URL of the call associated with the event. | [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] | +|**tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] | +|**referCallStatus** | **ReferCallStatusEnum** | | [optional] | +|**referSipResponseCode** | **Integer** | (optional) The SIP response code returned for the REFER request itself (e.g. 202, 405, 603). Present when a SIP response was received for the REFER. | [optional] | +|**notifySipResponseCode** | **Integer** | (optional) The final SIP response code reported via NOTIFY (message/sipfrag body). Present only when the caller's endpoint sent a final NOTIFY (e.g. 200, 404, 486, 503). Not present on NOTIFY timeout or when the REFER was rejected before a subscription was established. | [optional] | + + + diff --git a/docs/TranscriptionAvailableCallback.md b/docs/TranscriptionAvailableCallback.md index 0ec482e7..65bfcce5 100644 --- a/docs/TranscriptionAvailableCallback.md +++ b/docs/TranscriptionAvailableCallback.md @@ -8,7 +8,7 @@ The Transcription Available event is sent when the recording transcription is av | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/TransferAnswerCallback.md b/docs/TransferAnswerCallback.md index d350b98f..22902e58 100644 --- a/docs/TransferAnswerCallback.md +++ b/docs/TransferAnswerCallback.md @@ -8,7 +8,7 @@ When processing a verb, this event is sent when a called party (B-leg | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/TransferCompleteCallback.md b/docs/TransferCompleteCallback.md index d2dd0202..8d706a92 100644 --- a/docs/TransferCompleteCallback.md +++ b/docs/TransferCompleteCallback.md @@ -8,7 +8,7 @@ This event is sent to the transferCompleteUrl of the A-leg's verb whe | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/docs/TransferDisconnectCallback.md b/docs/TransferDisconnectCallback.md index cc52e159..3622add6 100644 --- a/docs/TransferDisconnectCallback.md +++ b/docs/TransferDisconnectCallback.md @@ -8,7 +8,7 @@ This event is sent to the transferDisconnectUrl of each tag when i | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | +|**eventType** | **String** | The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. | [optional] | |**eventTime** | **OffsetDateTime** | The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. | [optional] | |**accountId** | **String** | The user account associated with the call. | [optional] | |**applicationId** | **String** | The id of the application associated with the call. | [optional] | diff --git a/src/main/java/com/bandwidth/sdk/JSON.java b/src/main/java/com/bandwidth/sdk/JSON.java index 45d5cf89..e40aa483 100644 --- a/src/main/java/com/bandwidth/sdk/JSON.java +++ b/src/main/java/com/bandwidth/sdk/JSON.java @@ -274,6 +274,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RecordingTranscriptionMetadata.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RecordingTranscriptions.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RedirectCallback.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.ReferCompleteCallback.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.SipConnectionMetadata.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.SipCredentials.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.SmsMessageContent.CustomTypeAdapterFactory()); diff --git a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java index f9a2ce12..c60615dc 100644 --- a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java @@ -139,7 +139,7 @@ public AnswerCallback eventType(@javax.annotation.Nullable String eventType) { } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java index c7f9c7b4..6794f97c 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java @@ -143,7 +143,7 @@ public BridgeCompleteCallback eventType(@javax.annotation.Nullable String eventT } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java index 996024d6..14fdde77 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java @@ -128,7 +128,7 @@ public BridgeTargetCompleteCallback eventType(@javax.annotation.Nullable String } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java index 1bb89ec9..a101a547 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java @@ -86,7 +86,7 @@ public ConferenceCompletedCallback eventType(@javax.annotation.Nullable String e } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java index c114203a..63f90be9 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java @@ -86,7 +86,7 @@ public ConferenceCreatedCallback eventType(@javax.annotation.Nullable String eve } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java index 6e10bc3b..99cb1735 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java @@ -101,7 +101,7 @@ public ConferenceMemberExitCallback eventType(@javax.annotation.Nullable String } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java index 83260db5..568997c0 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java @@ -101,7 +101,7 @@ public ConferenceMemberJoinCallback eventType(@javax.annotation.Nullable String } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java index c2e9c32a..f3ec36c6 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java @@ -133,7 +133,7 @@ public ConferenceRecordingAvailableCallback eventType(@javax.annotation.Nullable } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java index 6a0868f9..eab17534 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java @@ -86,7 +86,7 @@ public ConferenceRedirectCallback eventType(@javax.annotation.Nullable String ev } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java index fa6a92ca..31467393 100644 --- a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java @@ -158,7 +158,7 @@ public DisconnectCallback eventType(@javax.annotation.Nullable String eventType) } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java index 7a2b1daf..a30d16dc 100644 --- a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java @@ -148,7 +148,7 @@ public DtmfCallback eventType(@javax.annotation.Nullable String eventType) { } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java index d81d2612..824e9373 100644 --- a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java @@ -153,7 +153,7 @@ public GatherCallback eventType(@javax.annotation.Nullable String eventType) { } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java index 76014cec..df0cac18 100644 --- a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java @@ -141,7 +141,7 @@ public InitiateCallback eventType(@javax.annotation.Nullable String eventType) { } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java index c12fcc70..f39d1749 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java @@ -134,7 +134,7 @@ public MachineDetectionCompleteCallback eventType(@javax.annotation.Nullable Str } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java index 46bddb6a..349a24c5 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java @@ -174,7 +174,7 @@ public RecordingAvailableCallback eventType(@javax.annotation.Nullable String ev } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java index f4692d11..8459cbc2 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java @@ -174,7 +174,7 @@ public RecordingCompleteCallback eventType(@javax.annotation.Nullable String eve } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java index 3723d1db..0cfea7f0 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java @@ -143,7 +143,7 @@ public RedirectCallback eventType(@javax.annotation.Nullable String eventType) { } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/ReferCallStatusEnum.java b/src/main/java/com/bandwidth/sdk/model/ReferCallStatusEnum.java new file mode 100644 index 00000000..6b7a4455 --- /dev/null +++ b/src/main/java/com/bandwidth/sdk/model/ReferCallStatusEnum.java @@ -0,0 +1,78 @@ +/* + * Bandwidth + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.bandwidth.sdk.model; + +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * The outcome of the REFER operation. + */ +@JsonAdapter(ReferCallStatusEnum.Adapter.class) +public enum ReferCallStatusEnum { + + SUCCESS("success"), + + FAILURE("failure"); + + private String value; + + ReferCallStatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReferCallStatusEnum fromValue(String value) { + for (ReferCallStatusEnum b : ReferCallStatusEnum.values()) { + if (b.value.equalsIgnoreCase(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReferCallStatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReferCallStatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReferCallStatusEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ReferCallStatusEnum.fromValue(value); + } +} + diff --git a/src/main/java/com/bandwidth/sdk/model/ReferCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/ReferCompleteCallback.java new file mode 100644 index 00000000..1b6bb2cc --- /dev/null +++ b/src/main/java/com/bandwidth/sdk/model/ReferCompleteCallback.java @@ -0,0 +1,692 @@ +/* + * Bandwidth + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.bandwidth.sdk.model; + +import java.util.Objects; +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.ReferCallStatusEnum; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.bandwidth.sdk.JSON; + +/** + * This event is sent to the referCompleteUrl of a call's <Refer> verb when the SIP REFER flow completes. On success, the call has been torn down and the BXML returned from this callback is ignored. On failure, the call remains active and the BXML returned from this callback is executed on the call. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +public class ReferCompleteCallback { + public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; + @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable + private String eventType; + + public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; + @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable + private OffsetDateTime eventTime; + + public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; + @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable + private String accountId; + + public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; + @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable + private String applicationId; + + public static final String SERIALIZED_NAME_FROM = "from"; + @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable + private String from; + + public static final String SERIALIZED_NAME_TO = "to"; + @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable + private String to; + + public static final String SERIALIZED_NAME_DIRECTION = "direction"; + @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable + private CallDirectionEnum direction; + + public static final String SERIALIZED_NAME_CALL_ID = "callId"; + @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable + private String callId; + + public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; + @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable + private URI callUrl; + + public static final String SERIALIZED_NAME_START_TIME = "startTime"; + @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable + private OffsetDateTime startTime; + + public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; + @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable + private OffsetDateTime answerTime; + + public static final String SERIALIZED_NAME_TAG = "tag"; + @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable + private String tag; + + public static final String SERIALIZED_NAME_REFER_CALL_STATUS = "referCallStatus"; + @SerializedName(SERIALIZED_NAME_REFER_CALL_STATUS) + @javax.annotation.Nullable + private ReferCallStatusEnum referCallStatus; + + public static final String SERIALIZED_NAME_REFER_SIP_RESPONSE_CODE = "referSipResponseCode"; + @SerializedName(SERIALIZED_NAME_REFER_SIP_RESPONSE_CODE) + @javax.annotation.Nullable + private Integer referSipResponseCode; + + public static final String SERIALIZED_NAME_NOTIFY_SIP_RESPONSE_CODE = "notifySipResponseCode"; + @SerializedName(SERIALIZED_NAME_NOTIFY_SIP_RESPONSE_CODE) + @javax.annotation.Nullable + private Integer notifySipResponseCode; + + public ReferCompleteCallback() { + } + + public ReferCompleteCallback eventType(@javax.annotation.Nullable String eventType) { + this.eventType = eventType; + return this; + } + + /** + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @return eventType + */ + @javax.annotation.Nullable + public String getEventType() { + return eventType; + } + + public void setEventType(@javax.annotation.Nullable String eventType) { + this.eventType = eventType; + } + + + public ReferCompleteCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { + this.eventTime = eventTime; + return this; + } + + /** + * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @return eventTime + */ + @javax.annotation.Nullable + public OffsetDateTime getEventTime() { + return eventTime; + } + + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { + this.eventTime = eventTime; + } + + + public ReferCompleteCallback accountId(@javax.annotation.Nullable String accountId) { + this.accountId = accountId; + return this; + } + + /** + * The user account associated with the call. + * @return accountId + */ + @javax.annotation.Nullable + public String getAccountId() { + return accountId; + } + + public void setAccountId(@javax.annotation.Nullable String accountId) { + this.accountId = accountId; + } + + + public ReferCompleteCallback applicationId(@javax.annotation.Nullable String applicationId) { + this.applicationId = applicationId; + return this; + } + + /** + * The id of the application associated with the call. + * @return applicationId + */ + @javax.annotation.Nullable + public String getApplicationId() { + return applicationId; + } + + public void setApplicationId(@javax.annotation.Nullable String applicationId) { + this.applicationId = applicationId; + } + + + public ReferCompleteCallback from(@javax.annotation.Nullable String from) { + this.from = from; + return this; + } + + /** + * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @return from + */ + @javax.annotation.Nullable + public String getFrom() { + return from; + } + + public void setFrom(@javax.annotation.Nullable String from) { + this.from = from; + } + + + public ReferCompleteCallback to(@javax.annotation.Nullable String to) { + this.to = to; + return this; + } + + /** + * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @return to + */ + @javax.annotation.Nullable + public String getTo() { + return to; + } + + public void setTo(@javax.annotation.Nullable String to) { + this.to = to; + } + + + public ReferCompleteCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { + this.direction = direction; + return this; + } + + /** + * Get direction + * @return direction + */ + @javax.annotation.Nullable + public CallDirectionEnum getDirection() { + return direction; + } + + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { + this.direction = direction; + } + + + public ReferCompleteCallback callId(@javax.annotation.Nullable String callId) { + this.callId = callId; + return this; + } + + /** + * The call id associated with the event. + * @return callId + */ + @javax.annotation.Nullable + public String getCallId() { + return callId; + } + + public void setCallId(@javax.annotation.Nullable String callId) { + this.callId = callId; + } + + + public ReferCompleteCallback callUrl(@javax.annotation.Nullable URI callUrl) { + this.callUrl = callUrl; + return this; + } + + /** + * The URL of the call associated with the event. + * @return callUrl + */ + @javax.annotation.Nullable + public URI getCallUrl() { + return callUrl; + } + + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { + this.callUrl = callUrl; + } + + + public ReferCompleteCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * Time the call was started, in ISO 8601 format. + * @return startTime + */ + @javax.annotation.Nullable + public OffsetDateTime getStartTime() { + return startTime; + } + + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { + this.startTime = startTime; + } + + + public ReferCompleteCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { + this.answerTime = answerTime; + return this; + } + + /** + * Time the call was answered, in ISO 8601 format. + * @return answerTime + */ + @javax.annotation.Nullable + public OffsetDateTime getAnswerTime() { + return answerTime; + } + + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { + this.answerTime = answerTime; + } + + + public ReferCompleteCallback tag(@javax.annotation.Nullable String tag) { + this.tag = tag; + return this; + } + + /** + * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @return tag + */ + @javax.annotation.Nullable + public String getTag() { + return tag; + } + + public void setTag(@javax.annotation.Nullable String tag) { + this.tag = tag; + } + + + public ReferCompleteCallback referCallStatus(@javax.annotation.Nullable ReferCallStatusEnum referCallStatus) { + this.referCallStatus = referCallStatus; + return this; + } + + /** + * Get referCallStatus + * @return referCallStatus + */ + @javax.annotation.Nullable + public ReferCallStatusEnum getReferCallStatus() { + return referCallStatus; + } + + public void setReferCallStatus(@javax.annotation.Nullable ReferCallStatusEnum referCallStatus) { + this.referCallStatus = referCallStatus; + } + + + public ReferCompleteCallback referSipResponseCode(@javax.annotation.Nullable Integer referSipResponseCode) { + this.referSipResponseCode = referSipResponseCode; + return this; + } + + /** + * (optional) The SIP response code returned for the REFER request itself (e.g. 202, 405, 603). Present when a SIP response was received for the REFER. + * @return referSipResponseCode + */ + @javax.annotation.Nullable + public Integer getReferSipResponseCode() { + return referSipResponseCode; + } + + public void setReferSipResponseCode(@javax.annotation.Nullable Integer referSipResponseCode) { + this.referSipResponseCode = referSipResponseCode; + } + + + public ReferCompleteCallback notifySipResponseCode(@javax.annotation.Nullable Integer notifySipResponseCode) { + this.notifySipResponseCode = notifySipResponseCode; + return this; + } + + /** + * (optional) The final SIP response code reported via NOTIFY (message/sipfrag body). Present only when the caller's endpoint sent a final NOTIFY (e.g. 200, 404, 486, 503). Not present on NOTIFY timeout or when the REFER was rejected before a subscription was established. + * @return notifySipResponseCode + */ + @javax.annotation.Nullable + public Integer getNotifySipResponseCode() { + return notifySipResponseCode; + } + + public void setNotifySipResponseCode(@javax.annotation.Nullable Integer notifySipResponseCode) { + this.notifySipResponseCode = notifySipResponseCode; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ReferCompleteCallback instance itself + */ + public ReferCompleteCallback putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReferCompleteCallback referCompleteCallback = (ReferCompleteCallback) o; + return Objects.equals(this.eventType, referCompleteCallback.eventType) && + Objects.equals(this.eventTime, referCompleteCallback.eventTime) && + Objects.equals(this.accountId, referCompleteCallback.accountId) && + Objects.equals(this.applicationId, referCompleteCallback.applicationId) && + Objects.equals(this.from, referCompleteCallback.from) && + Objects.equals(this.to, referCompleteCallback.to) && + Objects.equals(this.direction, referCompleteCallback.direction) && + Objects.equals(this.callId, referCompleteCallback.callId) && + Objects.equals(this.callUrl, referCompleteCallback.callUrl) && + Objects.equals(this.startTime, referCompleteCallback.startTime) && + Objects.equals(this.answerTime, referCompleteCallback.answerTime) && + Objects.equals(this.tag, referCompleteCallback.tag) && + Objects.equals(this.referCallStatus, referCompleteCallback.referCallStatus) && + Objects.equals(this.referSipResponseCode, referCompleteCallback.referSipResponseCode) && + Objects.equals(this.notifySipResponseCode, referCompleteCallback.notifySipResponseCode)&& + Objects.equals(this.additionalProperties, referCompleteCallback.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(eventType, eventTime, accountId, applicationId, from, to, direction, callId, callUrl, startTime, answerTime, tag, referCallStatus, referSipResponseCode, notifySipResponseCode, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReferCompleteCallback {\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" callId: ").append(toIndentedString(callId)).append("\n"); + sb.append(" callUrl: ").append(toIndentedString(callUrl)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" answerTime: ").append(toIndentedString(answerTime)).append("\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" referCallStatus: ").append(toIndentedString(referCallStatus)).append("\n"); + sb.append(" referSipResponseCode: ").append(toIndentedString(referSipResponseCode)).append("\n"); + sb.append(" notifySipResponseCode: ").append(toIndentedString(notifySipResponseCode)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("eventType", "eventTime", "accountId", "applicationId", "from", "to", "direction", "callId", "callUrl", "startTime", "answerTime", "tag", "referCallStatus", "referSipResponseCode", "notifySipResponseCode")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ReferCompleteCallback + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ReferCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in ReferCompleteCallback is not found in the empty JSON string", ReferCompleteCallback.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("eventType") != null && !jsonObj.get("eventType").isJsonNull()) && !jsonObj.get("eventType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `eventType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("eventType").toString())); + } + if ((jsonObj.get("accountId") != null && !jsonObj.get("accountId").isJsonNull()) && !jsonObj.get("accountId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `accountId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountId").toString())); + } + if ((jsonObj.get("applicationId") != null && !jsonObj.get("applicationId").isJsonNull()) && !jsonObj.get("applicationId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `applicationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("applicationId").toString())); + } + if ((jsonObj.get("from") != null && !jsonObj.get("from").isJsonNull()) && !jsonObj.get("from").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `from` to be a primitive type in the JSON string but got `%s`", jsonObj.get("from").toString())); + } + if ((jsonObj.get("to") != null && !jsonObj.get("to").isJsonNull()) && !jsonObj.get("to").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("to").toString())); + } + // validate the optional field `direction` + if (jsonObj.get("direction") != null && !jsonObj.get("direction").isJsonNull()) { + CallDirectionEnum.validateJsonElement(jsonObj.get("direction")); + } + if ((jsonObj.get("callId") != null && !jsonObj.get("callId").isJsonNull()) && !jsonObj.get("callId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `callId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callId").toString())); + } + if ((jsonObj.get("callUrl") != null && !jsonObj.get("callUrl").isJsonNull()) && !jsonObj.get("callUrl").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `callUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("callUrl").toString())); + } + if ((jsonObj.get("tag") != null && !jsonObj.get("tag").isJsonNull()) && !jsonObj.get("tag").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `tag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tag").toString())); + } + // validate the optional field `referCallStatus` + if (jsonObj.get("referCallStatus") != null && !jsonObj.get("referCallStatus").isJsonNull()) { + ReferCallStatusEnum.validateJsonElement(jsonObj.get("referCallStatus")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ReferCompleteCallback.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReferCompleteCallback' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReferCompleteCallback.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ReferCompleteCallback value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ReferCompleteCallback read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ReferCompleteCallback instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ReferCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReferCompleteCallback + * @throws IOException if the JSON string is invalid with respect to ReferCompleteCallback + */ + public static ReferCompleteCallback fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReferCompleteCallback.class); + } + + /** + * Convert an instance of ReferCompleteCallback to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java index 6c2c4ff1..1ae79e1d 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java @@ -170,7 +170,7 @@ public TranscriptionAvailableCallback eventType(@javax.annotation.Nullable Strin } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java index d0fe6dd2..6b861a42 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java @@ -138,7 +138,7 @@ public TransferAnswerCallback eventType(@javax.annotation.Nullable String eventT } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java index 362ce497..48a44114 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java @@ -153,7 +153,7 @@ public TransferCompleteCallback eventType(@javax.annotation.Nullable String even } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java index 7a671623..a83e132f 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java @@ -163,7 +163,7 @@ public TransferDisconnectCallback eventType(@javax.annotation.Nullable String ev } /** - * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType */ @javax.annotation.Nullable diff --git a/src/test/java/com/bandwidth/sdk/unit/models/ReferCallStatusEnumTest.java b/src/test/java/com/bandwidth/sdk/unit/models/ReferCallStatusEnumTest.java new file mode 100644 index 00000000..89672a7f --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/unit/models/ReferCallStatusEnumTest.java @@ -0,0 +1,36 @@ +/* + * Bandwidth + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.bandwidth.sdk.unit.models; + +import org.junit.jupiter.api.Test; + +import com.bandwidth.sdk.model.ReferCallStatusEnum; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.CoreMatchers.equalTo; + +/** + * Model tests for ReferCallStatusEnum + */ +public class ReferCallStatusEnumTest { + /** + * Model tests for ReferCallStatusEnum + */ + @Test + public void testReferCallStatusEnum() { + assertThat(ReferCallStatusEnum.SUCCESS.toString(), equalTo("success")); + assertThat(ReferCallStatusEnum.FAILURE.toString(), equalTo("failure")); + } + +} diff --git a/src/test/java/com/bandwidth/sdk/unit/models/ReferCompleteCallbackTest.java b/src/test/java/com/bandwidth/sdk/unit/models/ReferCompleteCallbackTest.java new file mode 100644 index 00000000..ed91e907 --- /dev/null +++ b/src/test/java/com/bandwidth/sdk/unit/models/ReferCompleteCallbackTest.java @@ -0,0 +1,178 @@ +/* + * Bandwidth + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.bandwidth.sdk.unit.models; + +import com.bandwidth.sdk.model.CallDirectionEnum; +import com.bandwidth.sdk.model.ReferCallStatusEnum; + +import java.net.URI; +import java.time.OffsetDateTime; + +import org.junit.jupiter.api.Test; + +import com.bandwidth.sdk.model.ReferCompleteCallback; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.CoreMatchers.instanceOf; + +/** + * Model tests for ReferCompleteCallback + */ +public class ReferCompleteCallbackTest { + private final ReferCompleteCallback model = new ReferCompleteCallback() + .eventType("referComplete") + .eventTime(OffsetDateTime.now()) + .accountId("accountId") + .applicationId("applicationId") + .from("from") + .to("to") + .direction(CallDirectionEnum.INBOUND) + .callId("callId") + .callUrl(URI.create("http://example.com/call")) + .startTime(OffsetDateTime.now()) + .answerTime(OffsetDateTime.now()) + .tag("tag") + .referCallStatus(ReferCallStatusEnum.SUCCESS) + .referSipResponseCode(200) + .notifySipResponseCode(200); + + /** + * Model tests for ReferCompleteCallback + */ + @Test + public void testReferCompleteCallback() { + assertThat(model, instanceOf(ReferCompleteCallback.class)); + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + assertThat(model.getEventType(), instanceOf(String.class)); + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + assertThat(model.getEventTime(), instanceOf(OffsetDateTime.class)); + } + + /** + * Test the property 'accountId' + */ + @Test + public void accountIdTest() { + assertThat(model.getAccountId(), instanceOf(String.class)); + } + + /** + * Test the property 'applicationId' + */ + @Test + public void applicationIdTest() { + assertThat(model.getApplicationId(), instanceOf(String.class)); + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + assertThat(model.getFrom(), instanceOf(String.class)); + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + assertThat(model.getTo(), instanceOf(String.class)); + } + + /** + * Test the property 'direction' + */ + @Test + public void directionTest() { + assertThat(model.getDirection(), instanceOf(CallDirectionEnum.class)); + } + + /** + * Test the property 'callId' + */ + @Test + public void callIdTest() { + assertThat(model.getCallId(), instanceOf(String.class)); + } + + /** + * Test the property 'callUrl' + */ + @Test + public void callUrlTest() { + assertThat(model.getCallUrl(), instanceOf(URI.class)); + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + assertThat(model.getStartTime(), instanceOf(OffsetDateTime.class)); + } + + /** + * Test the property 'answerTime' + */ + @Test + public void answerTimeTest() { + assertThat(model.getAnswerTime(), instanceOf(OffsetDateTime.class)); + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + assertThat(model.getTag(), instanceOf(String.class)); + } + + /** + * Test the property 'referCallStatus' + */ + @Test + public void referCallStatusTest() { + assertThat(model.getReferCallStatus(), instanceOf(ReferCallStatusEnum.class)); + } + + /** + * Test the property 'referSipResponseCode' + */ + @Test + public void referSipResponseCodeTest() { + assertThat(model.getReferSipResponseCode(), instanceOf(Integer.class)); + } + + /** + * Test the property 'notifySipResponseCode' + */ + @Test + public void notifySipResponseCodeTest() { + assertThat(model.getNotifySipResponseCode(), instanceOf(Integer.class)); + } + +}