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
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ docs/RbmMessageContentFile.md
docs/RbmMessageContentRichCard.md
docs/RbmMessageContentText.md
docs/RbmMessageMedia.md
docs/RbmOpenUrlEnum.md
docs/RbmStandaloneCard.md
docs/RbmSuggestionResponse.md
docs/RbmWebViewEnum.md
docs/RecordingAvailableCallback.md
docs/RecordingCompleteCallback.md
docs/RecordingStateEnum.md
Expand Down Expand Up @@ -345,8 +347,10 @@ src/Bandwidth.Standard/Model/RbmMessageContentFile.cs
src/Bandwidth.Standard/Model/RbmMessageContentRichCard.cs
src/Bandwidth.Standard/Model/RbmMessageContentText.cs
src/Bandwidth.Standard/Model/RbmMessageMedia.cs
src/Bandwidth.Standard/Model/RbmOpenUrlEnum.cs
src/Bandwidth.Standard/Model/RbmStandaloneCard.cs
src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs
src/Bandwidth.Standard/Model/RbmWebViewEnum.cs
src/Bandwidth.Standard/Model/RecordingAvailableCallback.cs
src/Bandwidth.Standard/Model/RecordingCompleteCallback.cs
src/Bandwidth.Standard/Model/RecordingStateEnum.cs
Expand Down
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", "{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{1B496B75-0E81-41BC-86C2-73D16188960A}"
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
{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F953FB82-C495-4E6B-9AAA-9DEA798F76D9}.Release|Any CPU.Build.0 = Release|Any CPU
{1B496B75-0E81-41BC-86C2-73D16188960A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B496B75-0E81-41BC-86C2-73D16188960A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B496B75-0E81-41BC-86C2-73D16188960A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B496B75-0E81-41BC-86C2-73D16188960A}.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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,10 @@ Class | Method | HTTP request | Description
- [Model.RbmMessageContentRichCard](docs/RbmMessageContentRichCard.md)
- [Model.RbmMessageContentText](docs/RbmMessageContentText.md)
- [Model.RbmMessageMedia](docs/RbmMessageMedia.md)
- [Model.RbmOpenUrlEnum](docs/RbmOpenUrlEnum.md)
- [Model.RbmStandaloneCard](docs/RbmStandaloneCard.md)
- [Model.RbmSuggestionResponse](docs/RbmSuggestionResponse.md)
- [Model.RbmWebViewEnum](docs/RbmWebViewEnum.md)
- [Model.RecordingAvailableCallback](docs/RecordingAvailableCallback.md)
- [Model.RecordingCompleteCallback](docs/RecordingCompleteCallback.md)
- [Model.RecordingStateEnum](docs/RecordingStateEnum.md)
Expand Down
24 changes: 24 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8869,6 +8869,26 @@ components:
- REQUEST_LOCATION
example: REPLY
type: string
rbmOpenUrlEnum:
description: "Specifies how the URL should be opened on a mobile device.\n-\
\ `BROWSER` Opens the URL in the device's default browser. If application\
\ is not set or the device doesn’t support WebView, this option is used by\
\ default. \n- `WEBVIEW` Opens the URL in an in-app WebView."
enum:
- BROWSER
- WEBVIEW
example: WEBVIEW
type: string
rbmWebViewEnum:
description: "Defines the layout of the WebView on a mobile device. It must\
\ be defined when application is set to `WEBVIEW`\n- `FULL` WebView takes\
\ the full screen. \n- `HALF` WebView takes half of the screen.\n- `TALL`\
\ WebView takes three-quarters of the screen."
enum:
- FULL
- HALF
- TALL
type: string
rbmActionText:
description: Displayed text for user to click
example: Hello world
Expand Down Expand Up @@ -8987,6 +9007,10 @@ components:
format: uri
maxLength: 2048
type: string
application:
$ref: '#/components/schemas/rbmOpenUrlEnum'
webviewViewMode:
$ref: '#/components/schemas/rbmWebViewEnum'
required:
- url
title: Open URL
Expand Down
33 changes: 33 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2378,6 +2378,35 @@ components:
- OPEN_URL
- REQUEST_LOCATION
example: REPLY
rbmOpenUrlEnum:
type: string
description: >-
Specifies how the URL should be opened on a mobile device.

- `BROWSER` Opens the URL in the device's default browser. If
application is not set or the device doesn’t support WebView, this
option is used by default.

- `WEBVIEW` Opens the URL in an in-app WebView.
enum:
- BROWSER
- WEBVIEW
example: WEBVIEW
rbmWebViewEnum:
type: string
description: >-
Defines the layout of the WebView on a mobile device. It must be defined
when application is set to `WEBVIEW`

- `FULL` WebView takes the full screen.

- `HALF` WebView takes half of the screen.

- `TALL` WebView takes three-quarters of the screen.
enum:
- FULL
- HALF
- TALL
rbmActionText:
title: Text
type: string
Expand Down Expand Up @@ -2482,6 +2511,10 @@ components:
description: The URL to open in browser.
example: https://dev.bandwidth.com
maxLength: 2048
application:
$ref: '#/components/schemas/rbmOpenUrlEnum'
webviewViewMode:
$ref: '#/components/schemas/rbmWebViewEnum'
required:
- url
multiChannelFullActions:
Expand Down
2 changes: 2 additions & 0 deletions docs/MultiChannelAction.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Name | Type | Description | Notes
**EndTime** | **DateTime** | The end time of the event. |
**Description** | **string** | The description of the event. | [optional]
**Url** | **string** | The URL to open in browser. |
**Application** | **RbmOpenUrlEnum** | | [optional]
**WebviewViewMode** | **RbmWebViewEnum** | | [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)

2 changes: 2 additions & 0 deletions docs/RbmActionOpenUrl.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Name | Type | Description | Notes
**Text** | **string** | Displayed text for user to click |
**PostbackData** | **byte[]** | Base64 payload the customer receives when the reply is clicked. |
**Url** | **string** | The URL to open in browser. |
**Application** | **RbmOpenUrlEnum** | | [optional]
**WebviewViewMode** | **RbmWebViewEnum** | | [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)

10 changes: 10 additions & 0 deletions docs/RbmOpenUrlEnum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Bandwidth.Standard.Model.RbmOpenUrlEnum
Specifies how the URL should be opened on a mobile device. - `BROWSER` Opens the URL in the device's default browser. If application is not set or the device doesn’t support WebView, this option is used by default. - `WEBVIEW` Opens the URL in an in-app WebView.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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

10 changes: 10 additions & 0 deletions docs/RbmWebViewEnum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Bandwidth.Standard.Model.RbmWebViewEnum
Defines the layout of the WebView on a mobile device. It must be defined when application is set to `WEBVIEW` - `FULL` WebView takes the full screen. - `HALF` WebView takes half of the screen. - `TALL` WebView takes three-quarters of the screen.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[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 @@ -39,7 +39,9 @@ public RbmActionOpenUrlTests()
type: RbmActionTypeEnum.OPENURL,
text: "TestText",
postbackData: new byte[] { 1, 2, 3 },
url: "https://test.url/"
url: "https://test.url/",
application: RbmOpenUrlEnum.BROWSER,
webviewViewMode: RbmWebViewEnum.FULL
);
}

