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 @@ -93,6 +93,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 @@ -150,7 +151,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 @@ -159,7 +159,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 @@ -178,6 +177,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 @@ -318,6 +318,7 @@ lib/bandwidth-sdk/models/links_object.rb
lib/bandwidth-sdk/models/list_endpoints_response.rb
lib/bandwidth-sdk/models/list_message_direction_enum.rb
lib/bandwidth-sdk/models/list_message_item.rb
lib/bandwidth-sdk/models/location_response.rb
lib/bandwidth-sdk/models/lookup_error_response.rb
lib/bandwidth-sdk/models/lookup_error_schema.rb
lib/bandwidth-sdk/models/lookup_error_schema_meta.rb
Expand Down Expand Up @@ -370,7 +371,6 @@ lib/bandwidth-sdk/models/rbm_action_type_enum.rb
lib/bandwidth-sdk/models/rbm_action_view_location.rb
lib/bandwidth-sdk/models/rbm_card_content.rb
lib/bandwidth-sdk/models/rbm_card_content_media.rb
lib/bandwidth-sdk/models/rbm_location_response.rb
lib/bandwidth-sdk/models/rbm_media_height_enum.rb
lib/bandwidth-sdk/models/rbm_message_carousel_card.rb
lib/bandwidth-sdk/models/rbm_message_content_file.rb
Expand All @@ -379,7 +379,6 @@ lib/bandwidth-sdk/models/rbm_message_content_text.rb
lib/bandwidth-sdk/models/rbm_message_media.rb
lib/bandwidth-sdk/models/rbm_open_url_enum.rb
lib/bandwidth-sdk/models/rbm_standalone_card.rb
lib/bandwidth-sdk/models/rbm_suggestion_response.rb
lib/bandwidth-sdk/models/rbm_web_view_enum.rb
lib/bandwidth-sdk/models/recording_available_callback.rb
lib/bandwidth-sdk/models/recording_complete_callback.rb
Expand All @@ -396,6 +395,7 @@ lib/bandwidth-sdk/models/status_callback.rb
lib/bandwidth-sdk/models/status_callback_message.rb
lib/bandwidth-sdk/models/status_callback_type_enum.rb
lib/bandwidth-sdk/models/stir_shaken.rb
lib/bandwidth-sdk/models/suggestion_response.rb
lib/bandwidth-sdk/models/sync_lookup_request.rb
lib/bandwidth-sdk/models/telephone_number.rb
lib/bandwidth-sdk/models/tfv_basic_authentication.rb
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ Class | Method | HTTP request | Description
- [Bandwidth::ListEndpointsResponse](docs/ListEndpointsResponse.md)
- [Bandwidth::ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md)
- [Bandwidth::ListMessageItem](docs/ListMessageItem.md)
- [Bandwidth::LocationResponse](docs/LocationResponse.md)
- [Bandwidth::LookupErrorResponse](docs/LookupErrorResponse.md)
- [Bandwidth::LookupErrorSchema](docs/LookupErrorSchema.md)
- [Bandwidth::LookupErrorSchemaMeta](docs/LookupErrorSchemaMeta.md)
Expand Down Expand Up @@ -314,7 +315,6 @@ Class | Method | HTTP request | Description
- [Bandwidth::RbmActionViewLocation](docs/RbmActionViewLocation.md)
- [Bandwidth::RbmCardContent](docs/RbmCardContent.md)
- [Bandwidth::RbmCardContentMedia](docs/RbmCardContentMedia.md)
- [Bandwidth::RbmLocationResponse](docs/RbmLocationResponse.md)
- [Bandwidth::RbmMediaHeightEnum](docs/RbmMediaHeightEnum.md)
- [Bandwidth::RbmMessageCarouselCard](docs/RbmMessageCarouselCard.md)
- [Bandwidth::RbmMessageContentFile](docs/RbmMessageContentFile.md)
Expand All @@ -323,7 +323,6 @@ Class | Method | HTTP request | Description
- [Bandwidth::RbmMessageMedia](docs/RbmMessageMedia.md)
- [Bandwidth::RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
- [Bandwidth::RbmStandaloneCard](docs/RbmStandaloneCard.md)
- [Bandwidth::RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
- [Bandwidth::RbmWebViewEnum](docs/RbmWebViewEnum.md)
- [Bandwidth::RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
- [Bandwidth::RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
Expand All @@ -340,6 +339,7 @@ Class | Method | HTTP request | Description
- [Bandwidth::StatusCallbackMessage](docs/StatusCallbackMessage.md)
- [Bandwidth::StatusCallbackTypeEnum](docs/StatusCallbackTypeEnum.md)
- [Bandwidth::StirShaken](docs/StirShaken.md)
- [Bandwidth::SuggestionResponse](docs/SuggestionResponse.md)
- [Bandwidth::SyncLookupRequest](docs/SyncLookupRequest.md)
- [Bandwidth::TelephoneNumber](docs/TelephoneNumber.md)
- [Bandwidth::TfvBasicAuthentication](docs/TfvBasicAuthentication.md)
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
2 changes: 1 addition & 1 deletion docs/Callback.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Bandwidth::Callback.openapi_discriminator_mapping
# :'message-received' => :'InboundCallback',
# :'message-sending' => :'StatusCallback',
# :'message-sent' => :'StatusCallback',
# :'request-location-response' => :'InboundCallback',
# :'requested-location-response' => :'InboundCallback',
# :'suggestion-response' => :'InboundCallback'
# }
```
Expand Down
4 changes: 2 additions & 2 deletions docs/InboundCallbackMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
| **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] |
| **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [optional] |
| **content** | [**MultiChannelMessageContent**](MultiChannelMessageContent.md) | | [optional] |
| **suggestion_response** | [**RbmSuggestionResponse**](RbmSuggestionResponse.md) | | [optional] |
| **location_response** | [**RbmLocationResponse**](RbmLocationResponse.md) | | [optional] |
| **suggestion_response** | [**SuggestionResponse**](SuggestionResponse.md) | | [optional] |
| **location_response** | [**LocationResponse**](LocationResponse.md) | | [optional] |

## Example

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

## Properties

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

## Example

```ruby
require 'bandwidth-sdk'

instance = Bandwidth::LocationResponse.new(
latitude: 37.7749,
longitude: -122.4194
)
```

2 changes: 1 addition & 1 deletion docs/RbmActionBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require 'bandwidth-sdk'
instance = Bandwidth::RbmActionBase.new(
type: null,
text: Hello world,
postback_data: [B@24fb752f
postback_data: [B@20706e70
)
```

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

## Properties

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

## Example

```ruby
require 'bandwidth-sdk'

instance = Bandwidth::SuggestionResponse.new(
text: Yes, I would like to proceed,
postback_data: [B@20706e70,
paired_message_id: 1752697342534u24xerqdukke523x
)
```

4 changes: 2 additions & 2 deletions lib/bandwidth-sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
require 'bandwidth-sdk/models/list_endpoints_response'
require 'bandwidth-sdk/models/list_message_direction_enum'
require 'bandwidth-sdk/models/list_message_item'
require 'bandwidth-sdk/models/location_response'
require 'bandwidth-sdk/models/lookup_error_response'
require 'bandwidth-sdk/models/lookup_error_schema'
require 'bandwidth-sdk/models/lookup_error_schema_meta'
Expand Down Expand Up @@ -156,7 +157,6 @@
require 'bandwidth-sdk/models/rbm_action_view_location'
require 'bandwidth-sdk/models/rbm_card_content'
require 'bandwidth-sdk/models/rbm_card_content_media'
require 'bandwidth-sdk/models/rbm_location_response'
require 'bandwidth-sdk/models/rbm_media_height_enum'
require 'bandwidth-sdk/models/rbm_message_carousel_card'
require 'bandwidth-sdk/models/rbm_message_content_file'
Expand All @@ -165,7 +165,6 @@
require 'bandwidth-sdk/models/rbm_message_media'
require 'bandwidth-sdk/models/rbm_open_url_enum'
require 'bandwidth-sdk/models/rbm_standalone_card'
require 'bandwidth-sdk/models/rbm_suggestion_response'
require 'bandwidth-sdk/models/rbm_web_view_enum'
require 'bandwidth-sdk/models/recording_available_callback'
require 'bandwidth-sdk/models/recording_complete_callback'
Expand All @@ -182,6 +181,7 @@
require 'bandwidth-sdk/models/status_callback_message'
require 'bandwidth-sdk/models/status_callback_type_enum'
require 'bandwidth-sdk/models/stir_shaken'
require 'bandwidth-sdk/models/suggestion_response'
require 'bandwidth-sdk/models/sync_lookup_request'
require 'bandwidth-sdk/models/telephone_number'
require 'bandwidth-sdk/models/tfv_basic_authentication'
Expand Down
2 changes: 1 addition & 1 deletion lib/bandwidth-sdk/models/callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def openapi_discriminator_mapping
:'message-received' => :'InboundCallback',
:'message-sending' => :'StatusCallback',
:'message-sent' => :'StatusCallback',
:'request-location-response' => :'InboundCallback',
:'requested-location-response' => :'InboundCallback',
:'suggestion-response' => :'InboundCallback'
}
end
Expand Down
4 changes: 2 additions & 2 deletions lib/bandwidth-sdk/models/inbound_callback_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def self.openapi_types
:'priority' => :'PriorityEnum',
:'channel' => :'MultiChannelMessageChannelEnum',
:'content' => :'MultiChannelMessageContent',
:'suggestion_response' => :'RbmSuggestionResponse',
:'location_response' => :'RbmLocationResponse'
:'suggestion_response' => :'SuggestionResponse',
:'location_response' => :'LocationResponse'
}
end

Expand Down
4 changes: 2 additions & 2 deletions lib/bandwidth-sdk/models/inbound_callback_type_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
module Bandwidth
class InboundCallbackTypeEnum
MESSAGE_RECEIVED = 'message-received'.freeze
REQUEST_LOCATION_RESPONSE = 'request-location-response'.freeze
REQUESTED_LOCATION_RESPONSE = 'requested-location-response'.freeze
SUGGESTION_RESPONSE = 'suggestion-response'.freeze

def self.all_vars
@all_vars ||= [MESSAGE_RECEIVED, REQUEST_LOCATION_RESPONSE, SUGGESTION_RESPONSE].freeze
@all_vars ||= [MESSAGE_RECEIVED, REQUESTED_LOCATION_RESPONSE, SUGGESTION_RESPONSE].freeze
end

# Builds the enum from string
Expand Down
Loading
Loading