Skip to content

Commit 716683f

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-8263 Update SDK Based on Recent Spec Changes (#155)
* Generate SDK with OpenAPI Generator Version * update test * actually fix test --------- Co-authored-by: DX-Bandwidth <dx@bandwidth.com> Co-authored-by: ckoegel <ckoegel1006@gmail.com>
1 parent 0008753 commit 716683f

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

Bandwidth.Standard.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{52ADDC3D-A0B9-4F40-A0EF-5B41DA2188A7}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{930D0378-7645-4210-BCE2-A922C3634788}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard.Test", "src\Bandwidth.Standard.Test\Bandwidth.Standard.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{52ADDC3D-A0B9-4F40-A0EF-5B41DA2188A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{52ADDC3D-A0B9-4F40-A0EF-5B41DA2188A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{52ADDC3D-A0B9-4F40-A0EF-5B41DA2188A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{52ADDC3D-A0B9-4F40-A0EF-5B41DA2188A7}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{930D0378-7645-4210-BCE2-A922C3634788}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{930D0378-7645-4210-BCE2-A922C3634788}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{930D0378-7645-4210-BCE2-A922C3634788}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{930D0378-7645-4210-BCE2-A922C3634788}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

api/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12359,7 +12359,7 @@ components:
1235912359
was encountered.
1236012360
example: "400"
1236112361
type: string
12362-
errorDescription:
12362+
errorMessage:
1236312363
description: A description of the error that was encountered.
1236412364
example: cannot process request.
1236512365
type: string

bandwidth.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5424,7 +5424,7 @@ components:
54245424
be interpreted as an HTTP status code in regards to the error that
54255425
was encountered.
54265426
example: '400'
5427-
errorDescription:
5427+
errorMessage:
54285428
type: string
54295429
description: A description of the error that was encountered.
54305430
example: cannot process request.

docs/FailureWebhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**AccountId** | **string** | User&#39;s account ID. | [optional]
88
**PhoneNumber** | **string** | Toll-free telephone number in E.164 format. | [optional]
99
**ErrorCode** | **string** | An error code indicating what error was encountered. This code can be interpreted as an HTTP status code in regards to the error that was encountered. | [optional]
10-
**ErrorDescription** | **string** | A description of the error that was encountered. | [optional]
10+
**ErrorMessage** | **string** | A description of the error that was encountered. | [optional]
1111
**Errors** | **List&lt;string&gt;** | Details of the errors that were encountered when processing the request. | [optional]
1212
**InternalTicketNumber** | **Guid** | Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. | [optional]
1313

src/Bandwidth.Standard.Test/Unit/Model/FailureWebhookTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public FailureWebhookTests()
3636
accountId: "accountId",
3737
phoneNumber: "phoneNumber",
3838
errorCode: "errorCode",
39-
errorDescription: "errorDescription",
39+
errorMessage: "errorMessage",
4040
errors: new List<string> { "error" },
4141
internalTicketNumber: guid
4242
);
@@ -87,13 +87,13 @@ public void ErrorCodeTest()
8787
}
8888

8989
/// <summary>
90-
/// Test the property 'ErrorDescription'
90+
/// Test the property 'ErrorMessage'
9191
/// </summary>
9292
[Fact]
93-
public void ErrorDescriptionTest()
93+
public void ErrorMessageTest()
9494
{
95-
Assert.IsType<string>(instance.ErrorDescription);
96-
Assert.Equal("errorDescription", instance.ErrorDescription);
95+
Assert.IsType<string>(instance.ErrorMessage);
96+
Assert.Equal("errorMessage", instance.ErrorMessage);
9797
}
9898

9999
/// <summary>

src/Bandwidth.Standard/Model/FailureWebhook.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public partial class FailureWebhook : IValidatableObject
3838
/// <param name="accountId">User&#39;s account ID..</param>
3939
/// <param name="phoneNumber">Toll-free telephone number in E.164 format..</param>
4040
/// <param name="errorCode">An error code indicating what error was encountered. This code can be interpreted as an HTTP status code in regards to the error that was encountered..</param>
41-
/// <param name="errorDescription">A description of the error that was encountered..</param>
41+
/// <param name="errorMessage">A description of the error that was encountered..</param>
4242
/// <param name="errors">Details of the errors that were encountered when processing the request..</param>
4343
/// <param name="internalTicketNumber">Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number..</param>
44-
public FailureWebhook(string accountId = default(string), string phoneNumber = default(string), string errorCode = default(string), string errorDescription = default(string), List<string> errors = default(List<string>), Guid internalTicketNumber = default(Guid))
44+
public FailureWebhook(string accountId = default(string), string phoneNumber = default(string), string errorCode = default(string), string errorMessage = default(string), List<string> errors = default(List<string>), Guid internalTicketNumber = default(Guid))
4545
{
4646
this.AccountId = accountId;
4747
this.PhoneNumber = phoneNumber;
4848
this.ErrorCode = errorCode;
49-
this.ErrorDescription = errorDescription;
49+
this.ErrorMessage = errorMessage;
5050
this.Errors = errors;
5151
this.InternalTicketNumber = internalTicketNumber;
5252
}
@@ -80,8 +80,8 @@ public partial class FailureWebhook : IValidatableObject
8080
/// </summary>
8181
/// <value>A description of the error that was encountered.</value>
8282
/// <example>cannot process request.</example>
83-
[DataMember(Name = "errorDescription", EmitDefaultValue = false)]
84-
public string ErrorDescription { get; set; }
83+
[DataMember(Name = "errorMessage", EmitDefaultValue = false)]
84+
public string ErrorMessage { get; set; }
8585

8686
/// <summary>
8787
/// Details of the errors that were encountered when processing the request.
@@ -109,7 +109,7 @@ public override string ToString()
109109
sb.Append(" AccountId: ").Append(AccountId).Append("\n");
110110
sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n");
111111
sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n");
112-
sb.Append(" ErrorDescription: ").Append(ErrorDescription).Append("\n");
112+
sb.Append(" ErrorMessage: ").Append(ErrorMessage).Append("\n");
113113
sb.Append(" Errors: ").Append(Errors).Append("\n");
114114
sb.Append(" InternalTicketNumber: ").Append(InternalTicketNumber).Append("\n");
115115
sb.Append("}\n");

0 commit comments

Comments
 (0)