Expand Down Expand Up @@ -96,5 +98,25 @@ public void UrlTest()
Assert.IsType<string>(instance.Url);
Assert.Equal("https://test.url/", instance.Url);
}

/// <summary>
/// Test the property 'Application'
/// </summary>
[Fact]
public void ApplicationTest()
{
Assert.IsType<RbmOpenUrlEnum>(instance.Application);
Assert.Equal(RbmOpenUrlEnum.BROWSER, instance.Application);
}

/// <summary>
/// Test the property 'WebviewViewMode'
/// </summary>
[Fact]
public void WebviewViewModeTest()
{
Assert.IsType<RbmWebViewEnum>(instance.WebviewViewMode);
Assert.Equal(RbmWebViewEnum.FULL, instance.WebviewViewMode);
}
}
}
55 changes: 55 additions & 0 deletions src/Bandwidth.Standard.Test/Unit/Model/RbmOpenUrlEnumTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Bandwidth
*
* Bandwidth's Communication APIs
*
* The version of the OpenAPI document: 1.0.0
* Contact: letstalk@bandwidth.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/


using Xunit;

using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Bandwidth.Standard.Model;
using Bandwidth.Standard.Client;
using System.Reflection;
using Newtonsoft.Json;

namespace Bandwidth.Standard.Test.Unit.Model
{
/// <summary>
/// Class for testing RbmOpenUrlEnum
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class RbmOpenUrlEnumTests : IDisposable
{
private RbmOpenUrlEnum instance;

public RbmOpenUrlEnumTests()
{
instance = new RbmOpenUrlEnum();
}

public void Dispose()
{
// Cleanup when everything is done.
}

/// <summary>
/// Test an instance of RbmOpenUrlEnum
/// </summary>
[Fact]
public void RbmOpenUrlEnumInstanceTest()
{
Assert.IsType<RbmOpenUrlEnum>(instance);
}
}
}
55 changes: 55 additions & 0 deletions src/Bandwidth.Standard.Test/Unit/Model/RbmWebViewEnumTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Bandwidth
*
* Bandwidth's Communication APIs
*
* The version of the OpenAPI document: 1.0.0
* Contact: letstalk@bandwidth.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/


