Skip to content
Merged
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
10 changes: 5 additions & 5 deletions Bandwidth.Standard.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{612BC740-F2E6-4466-87AE-403F47F2323F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7AA0ED8A-8E3C-40C0-9782-CD7900DB5B67}.Release|Any CPU.Build.0 = Release|Any CPU
{612BC740-F2E6-4466-87AE-403F47F2323F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{612BC740-F2E6-4466-87AE-403F47F2323F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{612BC740-F2E6-4466-87AE-403F47F2323F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{612BC740-F2E6-4466-87AE-403F47F2323F}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
17 changes: 11 additions & 6 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6343,8 +6343,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 @@ -7062,7 +7062,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 @@ -10504,6 +10504,11 @@ 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:
properties:
Expand Down Expand Up @@ -10531,7 +10536,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 @@ -10637,11 +10642,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
20 changes: 13 additions & 7 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2889,6 +2889,11 @@ components:
example: Yes, I would like to proceed
postbackData:
$ref: '#/components/schemas/rbmActionPostbackData'
pairedMessageId:
type: string
nullable: true
description: Corresponding parent message ID (MT).
example: 1752697342534u24xerqdukke523x
rbmLocationResponse:
type: object
properties:
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 @@ -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/InboundCallbackTypeEnum.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Bandwidth.Standard.Model.InboundCallbackTypeEnum
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. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user's client after receiving an RBM message.
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. - `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.

## Properties

Expand Down
1 change: 1 addition & 0 deletions docs/RbmSuggestionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ 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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public RbmSuggestionResponseTests()
{
instance = new RbmSuggestionResponse(
text: "Sample suggestion text",
postbackData: new byte[] { 1, 2, 3 }
postbackData: new byte[] { 1, 2, 3 },
pairedMessageId: "12345"
);
}

Expand Down Expand Up @@ -74,5 +75,15 @@ public void PostbackDataTest()
Assert.IsType<byte[]>(instance.PostbackData);
Assert.Equal(new byte[] { 1, 2, 3 }, instance.PostbackData);
}

/// <summary>
/// Test the property 'PairedMessageId'
/// </summary>
[Fact]
public void PairedMessageIdTest()
{
Assert.IsType<string>(instance.PairedMessageId);
Assert.Equal("12345", instance.PairedMessageId);
}
}
}
10 changes: 5 additions & 5 deletions src/Bandwidth.Standard/Model/InboundCallbackTypeEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
namespace Bandwidth.Standard.Model
{
/// <summary>
/// The possible inbound callback types originating from MO messages or multichannel message client responses: - &#x60;message-received&#x60; indicates an MO message from a Bandwidth user&#39;s client to a Bandwidth number. - &#x60;request-location-response&#x60; indicates a response to a location request sent by the Bandwidth user&#39;s client after receiving an RBM message. - &#x60;suggestion-response&#x60; indicates a response to a suggestion sent by the Bandwidth user&#39;s client after receiving an RBM message.
/// The possible inbound callback types originating from MO messages or multichannel message client responses: - &#x60;message-received&#x60; indicates an MO message from a Bandwidth user&#39;s client to a Bandwidth number. - &#x60;requested-location-response&#x60; indicates a response to a location request sent by the Bandwidth user&#39;s client after receiving an RBM message. - &#x60;suggestion-response&#x60; indicates a response to a suggestion sent by the Bandwidth user&#39;s client after receiving an RBM message.
/// </summary>
/// <value>The possible inbound callback types originating from MO messages or multichannel message client responses: - &#x60;message-received&#x60; indicates an MO message from a Bandwidth user&#39;s client to a Bandwidth number. - &#x60;request-location-response&#x60; indicates a response to a location request sent by the Bandwidth user&#39;s client after receiving an RBM message. - &#x60;suggestion-response&#x60; indicates a response to a suggestion sent by the Bandwidth user&#39;s client after receiving an RBM message.</value>
/// <value>The possible inbound callback types originating from MO messages or multichannel message client responses: - &#x60;message-received&#x60; indicates an MO message from a Bandwidth user&#39;s client to a Bandwidth number. - &#x60;requested-location-response&#x60; indicates a response to a location request sent by the Bandwidth user&#39;s client after receiving an RBM message. - &#x60;suggestion-response&#x60; indicates a response to a suggestion sent by the Bandwidth user&#39;s client after receiving an RBM message.</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum InboundCallbackTypeEnum
{
Expand All @@ -40,10 +40,10 @@ public enum InboundCallbackTypeEnum
MessageReceived = 1,

/// <summary>
/// Enum RequestLocationResponse for value: request-location-response
/// Enum RequestedLocationResponse for value: requested-location-response
/// </summary>
[EnumMember(Value = "request-location-response")]
RequestLocationResponse = 2,
[EnumMember(Value = "requested-location-response")]
RequestedLocationResponse = 2,

/// <summary>
/// Enum SuggestionResponse for value: suggestion-response
Expand Down
2 changes: 1 addition & 1 deletion src/Bandwidth.Standard/Model/RbmActionBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected RbmActionBase() { }
/// Base64 payload the customer receives when the reply is clicked.
/// </summary>
/// <value>Base64 payload the customer receives when the reply is clicked.</value>
/// <example>[B@3c205259</example>
/// <example>[B@2b76ecd5</example>
[DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)]
public byte[] PostbackData { get; set; }

Expand Down
15 changes: 13 additions & 2 deletions src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ public partial class RbmSuggestionResponse : IValidatableObject
/// </summary>
/// <param name="text">The text associated with the suggestion response..</param>
/// <param name="postbackData">Base64 payload the customer receives when the reply is clicked..</param>
public RbmSuggestionResponse(string text = default(string), byte[] postbackData = default(byte[]))
/// <param name="pairedMessageId">Corresponding parent message ID (MT)..</param>
public RbmSuggestionResponse(string text = default(string), byte[] postbackData = default(byte[]), string pairedMessageId = default(string))
{
this.Text = text;
this.PostbackData = postbackData;
this.PairedMessageId = pairedMessageId;
}

/// <summary>
Expand All @@ -55,10 +57,18 @@ public partial class RbmSuggestionResponse : IValidatableObject
/// Base64 payload the customer receives when the reply is clicked.
/// </summary>
/// <value>Base64 payload the customer receives when the reply is clicked.</value>
/// <example>[B@3c205259</example>
/// <example>[B@2b76ecd5</example>
[DataMember(Name = "postbackData", EmitDefaultValue = false)]
public byte[] PostbackData { get; set; }

/// <summary>
/// Corresponding parent message ID (MT).
/// </summary>
/// <value>Corresponding parent message ID (MT).</value>
/// <example>1752697342534u24xerqdukke523x</example>
[DataMember(Name = "pairedMessageId", EmitDefaultValue = true)]
public string PairedMessageId { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -69,6 +79,7 @@ public override string ToString()
sb.Append("class RbmSuggestionResponse {\n");
sb.Append(" Text: ").Append(Text).Append("\n");
sb.Append(" PostbackData: ").Append(PostbackData).Append("\n");
sb.Append(" PairedMessageId: ").Append(PairedMessageId).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
Loading