Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ docs/LinksObject.md
docs/ListEndpointsResponse.md
docs/ListMessageDirectionEnum.md
docs/ListMessageItem.md
docs/LocationResponse.md
docs/LookupErrorResponse.md
docs/LookupErrorSchema.md
docs/LookupErrorSchemaMeta.md
Expand Down Expand Up @@ -149,7 +150,6 @@ docs/RbmActionTypeEnum.md
docs/RbmActionViewLocation.md
docs/RbmCardContent.md
docs/RbmCardContentMedia.md
docs/RbmLocationResponse.md
docs/RbmMediaHeightEnum.md
docs/RbmMessageCarouselCard.md
docs/RbmMessageContentFile.md
Expand All @@ -158,7 +158,6 @@ docs/RbmMessageContentText.md
docs/RbmMessageMedia.md
docs/RbmOpenUrlEnum.md
docs/RbmStandaloneCard.md
docs/RbmSuggestionResponse.md
docs/RbmWebViewEnum.md
docs/RecordingAvailableCallback.md
docs/RecordingCompleteCallback.md
Expand All @@ -177,6 +176,7 @@ docs/StatusCallback.md
docs/StatusCallbackMessage.md
docs/StatusCallbackTypeEnum.md
docs/StirShaken.md
docs/SuggestionResponse.md
docs/SyncLookupRequest.md
docs/TelephoneNumber.md
docs/TfvBasicAuthentication.md
Expand Down Expand Up @@ -342,6 +342,7 @@ src/main/java/com/bandwidth/sdk/model/LinksObject.java
src/main/java/com/bandwidth/sdk/model/ListEndpointsResponse.java
src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java
src/main/java/com/bandwidth/sdk/model/ListMessageItem.java
src/main/java/com/bandwidth/sdk/model/LocationResponse.java
src/main/java/com/bandwidth/sdk/model/LookupErrorResponse.java
src/main/java/com/bandwidth/sdk/model/LookupErrorSchema.java
src/main/java/com/bandwidth/sdk/model/LookupErrorSchemaMeta.java
Expand Down Expand Up @@ -393,7 +394,6 @@ src/main/java/com/bandwidth/sdk/model/RbmActionTypeEnum.java
src/main/java/com/bandwidth/sdk/model/RbmActionViewLocation.java
src/main/java/com/bandwidth/sdk/model/RbmCardContent.java
src/main/java/com/bandwidth/sdk/model/RbmCardContentMedia.java
src/main/java/com/bandwidth/sdk/model/RbmLocationResponse.java
src/main/java/com/bandwidth/sdk/model/RbmMediaHeightEnum.java
src/main/java/com/bandwidth/sdk/model/RbmMessageCarouselCard.java
src/main/java/com/bandwidth/sdk/model/RbmMessageContentFile.java
Expand All @@ -402,7 +402,6 @@ src/main/java/com/bandwidth/sdk/model/RbmMessageContentText.java
src/main/java/com/bandwidth/sdk/model/RbmMessageMedia.java
src/main/java/com/bandwidth/sdk/model/RbmOpenUrlEnum.java
src/main/java/com/bandwidth/sdk/model/RbmStandaloneCard.java
src/main/java/com/bandwidth/sdk/model/RbmSuggestionResponse.java
src/main/java/com/bandwidth/sdk/model/RbmWebViewEnum.java
src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java
src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java
Expand All @@ -419,6 +418,7 @@ src/main/java/com/bandwidth/sdk/model/StatusCallback.java
src/main/java/com/bandwidth/sdk/model/StatusCallbackMessage.java
src/main/java/com/bandwidth/sdk/model/StatusCallbackTypeEnum.java
src/main/java/com/bandwidth/sdk/model/StirShaken.java
src/main/java/com/bandwidth/sdk/model/SuggestionResponse.java
src/main/java/com/bandwidth/sdk/model/SyncLookupRequest.java
src/main/java/com/bandwidth/sdk/model/TelephoneNumber.java
src/main/java/com/bandwidth/sdk/model/TfvBasicAuthentication.java
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ Class | Method | HTTP request | Description
- [ListEndpointsResponse](docs/ListEndpointsResponse.md)
- [ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md)
- [ListMessageItem](docs/ListMessageItem.md)
- [LocationResponse](docs/LocationResponse.md)
- [LookupErrorResponse](docs/LookupErrorResponse.md)
- [LookupErrorSchema](docs/LookupErrorSchema.md)
- [LookupErrorSchemaMeta](docs/LookupErrorSchemaMeta.md)
Expand Down Expand Up @@ -326,7 +327,6 @@ Class | Method | HTTP request | Description
- [RbmActionViewLocation](docs/RbmActionViewLocation.md)
- [RbmCardContent](docs/RbmCardContent.md)
- [RbmCardContentMedia](docs/RbmCardContentMedia.md)
- [RbmLocationResponse](docs/RbmLocationResponse.md)
- [RbmMediaHeightEnum](docs/RbmMediaHeightEnum.md)
- [RbmMessageCarouselCard](docs/RbmMessageCarouselCard.md)
- [RbmMessageContentFile](docs/RbmMessageContentFile.md)
Expand All @@ -335,7 +335,6 @@ Class | Method | HTTP request | Description
- [RbmMessageMedia](docs/RbmMessageMedia.md)
- [RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
- [RbmStandaloneCard](docs/RbmStandaloneCard.md)
- [RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
- [RbmWebViewEnum](docs/RbmWebViewEnum.md)
- [RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
- [RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
Expand All @@ -352,6 +351,7 @@ Class | Method | HTTP request | Description
- [StatusCallbackMessage](docs/StatusCallbackMessage.md)
- [StatusCallbackTypeEnum](docs/StatusCallbackTypeEnum.md)
- [StirShaken](docs/StirShaken.md)
- [SuggestionResponse](docs/SuggestionResponse.md)
- [SyncLookupRequest](docs/SyncLookupRequest.md)
- [TelephoneNumber](docs/TelephoneNumber.md)
- [TfvBasicAuthentication](docs/TfvBasicAuthentication.md)
Expand Down
25 changes: 15 additions & 10 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6480,8 +6480,8 @@ components:
<p>This Inbound Message Webhook is an envelope containing either a received (MO) message to your
message-enabled Bandwidth telephone number or a multichannel client's response to a suggestion response
or location request.
<p>The payload type will be one of <code>message-received</code>, <code>suggestion-response</code>, or <code>location-request-response</code>.
<p>Note that <code>suggestion-response</code> and <code>location-request-response</code> callback types are pertinent only for RBM messages sent from the <code>/messages/multiChannel</code> endpoint.
<p>The payload type will be one of <code>message-received</code>, <code>suggestion-response</code>, or <code>requested-location-response</code>.
<p>Note that <code>suggestion-response</code> and <code>requested-location-response</code> callback types are pertinent only for RBM messages sent from the <code>/messages/multiChannel</code> endpoint.
</p><p>Please visit <a href='/docs/messaging/webhooks/'>Webhooks</a></p>
required: true
responses:
Expand Down Expand Up @@ -7199,7 +7199,7 @@ components:
tag: "{\"myTag\": \"myTagValue\"}"
updateEndpointBxmlRequestExample:
summary: Update Endpoint BXML Request Example
value: <Bxml><StartRecording /></Bxml>
value: <Response><StartRecording /></Response>
endpointDisconnectedEventExample:
summary: Endpoint Disconnected Event
value:
Expand Down Expand Up @@ -10627,7 +10627,7 @@ components:
media:
$ref: "#/components/schemas/rbmMessageContentFile"
type: object
rbmSuggestionResponse:
suggestionResponse:
properties:
text:
description: The text associated with the suggestion response.
Expand All @@ -10641,8 +10641,13 @@ components:
maxLength: 2048
title: Post Back Data
type: string
pairedMessageId:
description: Corresponding parent message ID (MT).
example: 1752697342534u24xerqdukke523x
nullable: true
type: string
type: object
rbmLocationResponse:
locationResponse:
properties:
latitude:
description: The latitude of the client's location.
Expand All @@ -10668,7 +10673,7 @@ components:
message-failed: "#/components/schemas/statusCallback"
message-read: "#/components/schemas/statusCallback"
message-received: "#/components/schemas/inboundCallback"
request-location-response: "#/components/schemas/inboundCallback"
requested-location-response: "#/components/schemas/inboundCallback"
suggestion-response: "#/components/schemas/inboundCallback"
propertyName: type
oneOf:
Expand Down Expand Up @@ -10774,11 +10779,11 @@ components:
description: |-
The possible inbound callback types originating from MO messages or multichannel message client responses:
- `message-received` indicates an MO message from a Bandwidth user's client to a Bandwidth number.
- `request-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message.
- `requested-location-response` indicates a response to a location request sent by the Bandwidth user's client after receiving an RBM message.
- `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message.
enum:
- message-received
- request-location-response
- requested-location-response
- suggestion-response
example: message-received
type: string
Expand Down Expand Up @@ -10862,9 +10867,9 @@ components:
content:
$ref: "#/components/schemas/multiChannelMessageContent"
suggestionResponse:
$ref: "#/components/schemas/rbmSuggestionResponse"
$ref: "#/components/schemas/suggestionResponse"
locationResponse:
$ref: "#/components/schemas/rbmLocationResponse"
$ref: "#/components/schemas/locationResponse"
type: object
required:
- applicationId
Expand Down
28 changes: 17 additions & 11 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2880,7 +2880,7 @@ components:
type: string
media:
$ref: '#/components/schemas/rbmMessageContentFile'
rbmSuggestionResponse:
suggestionResponse:
type: object
properties:
text:
Expand All @@ -2889,7 +2889,12 @@ components:
example: Yes, I would like to proceed
postbackData:
$ref: '#/components/schemas/rbmActionPostbackData'
rbmLocationResponse:
pairedMessageId:
type: string
nullable: true
description: Corresponding parent message ID (MT).
example: 1752697342534u24xerqdukke523x
locationResponse:
type: object
properties:
latitude:
Expand Down Expand Up @@ -2925,7 +2930,7 @@ components:
message-failed: '#/components/schemas/statusCallback'
message-read: '#/components/schemas/statusCallback'
message-received: '#/components/schemas/inboundCallback'
request-location-response: '#/components/schemas/inboundCallback'
requested-location-response: '#/components/schemas/inboundCallback'
suggestion-response: '#/components/schemas/inboundCallback'
statusCallback:
type: object
Expand Down Expand Up @@ -3035,14 +3040,15 @@ components:
- `message-received` indicates an MO message from a Bandwidth user's
client to a Bandwidth number.

- `request-location-response` indicates a response to a location request
sent by the Bandwidth user's client after receiving an RBM message.
- `requested-location-response` indicates a response to a location
request sent by the Bandwidth user's client after receiving an RBM
message.

- `suggestion-response` indicates a response to a suggestion sent by the
Bandwidth user's client after receiving an RBM message.
enum:
- message-received
- request-location-response
- requested-location-response
- suggestion-response
example: message-received
statusCallbackMessage:
Expand Down Expand Up @@ -3118,9 +3124,9 @@ components:
content:
$ref: '#/components/schemas/multiChannelMessageContent'
suggestionResponse:
$ref: '#/components/schemas/rbmSuggestionResponse'
$ref: '#/components/schemas/suggestionResponse'
locationResponse:
$ref: '#/components/schemas/rbmLocationResponse'
$ref: '#/components/schemas/locationResponse'
required:
- id
- owner
Expand Down Expand Up @@ -9154,7 +9160,7 @@ components:
tag: '{"myTag": "myTagValue"}'
updateEndpointBxmlRequestExample:
summary: Update Endpoint BXML Request Example
value: <Bxml><StartRecording /></Bxml>
value: <Response><StartRecording /></Response>
endpointDisconnectedEventExample:
summary: Endpoint Disconnected Event
value:
Expand Down Expand Up @@ -9678,10 +9684,10 @@ components:

<p>The payload type will be one of <code>message-received</code>,
<code>suggestion-response</code>, or
<code>location-request-response</code>.
<code>requested-location-response</code>.

<p>Note that <code>suggestion-response</code> and
<code>location-request-response</code> callback types are
<code>requested-location-response</code> callback types are
pertinent only for RBM messages sent from the
<code>/messages/multiChannel</code> endpoint.

Expand Down
4 changes: 2 additions & 2 deletions docs/InboundCallbackMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
|**priority** | **PriorityEnum** | | [optional] |
|**channel** | **MultiChannelMessageChannelEnum** | | [optional] |
|**content** | [**MultiChannelMessageContent**](MultiChannelMessageContent.md) | | [optional] |
|**suggestionResponse** | [**RbmSuggestionResponse**](RbmSuggestionResponse.md) | | [optional] |
|**locationResponse** | [**RbmLocationResponse**](RbmLocationResponse.md) | | [optional] |
|**suggestionResponse** | [**SuggestionResponse**](SuggestionResponse.md) | | [optional] |
|**locationResponse** | [**LocationResponse**](LocationResponse.md) | | [optional] |



2 changes: 1 addition & 1 deletion docs/InboundCallbackTypeEnum.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

* `MESSAGE_RECEIVED` (value: `"message-received"`)

* `REQUEST_LOCATION_RESPONSE` (value: `"request-location-response"`)
* `REQUESTED_LOCATION_RESPONSE` (value: `"requested-location-response"`)

* `SUGGESTION_RESPONSE` (value: `"suggestion-response"`)

Expand Down
14 changes: 14 additions & 0 deletions docs/LocationResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# LocationResponse


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**latitude** | **Double** | The latitude of the client&#39;s location. | [optional] |
|**longitude** | **Double** | The longitude of the client&#39;s location. | [optional] |



15 changes: 15 additions & 0 deletions docs/SuggestionResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


# SuggestionResponse


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**text** | **String** | The text associated with the suggestion response. | [optional] |
|**postbackData** | **byte[]** | Base64 payload the customer receives when the reply is clicked. | [optional] |
|**pairedMessageId** | **String** | Corresponding parent message ID (MT). | [optional] |



6 changes: 3 additions & 3 deletions src/main/java/com/bandwidth/sdk/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Class<? extends com.bandwidth.sdk.model.Callback> getClassForElement(Json
classByDiscriminatorValue.put("message-received", com.bandwidth.sdk.model.InboundCallback.class);
classByDiscriminatorValue.put("message-sending", com.bandwidth.sdk.model.StatusCallback.class);
classByDiscriminatorValue.put("message-sent", com.bandwidth.sdk.model.StatusCallback.class);
classByDiscriminatorValue.put("request-location-response", com.bandwidth.sdk.model.InboundCallback.class);
classByDiscriminatorValue.put("requested-location-response", com.bandwidth.sdk.model.InboundCallback.class);
classByDiscriminatorValue.put("suggestion-response", com.bandwidth.sdk.model.InboundCallback.class);
classByDiscriminatorValue.put("callback", com.bandwidth.sdk.model.Callback.class);
return getClassByDiscriminator(classByDiscriminatorValue,
Expand Down Expand Up @@ -216,6 +216,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LinksObject.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.ListEndpointsResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.ListMessageItem.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LocationResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LookupErrorResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LookupErrorSchema.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.LookupErrorSchemaMeta.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -260,14 +261,12 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmActionViewLocation.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmCardContent.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmCardContentMedia.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmLocationResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmMessageCarouselCard.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmMessageContentFile.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmMessageContentRichCard.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmMessageContentText.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmMessageMedia.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmStandaloneCard.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RbmSuggestionResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RecordingAvailableCallback.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RecordingCompleteCallback.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.RecordingTranscriptionMetadata.CustomTypeAdapterFactory());
Expand All @@ -279,6 +278,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.StatusCallback.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.StatusCallbackMessage.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.StirShaken.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.SuggestionResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.SyncLookupRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.TelephoneNumber.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.bandwidth.sdk.model.TfvBasicAuthentication.CustomTypeAdapterFactory());
Expand Down
Loading
Loading