using Xunit;

using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Bandwidth.Standard.Model;
using Bandwidth.Standard.Client;
using System.Reflection;
using Newtonsoft.Json;

namespace Bandwidth.Standard.Test.Unit.Model
{
/// <summary>
/// Class for testing RbmWebViewEnum
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class RbmWebViewEnumTests : IDisposable
{
private RbmWebViewEnum instance;

public RbmWebViewEnumTests()
{
instance = new RbmWebViewEnum();
}

public void Dispose()
{
// Cleanup when everything is done.
}

/// <summary>
/// Test an instance of RbmWebViewEnum
/// </summary>
[Fact]
public void RbmWebViewEnumInstanceTest()
{
Assert.IsType<RbmWebViewEnum>(instance);
}
}
}
4 changes: 2 additions & 2 deletions src/Bandwidth.Standard/Model/LookupResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public partial class LookupResult : IValidatableObject
/// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in &#x60;latestMessageDeliveryStatus&#x60;. Think of this as the \&quot;start time\&quot; for that status. Value resets every time the &#x60;latestMessageDeliveryStatus&#x60; changes.
/// </summary>
/// <value>[DNI-Only](#section/DNI-Only). The date the phone number entered the status described in &#x60;latestMessageDeliveryStatus&#x60;. Think of this as the \&quot;start time\&quot; for that status. Value resets every time the &#x60;latestMessageDeliveryStatus&#x60; changes.</value>
/// <example>Fri Jun 20 00:00:00 UTC 2025</example>
/// <example>Thu Jun 19 20:00:00 EDT 2025</example>
[DataMember(Name = "initialMessageDeliveryStatusDate", EmitDefaultValue = false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime InitialMessageDeliveryStatusDate { get; set; }
Expand All @@ -139,7 +139,7 @@ public partial class LookupResult : IValidatableObject
/// [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the &#x60;latestMessageDeliveryStatus&#x60; is. Value resets every time the &#x60;latestMessageDeliveryStatus&#x60; changes.
/// </summary>
/// <value>[DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the &#x60;latestMessageDeliveryStatus&#x60; is. Value resets every time the &#x60;latestMessageDeliveryStatus&#x60; changes.</value>
/// <example>Sat Jun 21 00:00:00 UTC 2025</example>
/// <example>Fri Jun 20 20:00:00 EDT 2025</example>
[DataMember(Name = "latestMessageDeliveryStatusDate", EmitDefaultValue = false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime LatestMessageDeliveryStatusDate { get; set; }
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@3fe5ad73</example>
/// <example>[B@731d0d5c</example>
[DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)]
public byte[] PostbackData { get; set; }

Expand Down
Loading
Loading