diff --git a/Bandwidth.Standard.sln b/Bandwidth.Standard.sln index f4c8371..ec96c38 100644 --- a/Bandwidth.Standard.sln +++ b/Bandwidth.Standard.sln @@ -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 @@ -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 @@ -24,4 +24,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection -EndGlobal +EndGlobal \ No newline at end of file diff --git a/api/openapi.yaml b/api/openapi.yaml index bb104c0..019a09f 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -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 @@ -13053,8 +13060,6 @@ components: - VERIFIED - UNVERIFIED - PENDING - - PARTIALLY_VERIFIED - - INVALID_STATUS example: VERIFIED type: string sharedSecretKey: diff --git a/bandwidth.yml b/bandwidth.yml index e41dd6a..e180a94 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -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 @@ -5849,8 +5857,6 @@ components: - VERIFIED - UNVERIFIED - PENDING - - PARTIALLY_VERIFIED - - INVALID_STATUS example: VERIFIED sharedSecretKey: description: >- diff --git a/docs/MessageCallback.md b/docs/MessageCallback.md index a6d0313..d197e74 100644 --- a/docs/MessageCallback.md +++ b/docs/MessageCallback.md @@ -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) diff --git a/src/Bandwidth.Standard.Test/Unit/Model/MessageCallbackTests.cs b/src/Bandwidth.Standard.Test/Unit/Model/MessageCallbackTests.cs index 8bd102e..4c8bc28 100644 --- a/src/Bandwidth.Standard.Test/Unit/Model/MessageCallbackTests.cs +++ b/src/Bandwidth.Standard.Test/Unit/Model/MessageCallbackTests.cs @@ -57,7 +57,8 @@ public MessageCallbackTests() to: "+19195551234", description: "test", message: message, - errorCode: 123 + errorCode: 123, + carrierName: "test" ); } @@ -134,5 +135,15 @@ public void ErrorCodeTest() Assert.IsType(instance.ErrorCode); Assert.Equal(123, instance.ErrorCode); } + + /// + /// Test the property 'CarrierName' + /// + [Fact] + public void CarrierNameTest() + { + Assert.IsType(instance.CarrierName); + Assert.Equal("test", instance.CarrierName); + } } } diff --git a/src/Bandwidth.Standard/Model/MessageCallback.cs b/src/Bandwidth.Standard/Model/MessageCallback.cs index d3475e4..542ac3c 100644 --- a/src/Bandwidth.Standard/Model/MessageCallback.cs +++ b/src/Bandwidth.Standard/Model/MessageCallback.cs @@ -52,7 +52,8 @@ protected MessageCallback() { } /// A detailed description of the event described by the callback. (required). /// message (required). /// Optional error code, applicable only when type is `message-failed`.. - 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?)) + /// 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.. + 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; @@ -75,6 +76,7 @@ protected MessageCallback() { } } this.Message = message; this.ErrorCode = errorCode; + this.CarrierName = carrierName; } /// @@ -113,6 +115,14 @@ protected MessageCallback() { } [DataMember(Name = "errorCode", EmitDefaultValue = true)] public int? ErrorCode { get; set; } + /// + /// 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. + /// + /// 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. + /// AT&T + [DataMember(Name = "carrierName", EmitDefaultValue = true)] + public string CarrierName { get; set; } + /// /// Returns the string presentation of the object /// @@ -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(); } diff --git a/src/Bandwidth.Standard/Model/RbmActionBase.cs b/src/Bandwidth.Standard/Model/RbmActionBase.cs index fd32fe0..799dc54 100644 --- a/src/Bandwidth.Standard/Model/RbmActionBase.cs +++ b/src/Bandwidth.Standard/Model/RbmActionBase.cs @@ -78,7 +78,7 @@ protected RbmActionBase() { } /// Base64 payload the customer receives when the reply is clicked. /// /// Base64 payload the customer receives when the reply is clicked. - /// [B@4544ab46 + /// [B@6159fb3c [DataMember(Name = "postBackData", IsRequired = true, EmitDefaultValue = true)] public byte[] PostBackData { get; set; } diff --git a/src/Bandwidth.Standard/Model/TfvStatusEnum.cs b/src/Bandwidth.Standard/Model/TfvStatusEnum.cs index f71910f..fc7357a 100644 --- a/src/Bandwidth.Standard/Model/TfvStatusEnum.cs +++ b/src/Bandwidth.Standard/Model/TfvStatusEnum.cs @@ -48,19 +48,7 @@ public enum TfvStatusEnum /// Enum PENDING for value: PENDING /// [EnumMember(Value = "PENDING")] - PENDING = 3, - - /// - /// Enum PARTIALLYVERIFIED for value: PARTIALLY_VERIFIED - /// - [EnumMember(Value = "PARTIALLY_VERIFIED")] - PARTIALLYVERIFIED = 4, - - /// - /// Enum INVALIDSTATUS for value: INVALID_STATUS - /// - [EnumMember(Value = "INVALID_STATUS")] - INVALIDSTATUS = 5 + PENDING = 3 } }