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
12 changes: 6 additions & 6 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", "{8E522D01-703C-44A8-986A-A56745917B15}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}"
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
{8E522D01-703C-44A8-986A-A56745917B15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8E522D01-703C-44A8-986A-A56745917B15}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8E522D01-703C-44A8-986A-A56745917B15}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8E522D01-703C-44A8-986A-A56745917B15}.Release|Any CPU.Build.0 = Release|Any CPU
{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}.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 All @@ -24,4 +24,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
EndGlobal
9 changes: 7 additions & 2 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8336,6 +8336,13 @@ components:
example: 4405
nullable: true
type: integer
carrierName:
description: "The name of the Authorized Message Provider (AMP) that handled\
\ this message. In the US, this is the carrier that the message was sent\
\ to."
example: AT&T
nullable: true
type: string
required:
- description
- message
Expand Down Expand Up @@ -13053,8 +13060,6 @@ components:
- VERIFIED
- UNVERIFIED
- PENDING
- PARTIALLY_VERIFIED
- INVALID_STATUS
example: VERIFIED
type: string
sharedSecretKey:
Expand Down
10 changes: 8 additions & 2 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,14 @@ components:
description: Optional error code, applicable only when type is `message-failed`.
nullable: true
example: 4405
carrierName:
type: string
description: >-
The name of the Authorized Message Provider (AMP) that handled this
message. In the US, this is the carrier that the message was sent
to.
nullable: true
example: AT&T
required:
- time
- type
Expand Down Expand Up @@ -5849,8 +5857,6 @@ components:
- VERIFIED
- UNVERIFIED
- PENDING
- PARTIALLY_VERIFIED
- INVALID_STATUS
example: VERIFIED
sharedSecretKey:
description: >-
Expand Down
1 change: 1 addition & 0 deletions docs/MessageCallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**Description** | **string** | A detailed description of the event described by the callback. |
**Message** | [**MessageCallbackMessage**](MessageCallbackMessage.md) | |
**ErrorCode** | **int?** | Optional error code, applicable only when type is `message-failed`. | [optional]
**CarrierName** | **string** | The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. | [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)

13 changes: 12 additions & 1 deletion src/Bandwidth.Standard.Test/Unit/Model/MessageCallbackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public MessageCallbackTests()
to: "+19195551234",
description: "test",
message: message,
errorCode: 123
errorCode: 123,
carrierName: "test"
);
}

Expand Down Expand Up @@ -134,5 +135,15 @@ public void ErrorCodeTest()
Assert.IsType<int>(instance.ErrorCode);
Assert.Equal(123, instance.ErrorCode);
}

/// <summary>
/// Test the property 'CarrierName'
/// </summary>
[Fact]
public void CarrierNameTest()
{
Assert.IsType<string>(instance.CarrierName);
Assert.Equal("test", instance.CarrierName);
}
}
}
13 changes: 12 additions & 1 deletion src/Bandwidth.Standard/Model/MessageCallback.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ protected MessageCallback() { }
/// <param name="description">A detailed description of the event described by the callback. (required).</param>
/// <param name="message">message (required).</param>
/// <param name="errorCode">Optional error code, applicable only when type is &#x60;message-failed&#x60;..</param>
public MessageCallback(DateTime time = default(DateTime), CallbackTypeEnum type = default(CallbackTypeEnum), string to = default(string), string description = default(string), MessageCallbackMessage message = default(MessageCallbackMessage), int? errorCode = default(int?))
/// <param name="carrierName">The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to..</param>
public MessageCallback(DateTime time = default(DateTime), CallbackTypeEnum type = default(CallbackTypeEnum), string to = default(string), string description = default(string), MessageCallbackMessage message = default(MessageCallbackMessage), int? errorCode = default(int?), string carrierName = default(string))
{
this.Time = time;
this.Type = type;
Expand All @@ -75,6 +76,7 @@ protected MessageCallback() { }
}
this.Message = message;
this.ErrorCode = errorCode;
this.CarrierName = carrierName;
}

/// <summary>
Expand Down Expand Up @@ -113,6 +115,14 @@ protected MessageCallback() { }
[DataMember(Name = "errorCode", EmitDefaultValue = true)]
public int? ErrorCode { get; set; }

/// <summary>
/// The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to.
/// </summary>
/// <value>The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to.</value>
/// <example>AT&amp;T</example>
[DataMember(Name = "carrierName", EmitDefaultValue = true)]
public string CarrierName { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -127,6 +137,7 @@ public override string ToString()
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" Message: ").Append(Message).Append("\n");
sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n");
sb.Append(" CarrierName: ").Append(CarrierName).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
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@4544ab46</example>
/// <example>[B@6159fb3c</example>
[DataMember(Name = "postBackData", IsRequired = true, EmitDefaultValue = true)]
public byte[] PostBackData { get; set; }

Expand Down
14 changes: 1 addition & 13 deletions src/Bandwidth.Standard/Model/TfvStatusEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,7 @@ public enum TfvStatusEnum
/// Enum PENDING for value: PENDING
/// </summary>
[EnumMember(Value = "PENDING")]
PENDING = 3,

/// <summary>
/// Enum PARTIALLYVERIFIED for value: PARTIALLY_VERIFIED
/// </summary>
[EnumMember(Value = "PARTIALLY_VERIFIED")]
PARTIALLYVERIFIED = 4,

/// <summary>
/// Enum INVALIDSTATUS for value: INVALID_STATUS
/// </summary>
[EnumMember(Value = "INVALID_STATUS")]
INVALIDSTATUS = 5
PENDING = 3
}

}
Loading