diff --git a/README.md b/README.md index c8fda26d..12354201 100644 --- a/README.md +++ b/README.md @@ -168,9 +168,9 @@ Class | Method | HTTP request | Description *TollFreeVerificationApi* | [**requestTollFreeVerification**](docs/TollFreeVerificationApi.md#requestTollFreeVerification) | **POST** /accounts/{accountId}/tollFreeVerification | Request Toll-Free Verification *TollFreeVerificationApi* | [**updateTollFreeVerificationRequest**](docs/TollFreeVerificationApi.md#updateTollFreeVerificationRequest) | **PUT** /accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification | Update Toll-Free Verification Request *TollFreeVerificationApi* | [**updateWebhookSubscription**](docs/TollFreeVerificationApi.md#updateWebhookSubscription) | **PUT** /accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id} | Update Webhook Subscription -*TranscriptionsApi* | [**deleteRealTimeTranscription**](docs/TranscriptionsApi.md#deleteRealTimeTranscription) | **DELETE** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete a specific transcription -*TranscriptionsApi* | [**getRealTimeTranscription**](docs/TranscriptionsApi.md#getRealTimeTranscription) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Retrieve a specific transcription -*TranscriptionsApi* | [**listRealTimeTranscriptions**](docs/TranscriptionsApi.md#listRealTimeTranscriptions) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions | Enumerate transcriptions made with StartTranscription +*TranscriptionsApi* | [**deleteRealTimeTranscription**](docs/TranscriptionsApi.md#deleteRealTimeTranscription) | **DELETE** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete Real-time Transcription +*TranscriptionsApi* | [**getRealTimeTranscription**](docs/TranscriptionsApi.md#getRealTimeTranscription) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Get Real-time Transcription +*TranscriptionsApi* | [**listRealTimeTranscriptions**](docs/TranscriptionsApi.md#listRealTimeTranscriptions) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions | List Real-time Transcriptions ## Documentation for Models diff --git a/api/openapi.yaml b/api/openapi.yaml index c68f2404..933cb62a 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -4155,7 +4155,7 @@ paths: url: https://voice.bandwidth.com/api/v2 /accounts/{accountId}/calls/{callId}/transcriptions: get: - description: "Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription)." + description: "List the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription)." operationId: listRealTimeTranscriptions parameters: - description: Your Bandwidth Account ID. @@ -4262,7 +4262,7 @@ paths: schema: $ref: '#/components/schemas/voiceApiError' description: Internal Server Error - summary: Enumerate transcriptions made with StartTranscription + summary: List Real-time Transcriptions tags: - Transcriptions x-accepts: @@ -4387,7 +4387,7 @@ paths: schema: $ref: '#/components/schemas/voiceApiError' description: Internal Server Error - summary: Delete a specific transcription + summary: Delete Real-time Transcription tags: - Transcriptions x-accepts: @@ -4510,7 +4510,7 @@ paths: schema: $ref: '#/components/schemas/voiceApiError' description: Internal Server Error - summary: Retrieve a specific transcription + summary: Get Real-time Transcription tags: - Transcriptions x-accepts: @@ -8246,7 +8246,7 @@ components: - type title: CreateMessageRequestError type: object - messageId: + id: description: The ID of the message. example: 1589228074636lm4k2je7j7jklbn2 type: string @@ -8569,8 +8569,8 @@ components: text: Hello world type: REPLY text: Hello world - messageId: 1589228074636lm4k2je7j7jklbn2 expiration: 2021-02-01T11:29:18-05:00 + id: 1589228074636lm4k2je7j7jklbn2 time: 2025-01-01T18:20:16Z to: - "+15554443333" @@ -9236,8 +9236,8 @@ components: text: Hello world type: REPLY text: Hello world - messageId: 1589228074636lm4k2je7j7jklbn2 expiration: 2021-02-01T11:29:18-05:00 + id: 1589228074636lm4k2je7j7jklbn2 time: 2025-01-01T18:20:16Z to: - "+15554443333" @@ -9245,7 +9245,7 @@ components: priority: default direction: in properties: - messageId: + id: description: The ID of the message. example: 1589228074636lm4k2je7j7jklbn2 type: string @@ -9290,7 +9290,7 @@ components: required: - channelList - direction - - messageId + - id - time - to type: object @@ -10450,8 +10450,8 @@ components: description: |- A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member's - [Get Conference Member](/apis/voice/#operation/getConferenceMember) endpoint - and [Modify Conference Member](/apis/voice/#operation/updateConferenceMember) + [Get Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/getConferenceMember) endpoint + and [Modify Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/updateConferenceMember) endpoint. example: https://voice.bandwidth.com/api/v2/accounts/9900000/conferences/conf-fe23a767-a75a5b77-20c5-4cca-b581-cbbf0776eca9/members/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 format: uri @@ -10789,7 +10789,7 @@ components: transcriptionUrl: description: |- A URL that may be used to retrieve the transcription itself. This points to the - [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. + [Get Call Transcription](/apis/voice-apis/voice/#tag/Transcriptions/operation/getRealTimeTranscription) endpoint. example: https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b type: string type: object diff --git a/bandwidth.yml b/bandwidth.yml index 004fb91b..b7f79686 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -1157,9 +1157,9 @@ paths: get: tags: - Transcriptions - summary: Enumerate transcriptions made with StartTranscription + summary: List Real-time Transcriptions description: >- - Enumerates the transcriptions created on this call via + List the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). operationId: listRealTimeTranscriptions parameters: @@ -1189,7 +1189,7 @@ paths: get: tags: - Transcriptions - summary: Retrieve a specific transcription + summary: Get Real-time Transcription description: >- Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). @@ -1220,7 +1220,7 @@ paths: delete: tags: - Transcriptions - summary: Delete a specific transcription + summary: Delete Real-time Transcription description: >- Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). @@ -1929,7 +1929,7 @@ components: required: - type - description - messageId: + id: type: string description: The ID of the message. example: 1589228074636lm4k2je7j7jklbn2 @@ -2549,8 +2549,8 @@ components: description: The data returned in a multichannel message response. type: object properties: - messageId: - $ref: '#/components/schemas/messageId' + id: + $ref: '#/components/schemas/id' time: description: The time the message was received by the Bandwidth API. type: string @@ -2586,7 +2586,7 @@ components: expiration: $ref: '#/components/schemas/expiration' required: - - messageId + - id - time - direction - to @@ -3738,11 +3738,12 @@ components: the state of this conference member. This is the URL of this member's - [Get Conference Member](/apis/voice/#operation/getConferenceMember) + [Get Conference + Member](/apis/voice-apis/voice/#tag/Conferences/operation/getConferenceMember) endpoint and [Modify Conference - Member](/apis/voice/#operation/updateConferenceMember) + Member](/apis/voice-apis/voice/#tag/Conferences/operation/updateConferenceMember) endpoint. example: >- @@ -4094,7 +4095,7 @@ components: points to the [Get Call - Transcription](/apis/voice/#operation/getCallTranscription) + Transcription](/apis/voice-apis/voice/#tag/Transcriptions/operation/getRealTimeTranscription) endpoint. example: >- https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-fef240ff-5cfc9091-8069-4863-a8c0-a4dcbbf1f1a4/transcriptions/t-3f758f24-c7a2fc78-7c91-401a-8b2e-e542f9c40d6b diff --git a/docs/CallTranscriptionMetadata.md b/docs/CallTranscriptionMetadata.md index 4173346a..280e3311 100644 --- a/docs/CallTranscriptionMetadata.md +++ b/docs/CallTranscriptionMetadata.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**transcriptionId** | **String** | The programmable voice API transcription ID. | [optional] | |**transcriptionName** | **String** | The programmable voice API transcription name. This name could be provided by the user when creating the transcription. | [optional] | -|**transcriptionUrl** | **String** | A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. | [optional] | +|**transcriptionUrl** | **String** | A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice-apis/voice/#tag/Transcriptions/operation/getRealTimeTranscription) endpoint. | [optional] | diff --git a/docs/ConferenceMember.md b/docs/ConferenceMember.md index f4d518d5..c9a3ab3e 100644 --- a/docs/ConferenceMember.md +++ b/docs/ConferenceMember.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**callId** | **String** | The call id associated with the event. | [optional] | |**conferenceId** | **String** | The unique, Bandwidth-generated ID of the conference that was recorded | [optional] | -|**memberUrl** | **URI** | A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member's [Get Conference Member](/apis/voice/#operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice/#operation/updateConferenceMember) endpoint. | [optional] | +|**memberUrl** | **URI** | A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member's [Get Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/updateConferenceMember) endpoint. | [optional] | |**mute** | **Boolean** | Whether or not this member is currently muted. Members who are muted are still able to hear other participants. If used in a PUT request, updates this member's mute status. Has no effect if omitted. | [optional] | |**hold** | **Boolean** | Whether or not this member is currently on hold. Members who are on hold are not able to hear or speak in the conference. If used in a PUT request, updates this member's hold status. Has no effect if omitted. | [optional] | |**callIdsToCoach** | **List<String>** | If this member had a value set for `callIdsToCoach` in its [Conference](/docs/voice/bxml/conference) verb or this list was added with a previous PUT request to modify the member, this is that list of calls. If present in a PUT request, modifies the calls that this member is coaching. Has no effect if omitted. See the documentation for the [Conference](/docs/voice/bxml/conference) verb for more details about coaching. Note that this will not add the matching calls to the conference; each call must individually execute a Conference verb to join. | [optional] | diff --git a/docs/MultiChannelMessageResponseData.md b/docs/MultiChannelMessageResponseData.md index 34171831..b91e8678 100644 --- a/docs/MultiChannelMessageResponseData.md +++ b/docs/MultiChannelMessageResponseData.md @@ -8,7 +8,7 @@ The data returned in a multichannel message response. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**messageId** | **String** | The ID of the message. | | +|**id** | **String** | The ID of the message. | | |**time** | **OffsetDateTime** | The time the message was received by the Bandwidth API. | | |**direction** | **MessageDirectionEnum** | | | |**to** | **Set<String>** | The destination phone number(s) of the message, in E164 format. | | diff --git a/docs/TranscriptionsApi.md b/docs/TranscriptionsApi.md index 981a293e..ec633266 100644 --- a/docs/TranscriptionsApi.md +++ b/docs/TranscriptionsApi.md @@ -4,16 +4,16 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**deleteRealTimeTranscription**](TranscriptionsApi.md#deleteRealTimeTranscription) | **DELETE** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete a specific transcription | -| [**getRealTimeTranscription**](TranscriptionsApi.md#getRealTimeTranscription) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Retrieve a specific transcription | -| [**listRealTimeTranscriptions**](TranscriptionsApi.md#listRealTimeTranscriptions) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions | Enumerate transcriptions made with StartTranscription | +| [**deleteRealTimeTranscription**](TranscriptionsApi.md#deleteRealTimeTranscription) | **DELETE** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Delete Real-time Transcription | +| [**getRealTimeTranscription**](TranscriptionsApi.md#getRealTimeTranscription) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions/{transcriptionId} | Get Real-time Transcription | +| [**listRealTimeTranscriptions**](TranscriptionsApi.md#listRealTimeTranscriptions) | **GET** /accounts/{accountId}/calls/{callId}/transcriptions | List Real-time Transcriptions | # **deleteRealTimeTranscription** > deleteRealTimeTranscription(accountId, callId, transcriptionId) -Delete a specific transcription +Delete Real-time Transcription Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. @@ -92,7 +92,7 @@ null (empty response body) # **getRealTimeTranscription** > CallTranscriptionResponse getRealTimeTranscription(accountId, callId, transcriptionId) -Retrieve a specific transcription +Get Real-time Transcription Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). @@ -172,9 +172,9 @@ public class Example { # **listRealTimeTranscriptions** > List<CallTranscriptionMetadata> listRealTimeTranscriptions(accountId, callId) -Enumerate transcriptions made with StartTranscription +List Real-time Transcriptions -Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). +List the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). ### Example ```java diff --git a/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java b/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java index ab0de44a..cd911d97 100644 --- a/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java @@ -166,7 +166,7 @@ private okhttp3.Call deleteRealTimeTranscriptionValidateBeforeCall(String accoun } /** - * Delete a specific transcription + * Delete Real-time Transcription * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) @@ -192,7 +192,7 @@ public void deleteRealTimeTranscription(String accountId, String callId, String } /** - * Delete a specific transcription + * Delete Real-time Transcription * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) @@ -220,7 +220,7 @@ public ApiResponse deleteRealTimeTranscriptionWithHttpInfo(String accountI } /** - * Delete a specific transcription (asynchronously) + * Delete Real-time Transcription (asynchronously) * Delete the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). Note: After the deletion is requested and a `200` is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours. * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) @@ -341,7 +341,7 @@ private okhttp3.Call getRealTimeTranscriptionValidateBeforeCall(String accountId } /** - * Retrieve a specific transcription + * Get Real-time Transcription * Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) @@ -369,7 +369,7 @@ public CallTranscriptionResponse getRealTimeTranscription(String accountId, Stri } /** - * Retrieve a specific transcription + * Get Real-time Transcription * Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) @@ -398,7 +398,7 @@ public ApiResponse getRealTimeTranscriptionWithHttpIn } /** - * Retrieve a specific transcription (asynchronously) + * Get Real-time Transcription (asynchronously) * Retrieve the specified transcription that was created on this call via [startTranscription](/docs/voice/bxml/startTranscription). * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) @@ -513,8 +513,8 @@ private okhttp3.Call listRealTimeTranscriptionsValidateBeforeCall(String account } /** - * Enumerate transcriptions made with StartTranscription - * Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). + * List Real-time Transcriptions + * List the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) * @return List<CallTranscriptionMetadata> @@ -540,8 +540,8 @@ public List listRealTimeTranscriptions(String account } /** - * Enumerate transcriptions made with StartTranscription - * Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). + * List Real-time Transcriptions + * List the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) * @return ApiResponse<List<CallTranscriptionMetadata>> @@ -568,8 +568,8 @@ public ApiResponse> listRealTimeTranscriptionsWi } /** - * Enumerate transcriptions made with StartTranscription (asynchronously) - * Enumerates the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). + * List Real-time Transcriptions (asynchronously) + * List the transcriptions created on this call via [startTranscription](/docs/voice/bxml/startTranscription). * @param accountId Your Bandwidth Account ID. (required) * @param callId Programmable Voice API Call ID. (required) * @param _callback The callback to be executed when the API call finishes diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java index 19bf508b..ca3e2a41 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java @@ -112,7 +112,7 @@ public CallTranscriptionMetadata transcriptionUrl(@javax.annotation.Nullable Str } /** - * A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. + * A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice-apis/voice/#tag/Transcriptions/operation/getRealTimeTranscription) endpoint. * @return transcriptionUrl */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java index ccb7abd6..e74930a5 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java @@ -131,7 +131,7 @@ public ConferenceMember memberUrl(@javax.annotation.Nullable URI memberUrl) { } /** - * A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member's [Get Conference Member](/apis/voice/#operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice/#operation/updateConferenceMember) endpoint. + * A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member's [Get Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/updateConferenceMember) endpoint. * @return memberUrl */ @javax.annotation.Nullable diff --git a/src/main/java/com/bandwidth/sdk/model/MultiChannelMessageResponseData.java b/src/main/java/com/bandwidth/sdk/model/MultiChannelMessageResponseData.java index f1684e1c..7f24dfdd 100644 --- a/src/main/java/com/bandwidth/sdk/model/MultiChannelMessageResponseData.java +++ b/src/main/java/com/bandwidth/sdk/model/MultiChannelMessageResponseData.java @@ -58,10 +58,10 @@ */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MultiChannelMessageResponseData { - public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; - @SerializedName(SERIALIZED_NAME_MESSAGE_ID) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) @javax.annotation.Nonnull - private String messageId; + private String id; public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -101,22 +101,22 @@ public class MultiChannelMessageResponseData { public MultiChannelMessageResponseData() { } - public MultiChannelMessageResponseData messageId(@javax.annotation.Nonnull String messageId) { - this.messageId = messageId; + public MultiChannelMessageResponseData id(@javax.annotation.Nonnull String id) { + this.id = id; return this; } /** * The ID of the message. - * @return messageId + * @return id */ @javax.annotation.Nonnull - public String getMessageId() { - return messageId; + public String getId() { + return id; } - public void setMessageId(@javax.annotation.Nonnull String messageId) { - this.messageId = messageId; + public void setId(@javax.annotation.Nonnull String id) { + this.id = id; } @@ -323,7 +323,7 @@ public boolean equals(Object o) { return false; } MultiChannelMessageResponseData multiChannelMessageResponseData = (MultiChannelMessageResponseData) o; - return Objects.equals(this.messageId, multiChannelMessageResponseData.messageId) && + return Objects.equals(this.id, multiChannelMessageResponseData.id) && Objects.equals(this.time, multiChannelMessageResponseData.time) && Objects.equals(this.direction, multiChannelMessageResponseData.direction) && Objects.equals(this.to, multiChannelMessageResponseData.to) && @@ -336,14 +336,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(messageId, time, direction, to, channelList, tag, priority, expiration, additionalProperties); + return Objects.hash(id, time, direction, to, channelList, tag, priority, expiration, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MultiChannelMessageResponseData {\n"); - sb.append(" messageId: ").append(toIndentedString(messageId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); @@ -374,7 +374,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("messageId"); + openapiFields.add("id"); openapiFields.add("time"); openapiFields.add("direction"); openapiFields.add("to"); @@ -385,7 +385,7 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("messageId"); + openapiRequiredFields.add("id"); openapiRequiredFields.add("time"); openapiRequiredFields.add("direction"); openapiRequiredFields.add("to"); @@ -412,8 +412,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("messageId").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `messageId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("messageId").toString())); + if (!jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } // validate the required field `direction` MessageDirectionEnum.validateJsonElement(jsonObj.get("direction")); diff --git a/src/test/java/com/bandwidth/sdk/unit/models/MultiChannelMessageResponseDataTest.java b/src/test/java/com/bandwidth/sdk/unit/models/MultiChannelMessageResponseDataTest.java index 68097dbb..b4b2b9bb 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/MultiChannelMessageResponseDataTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/MultiChannelMessageResponseDataTest.java @@ -32,7 +32,7 @@ */ public class MultiChannelMessageResponseDataTest { private final MultiChannelMessageResponseData model = new MultiChannelMessageResponseData() - .messageId("messageId") + .id("messageId") .time(OffsetDateTime.now()) .direction(MessageDirectionEnum.IN) .to(Sets.newSet("to")) @@ -50,11 +50,11 @@ public void testMultiChannelMessageResponseData() { } /** - * Test the property 'messageId' + * Test the property 'id' */ @Test - public void messageIdTest() { - assertThat(model.getMessageId(), instanceOf(String.class)); + public void idTest() { + assertThat(model.getId(), instanceOf(String.class)); } /**