Skip to content

Commit 3d82dcb

Browse files
committed
2 parents dd615ea + 286064c commit 3d82dcb

File tree

6 files changed

+169
-3
lines changed

6 files changed

+169
-3
lines changed

api/openapi.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7827,6 +7827,7 @@ components:
78277827
- sms
78287828
- mms
78297829
- rcs
7830+
- rcs
78307831
example: sms
78317832
type: string
78327833
productTypeEnum:
@@ -7843,6 +7844,20 @@ components:
78437844
- RBM_CONVERSATIONAL
78447845
example: P2P
78457846
type: string
7847+
productTypeEnum:
7848+
description: The type of product associated with the message.
7849+
enum:
7850+
- LOCAL_A2P
7851+
- P2P
7852+
- SHORT_CODE_REACH
7853+
- TOLL_FREE
7854+
- HOSTED_SHORT_CODE
7855+
- ALPHA_NUMERIC
7856+
- RBM_MEDIA
7857+
- RBM_RICH
7858+
- RBM_CONVERSATIONAL
7859+
example: P2P
7860+
type: string
78467861
fieldError:
78477862
example:
78487863
fieldName: from
@@ -7867,6 +7882,9 @@ components:
78677882
nextPageToken: GL83PD3C
78687883
prevPage: https://messaging.bandwidth.com/api/v2/users/accountId/messages?messageStatus=DLR_EXPIRED&nextPage=DLAPE902
78697884
messages:
7885+
- callingNumberCountryA3: USA
7886+
product: P2P
7887+
sourceTn: "+15554443333"
78707888
- callingNumberCountryA3: USA
78717889
product: P2P
78727890
sourceTn: "+15554443333"
@@ -7875,6 +7893,7 @@ components:
78757893
messageId: 1589228074636lm4k2je7j7jklbn2
78767894
errorCode: 9902
78777895
calledNumberCountryA3: USA
7896+
calledNumberCountryA3: USA
78787897
destinationTn: "+15554442222"
78797898
segmentCount: 1
78807899
messageStatus: RECEIVED
@@ -7887,9 +7906,14 @@ components:
78877906
recipientCount: 1
78887907
campaignClass: T
78897908
bwLatency: 20
7909+
bwLatency: 20
78907910
attachmentCount: 1
78917911
location: 123ID
7912+
location: 123ID
78927913
messageSize: 27
7914+
- callingNumberCountryA3: USA
7915+
product: P2P
7916+
sourceTn: "+15554443333"
78937917
- callingNumberCountryA3: USA
78947918
product: P2P
78957919
sourceTn: "+15554443333"
@@ -7898,6 +7922,7 @@ components:
78987922
messageId: 1589228074636lm4k2je7j7jklbn2
78997923
errorCode: 9902
79007924
calledNumberCountryA3: USA
7925+
calledNumberCountryA3: USA
79017926
destinationTn: "+15554442222"
79027927
segmentCount: 1
79037928
messageStatus: RECEIVED
@@ -7910,8 +7935,10 @@ components:
79107935
recipientCount: 1
79117936
campaignClass: T
79127937
bwLatency: 20
7938+
bwLatency: 20
79137939
attachmentCount: 1
79147940
location: 123ID
7941+
location: 123ID
79157942
messageSize: 27
79167943
totalCount: 100
79177944
properties:
@@ -7930,6 +7957,8 @@ components:
79307957
type: object
79317958
listMessageItem:
79327959
example:
7960+
callingNumberCountryA3: USA
7961+
product: P2P
79337962
callingNumberCountryA3: USA
79347963
product: P2P
79357964
sourceTn: "+15554443333"
@@ -7938,6 +7967,7 @@ components:
79387967
messageId: 1589228074636lm4k2je7j7jklbn2
79397968
errorCode: 9902
79407969
calledNumberCountryA3: USA
7970+
calledNumberCountryA3: USA
79417971
destinationTn: "+15554442222"
79427972
segmentCount: 1
79437973
messageStatus: RECEIVED
@@ -7950,8 +7980,10 @@ components:
79507980
recipientCount: 1
79517981
campaignClass: T
79527982
bwLatency: 20
7983+
bwLatency: 20
79537984
attachmentCount: 1
79547985
location: 123ID
7986+
location: 123ID
79557987
messageSize: 27
79567988
properties:
79577989
messageId:

bandwidth.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,6 +1729,7 @@ components:
17291729
- sms
17301730
- mms
17311731
- rcs
1732+
- rcs
17321733
example: sms
17331734
productTypeEnum:
17341735
type: string
@@ -1744,6 +1745,20 @@ components:
17441745
- RBM_RICH
17451746
- RBM_CONVERSATIONAL
17461747
example: P2P
1748+
productTypeEnum:
1749+
type: string
1750+
description: The type of product associated with the message.
1751+
enum:
1752+
- LOCAL_A2P
1753+
- P2P
1754+
- SHORT_CODE_REACH
1755+
- TOLL_FREE
1756+
- HOSTED_SHORT_CODE
1757+
- ALPHA_NUMERIC
1758+
- RBM_MEDIA
1759+
- RBM_RICH
1760+
- RBM_CONVERSATIONAL
1761+
example: P2P
17471762
fieldError:
17481763
type: object
17491764
properties:

src/Bandwidth.Standard.Test/Bandwidth.Standard.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.2" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
1212
<PackageReference Include="Moq" Version="4.20.69" />
1313
<PackageReference Include="xunit" Version="2.4.2" />
1414
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />

src/Bandwidth.Standard.Test/Unit/Api/MessagesApiTests.cs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,12 @@ public void ListMessagesTest()
182182
attachmentCount: 0,
183183
recipientCount: 1,
184184
campaignClass: "T",
185-
campaignId: "CJEUMDK"
185+
campaignId: "CJEUMDK",
186+
bwLatency: 10,
187+
callingNumberCountryA3: "callingNumberCountryA3",
188+
calledNumberCountryA3: "calledNumberCountryA3",
189+
product: "product",
190+
location: "location"
186191
)}
187192
);
188193

@@ -201,6 +206,18 @@ public void ListMessagesTest()
201206
fromDateTime: "2022-09-14T18:20:16.000Z",
202207
toDateTime: "2022-09-14T18:20:16.000Z",
203208
campaignId: "CJEUMDK",
209+
fromBwLatency: 10,
210+
bwQueued: true,
211+
product: ProductTypeEnum.LOCALA2P,
212+
location: "location",
213+
// carrierQueued: true,
214+
// fromCarrierLatency: 10,
215+
callingNumberCountryA3: "callingNumberCountryA3",
216+
calledNumberCountryA3: "calledNumberCountryA3",
217+
fromSegmentCount: 1,
218+
toSegmentCount: 1,
219+
fromMessageSize: 1,
220+
toMessageSize: 1,
204221
sort: "receiveTime",
205222
pageToken: "gdEewhcJLQRB5",
206223
limit: 10,

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

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,56 @@ public void CampaignIdTest()
219219
Assert.IsType<string>(instance.CampaignId);
220220
Assert.Equal("CJEUMDK", instance.CampaignId);
221221
}
222-
222+
/// <summary>
223+
/// Test the property 'BwLatency'
224+
/// </summary>
225+
[Fact]
226+
public void BwLatencyTest()
227+
{
228+
instance.BwLatency = 10;
229+
Assert.IsType<int>(instance.BwLatency);
230+
Assert.Equal(10, instance.BwLatency);
231+
}
232+
/// <summary>
233+
/// Test the property 'CallingNumberCountryA3'
234+
/// </summary>
235+
[Fact]
236+
public void CallingNumberCountryA3Test()
237+
{
238+
instance.CallingNumberCountryA3 = "callingNumberCountryA3";
239+
Assert.IsType<string>(instance.CallingNumberCountryA3);
240+
Assert.Equal("callingNumberCountryA3", instance.CallingNumberCountryA3);
241+
}
242+
/// <summary>
243+
/// Test the property 'CalledNumberCountryA3'
244+
/// </summary>
245+
[Fact]
246+
public void CalledNumberCountryA3Test()
247+
{
248+
instance.CalledNumberCountryA3 = "calledNumberCountryA3";
249+
Assert.IsType<string>(instance.CalledNumberCountryA3);
250+
Assert.Equal("calledNumberCountryA3", instance.CalledNumberCountryA3);
251+
}
252+
/// <summary>
253+
/// Test the property 'Product'
254+
/// </summary>
255+
[Fact]
256+
public void ProductTest()
257+
{
258+
instance.Product = "product";
259+
Assert.IsType<string>(instance.Product);
260+
Assert.Equal("product", instance.Product);
261+
}
262+
/// <summary>
263+
/// Test the property 'Location'
264+
/// </summary>
265+
[Fact]
266+
public void LocationTest()
267+
{
268+
instance.Location = "location";
269+
Assert.IsType<string>(instance.Location);
270+
Assert.Equal("location", instance.Location);
271+
}
223272
}
224273

225274
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Bandwidth
3+
*
4+
* Bandwidth's Communication APIs
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Contact: [email protected]
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
10+
11+
12+
using Xunit;
13+
14+
using System;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Collections.Generic;
18+
using Bandwidth.Standard.Model;
19+
using Bandwidth.Standard.Client;
20+
using System.Reflection;
21+
using Newtonsoft.Json;
22+
23+
namespace Bandwidth.Standard.Test.Unit.Model
24+
{
25+
/// <summary>
26+
/// Class for testing ProductTypeEnum
27+
/// </summary>
28+
public class ProductTypeEnumTests : IDisposable
29+
{
30+
private ProductTypeEnum instance;
31+
32+
public ProductTypeEnumTests()
33+
{
34+
instance = new ProductTypeEnum();
35+
}
36+
37+
public void Dispose()
38+
{
39+
// Cleanup when everything is done.
40+
}
41+
42+
/// <summary>
43+
/// Test an instance of ProductTypeEnum
44+
/// </summary>
45+
[Fact]
46+
public void ProductTypeEnumInstanceTest()
47+
{
48+
Assert.IsType<ProductTypeEnum>(instance);
49+
}
50+
51+
}
52+
53+
}

0 commit comments

Comments
 (0)