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", "{E14115CA-15F6-4B76-873A-2BCF556F002C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{28C13A04-5CB0-4AAA-B6F3-16A3A8496C30}"
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
{E14115CA-15F6-4B76-873A-2BCF556F002C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E14115CA-15F6-4B76-873A-2BCF556F002C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E14115CA-15F6-4B76-873A-2BCF556F002C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E14115CA-15F6-4B76-873A-2BCF556F002C}.Release|Any CPU.Build.0 = Release|Any CPU
{28C13A04-5CB0-4AAA-B6F3-16A3A8496C30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{28C13A04-5CB0-4AAA-B6F3-16A3A8496C30}.Debug|Any CPU.Build.0 = Debug|Any CPU
{28C13A04-5CB0-4AAA-B6F3-16A3A8496C30}.Release|Any CPU.ActiveCfg = Release|Any CPU
{28C13A04-5CB0-4AAA-B6F3-16A3A8496C30}.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: 17 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6723,6 +6723,13 @@ components:
phoneNumbers:
- "+19196104423"
- "+19196104424"
rcsAgentRequestExample:
summary: Number Lookup Request with Custom RCS Agent
value:
phoneNumbers:
- "+19196104423"
- "+19196104424"
rcsAgent: MyCustomRcsAgent
lookupAcceptedExample:
summary: Numbers Lookup Accepted
value:
Expand Down Expand Up @@ -8099,6 +8106,8 @@ components:
$ref: '#/components/examples/singleNumberRequestExample'
multipleNumberRequestExample:
$ref: '#/components/examples/multipleNumberRequestExample'
rcsAgentRequestExample:
$ref: '#/components/examples/rcsAgentRequestExample'
schema:
$ref: '#/components/schemas/syncLookupRequest'
description: Synchronous phone number lookup request.
Expand Down Expand Up @@ -14315,6 +14324,14 @@ components:
maximum: 100
minimum: 1
type: array
rcsAgent:
description: |-
Override the default RCS sender/agent ID used when checking RCS capabilities.
When provided, this value is used as the `sender` in the RCS capability-check request instead of the account default.
Must be 1–40 characters and contain only letters, digits, underscores, or hyphens.
example: MyCustomRcsAgent
pattern: "^[A-Za-z0-9_-]{1,40}$"
type: string
required:
- phoneNumbers
type: object
Expand Down
22 changes: 22 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5759,6 +5759,19 @@ components:
items:
type: string
pattern: ^\+[1-9]\d{1,14}$
rcsAgent:
type: string
description: >-
Override the default RCS sender/agent ID used when checking RCS
capabilities.

When provided, this value is used as the `sender` in the RCS
capability-check request instead of the account default.

Must be 1–40 characters and contain only letters, digits,
underscores, or hyphens.
pattern: ^[A-Za-z0-9_-]{1,40}$
example: MyCustomRcsAgent
required:
- phoneNumbers
asyncLookupRequest:
Expand Down Expand Up @@ -8758,6 +8771,13 @@ components:
phoneNumbers:
- '+19196104423'
- '+19196104424'
rcsAgentRequestExample:
summary: Number Lookup Request with Custom RCS Agent
value:
phoneNumbers:
- '+19196104423'
- '+19196104424'
rcsAgent: MyCustomRcsAgent
lookupAcceptedExample:
summary: Numbers Lookup Accepted
value:
Expand Down Expand Up @@ -9518,6 +9538,8 @@ components:
$ref: '#/components/examples/singleNumberRequestExample'
multipleNumberRequestExample:
$ref: '#/components/examples/multipleNumberRequestExample'
rcsAgentRequestExample:
$ref: '#/components/examples/rcsAgentRequestExample'
createAsyncBulkLookupRequest:
description: Asynchronous bulk phone number lookup request.
required: true
Expand Down
1 change: 1 addition & 0 deletions docs/SyncLookupRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PhoneNumbers** | **List<string>** | Telephone numbers in E.164 format. |
**RcsAgent** | **string** | Override the default RCS sender/agent ID used when checking RCS capabilities. When provided, this value is used as the `sender` in the RCS capability-check request instead of the account default. Must be 1–40 characters and contain only letters, digits, underscores, or hyphens. | [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 @@ -36,7 +36,8 @@ public class SyncLookupRequestTests : IDisposable
public SyncLookupRequestTests()
{
instance = new SyncLookupRequest(
phoneNumbers: new List<string> { "1234567890", "0987654321" }
phoneNumbers: new List<string> { "1234567890", "0987654321" },
rcsAgent: "TestAgent"
);
}

Expand All @@ -63,5 +64,16 @@ public void PhoneNumbersTest()
Assert.IsType<List<string>>(instance.PhoneNumbers);
Assert.Equal(new List<string> { "1234567890", "0987654321" }, instance.PhoneNumbers);
}


/// <summary>
/// Test the property 'RcsAgent'
/// </summary>
[Fact]
public void RcsAgentTest()
{
Assert.IsType<string>(instance.RcsAgent);
Assert.Equal("TestAgent", instance.RcsAgent);
}
}
}
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@73bcd9b4</example>
/// <example>[B@6a9ac8b</example>
[DataMember(Name = "postbackData", IsRequired = true, EmitDefaultValue = true)]
public byte[] PostbackData { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/Bandwidth.Standard/Model/RbmSuggestionResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ 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@73bcd9b4</example>
/// <example>[B@6a9ac8b</example>
[DataMember(Name = "postbackData", EmitDefaultValue = false)]
public byte[] PostbackData { get; set; }

Expand Down
22 changes: 21 additions & 1 deletion src/Bandwidth.Standard/Model/SyncLookupRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ protected SyncLookupRequest() { }
/// Initializes a new instance of the <see cref="SyncLookupRequest" /> class.
/// </summary>
/// <param name="phoneNumbers">Telephone numbers in E.164 format. (required).</param>
public SyncLookupRequest(List<string> phoneNumbers = default(List<string>))
/// <param name="rcsAgent">Override the default RCS sender/agent ID used when checking RCS capabilities. When provided, this value is used as the &#x60;sender&#x60; in the RCS capability-check request instead of the account default. Must be 1–40 characters and contain only letters, digits, underscores, or hyphens..</param>
public SyncLookupRequest(List<string> phoneNumbers = default(List<string>), string rcsAgent = default(string))
{
// to ensure "phoneNumbers" is required (not null)
if (phoneNumbers == null)
{
throw new ArgumentNullException("phoneNumbers is a required property for SyncLookupRequest and cannot be null");
}
this.PhoneNumbers = phoneNumbers;
this.RcsAgent = rcsAgent;
}

/// <summary>
Expand All @@ -58,6 +60,14 @@ protected SyncLookupRequest() { }
[DataMember(Name = "phoneNumbers", IsRequired = true, EmitDefaultValue = true)]
public List<string> PhoneNumbers { get; set; }

/// <summary>
/// Override the default RCS sender/agent ID used when checking RCS capabilities. When provided, this value is used as the &#x60;sender&#x60; in the RCS capability-check request instead of the account default. Must be 1–40 characters and contain only letters, digits, underscores, or hyphens.
/// </summary>
/// <value>Override the default RCS sender/agent ID used when checking RCS capabilities. When provided, this value is used as the &#x60;sender&#x60; in the RCS capability-check request instead of the account default. Must be 1–40 characters and contain only letters, digits, underscores, or hyphens.</value>
/// <example>MyCustomRcsAgent</example>
[DataMember(Name = "rcsAgent", EmitDefaultValue = false)]
public string RcsAgent { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -67,6 +77,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class SyncLookupRequest {\n");
sb.Append(" PhoneNumbers: ").Append(PhoneNumbers).Append("\n");
sb.Append(" RcsAgent: ").Append(RcsAgent).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand All @@ -87,6 +98,15 @@ public virtual string ToJson()
/// <returns>Validation Result</returns>
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
if (this.RcsAgent != null) {
// RcsAgent (string) pattern
Regex regexRcsAgent = new Regex(@"^[A-Za-z0-9_-]{1,40}$", RegexOptions.CultureInvariant);
if (!regexRcsAgent.Match(this.RcsAgent).Success)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RcsAgent, must match a pattern of " + regexRcsAgent, new [] { "RcsAgent" });
}
}

yield break;
}
}
Expand Down
Loading