Skip to content

Commit 4a82e51

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-9239 Update SDK Based on Recent Spec Changes (#170)
* Generate SDK with OpenAPI Generator Version * update unit tests --------- Co-authored-by: DX-Bandwidth <dx@bandwidth.com> Co-authored-by: ckoegel <ckoegel1006@gmail.com>
1 parent c5c753f commit 4a82e51

15 files changed

Lines changed: 179 additions & 15 deletions

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", "{1B496B75-0E81-41BC-86C2-73D16188960A}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{0549B4D2-AA34-4364-B222-071E3996A3CD}"
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-
{1B496B75-0E81-41BC-86C2-73D16188960A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{1B496B75-0E81-41BC-86C2-73D16188960A}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{1B496B75-0E81-41BC-86C2-73D16188960A}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{1B496B75-0E81-41BC-86C2-73D16188960A}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{0549B4D2-AA34-4364-B222-071E3996A3CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{0549B4D2-AA34-4364-B222-071E3996A3CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{0549B4D2-AA34-4364-B222-071E3996A3CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{0549B4D2-AA34-4364-B222-071E3996A3CD}.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: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13728,6 +13728,16 @@ components:
1372813728
description: Indicates whether the content is age-gated.
1372913729
example: false
1373013730
type: boolean
13731+
cvToken:
13732+
description: "The token provided by Campaign Verify to validate your political\
13733+
\ use case. Only required for 527 political organizations. If you are\
13734+
\ not a 527 political organization, this field should be omitted. If you\
13735+
\ pass an empty string, it will be passed along and potentially rejected."
13736+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
13737+
maxLength: 500
13738+
minLength: 0
13739+
nullable: true
13740+
type: string
1373113741
required:
1373213742
- businessAddress
1373313743
- businessContact
@@ -13822,6 +13832,16 @@ components:
1382213832
description: Indicates whether the content is age-gated.
1382313833
example: false
1382413834
type: boolean
13835+
cvToken:
13836+
description: "The token provided by Campaign Verify to validate your political\
13837+
\ use case. Only required for 527 political organizations. If you are\
13838+
\ not a 527 political organization, this field should be omitted. If you\
13839+
\ pass an empty string, it will be passed along and potentially rejected."
13840+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
13841+
maxLength: 500
13842+
minLength: 0
13843+
nullable: true
13844+
type: string
1382513845
required:
1382613846
- businessAddress
1382713847
- businessContact
@@ -14484,6 +14504,7 @@ components:
1448414504
useCaseSummary: Text summarizing the use case for the toll-free number
1448514505
declineReasonDescription: Invalid Information - Can't Validate URL - Website
1448614506
is not accessible / not available
14507+
cvToken: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
1448714508
status: VERIFIED
1448814509
properties:
1448914510
phoneNumber:
@@ -14536,6 +14557,16 @@ components:
1453614557
attribute will only be defined when the number is blocked.
1453714558
example: Toll-free number was used to send spam messages
1453814559
type: string
14560+
cvToken:
14561+
description: "The token provided by Campaign Verify to validate your political\
14562+
\ use case. Only required for 527 political organizations. If you are\
14563+
\ not a 527 political organization, this field should be omitted. If you\
14564+
\ pass an empty string, it will be passed along and potentially rejected."
14565+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
14566+
maxLength: 500
14567+
minLength: 0
14568+
nullable: true
14569+
type: string
1453914570
type: object
1454014571
tfvSubmissionInfo:
1454114572
example:
@@ -14660,6 +14691,16 @@ components:
1466014691
nullable: true
1466114692
pattern: "^[ -~]{16,64}$"
1466214693
type: string
14694+
cvToken:
14695+
description: "The token provided by Campaign Verify to validate your political\
14696+
\ use case. Only required for 527 political organizations. If you are not\
14697+
\ a 527 political organization, this field should be omitted. If you pass\
14698+
\ an empty string, it will be passed along and potentially rejected."
14699+
example: cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
14700+
maxLength: 500
14701+
minLength: 0
14702+
nullable: true
14703+
type: string
1466314704
rbmCardContent_media:
1466414705
allOf:
1466514706
- $ref: '#/components/schemas/rbmMessageContentFile'

bandwidth.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5956,6 +5956,8 @@ components:
59565956
$ref: '#/components/schemas/helpMessageResponse'
59575957
ageGatedContent:
59585958
$ref: '#/components/schemas/ageGatedContent'
5959+
cvToken:
5960+
$ref: '#/components/schemas/cvToken'
59595961
verificationUpdateRequest:
59605962
type: object
59615963
required:
@@ -6005,6 +6007,8 @@ components:
60056007
$ref: '#/components/schemas/helpMessageResponse'
60066008
ageGatedContent:
60076009
$ref: '#/components/schemas/ageGatedContent'
6010+
cvToken:
6011+
$ref: '#/components/schemas/cvToken'
60086012
tfvBasicAuthentication:
60096013
type: object
60106014
properties:
@@ -6456,6 +6460,8 @@ components:
64566460
$ref: '#/components/schemas/blocked'
64576461
blockedReason:
64586462
$ref: '#/components/schemas/blockedReason'
6463+
cvToken:
6464+
$ref: '#/components/schemas/cvToken'
64596465
tfvSubmissionInfo:
64606466
type: object
64616467
properties:
@@ -6520,6 +6526,18 @@ components:
65206526
nullable: true
65216527
pattern: ^[ -~]{16,64}$
65226528
type: string
6529+
cvToken:
6530+
type: string
6531+
description: >-
6532+
The token provided by Campaign Verify to validate your political use
6533+
case. Only required for 527 political organizations. If you are not a
6534+
527 political organization, this field should be omitted. If you pass an
6535+
empty string, it will be passed along and potentially rejected.
6536+
minLength: 0
6537+
maxLength: 500
6538+
nullable: true
6539+
example: >-
6540+
cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
65236541
responses:
65246542
createMessageResponse:
65256543
description: Accepted

docs/TfvStatus.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**Submission** | [**TfvSubmissionInfo**](TfvSubmissionInfo.md) | | [optional]
1515
**Blocked** | **bool** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional]
1616
**BlockedReason** | **string** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional]
17+
**CvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. | [optional]
1718

1819
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1920

docs/VerificationRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
2222
**BusinessEntityType** | **BusinessEntityTypeEnum** | | [optional]
2323
**HelpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional]
2424
**AgeGatedContent** | **bool** | Indicates whether the content is age-gated. | [optional]
25+
**CvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. | [optional]
2526

2627
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2728

docs/VerificationUpdateRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
2121
**BusinessEntityType** | **BusinessEntityTypeEnum** | | [optional]
2222
**HelpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional]
2323
**AgeGatedContent** | **bool** | Indicates whether the content is age-gated. | [optional]
24+
**CvToken** | **string** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. If you pass an empty string, it will be passed along and potentially rejected. | [optional]
2425

2526
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2627

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public TfvStatusTests()
4343
modifiedDateTime: DateTime.Parse("2023-10-01T00:00:00Z"),
4444
submission: submission,
4545
blocked: false,
46-
blockedReason: "blockedReason"
46+
blockedReason: "blockedReason",
47+
cvToken: "cvToken"
4748
);
4849
}
4950

@@ -160,5 +161,15 @@ public void BlockedReasonTest()
160161
Assert.IsType<string>(instance.BlockedReason);
161162
Assert.Equal("blockedReason", instance.BlockedReason);
162163
}
164+
165+
/// <summary>
166+
/// Test the property 'CvToken'
167+
/// </summary>
168+
[Fact]
169+
public void CvTokenTest()
170+
{
171+
Assert.IsType<string>(instance.CvToken);
172+
Assert.Equal("cvToken", instance.CvToken);
173+
}
163174
}
164175
}

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public VerificationRequestTests()
6666
businessRegistrationType: BusinessRegistrationTypeEnum.EIN,
6767
businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR,
6868
helpMessageResponse: "test",
69-
ageGatedContent: false
69+
ageGatedContent: false,
70+
cvToken: "cvToken"
7071
);
7172
}
7273

@@ -260,5 +261,15 @@ public void AgeGatedContentTest()
260261
Assert.IsType<bool>(instance.AgeGatedContent);
261262
Assert.False(instance.AgeGatedContent);
262263
}
264+
265+
/// <summary>
266+
/// Test the property 'CvToken'
267+
/// </summary>
268+
[Fact]
269+
public void CvTokenTest()
270+
{
271+
Assert.IsType<string>(instance.CvToken);
272+
Assert.Equal("cvToken", instance.CvToken);
273+
}
263274
}
264275
}

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public VerificationUpdateRequestTests()
6565
businessRegistrationType: BusinessRegistrationTypeEnum.EIN,
6666
businessEntityType: BusinessEntityTypeEnum.SOLEPROPRIETOR,
6767
helpMessageResponse: "test",
68-
ageGatedContent: false
68+
ageGatedContent: false,
69+
cvToken: "cvToken"
6970
);
7071
}
7172

@@ -249,5 +250,15 @@ public void AgeGatedContentTest()
249250
Assert.IsType<bool>(instance.AgeGatedContent);
250251
Assert.False(instance.AgeGatedContent);
251252
}
253+
254+
/// <summary>
255+
/// Test the property 'CvToken'
256+
/// </summary>
257+
[Fact]
258+
public void CvTokenTest()
259+
{
260+
Assert.IsType<string>(instance.CvToken);
261+
Assert.Equal("cvToken", instance.CvToken);
262+
}
252263
}
253264
}

src/Bandwidth.Standard/Model/LookupResult.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public partial class LookupResult : IValidatableObject
130130
/// [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in &#x60;latestMessageDeliveryStatus&#x60;. Think of this as the \&quot;start time\&quot; for that status. Value resets every time the &#x60;latestMessageDeliveryStatus&#x60; changes.
131131
/// </summary>
132132
/// <value>[DNI-Only](#section/DNI-Only). The date the phone number entered the status described in &#x60;latestMessageDeliveryStatus&#x60;. Think of this as the \&quot;start time\&quot; for that status. Value resets every time the &#x60;latestMessageDeliveryStatus&#x60; changes.</value>
133-
/// <example>Thu Jun 19 20:00:00 EDT 2025</example>
133+
/// <example>Fri Jun 20 00:00:00 UTC 2025</example>
134134
[DataMember(Name = "initialMessageDeliveryStatusDate", EmitDefaultValue = false)]
135135
[JsonConverter(typeof(OpenAPIDateConverter))]
136136
public DateTime InitialMessageDeliveryStatusDate { get; set; }
@@ -139,7 +139,7 @@ public partial class LookupResult : IValidatableObject
139139
/// [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the &#x60;latestMessageDeliveryStatus&#x60; is. Value resets every time the &#x60;latestMessageDeliveryStatus&#x60; changes.
140140
/// </summary>
141141
/// <value>[DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the &#x60;latestMessageDeliveryStatus&#x60; is. Value resets every time the &#x60;latestMessageDeliveryStatus&#x60; changes.</value>
142-
/// <example>Fri Jun 20 20:00:00 EDT 2025</example>
142+
/// <example>Sat Jun 21 00:00:00 UTC 2025</example>
143143
[DataMember(Name = "latestMessageDeliveryStatusDate", EmitDefaultValue = false)]
144144
[JsonConverter(typeof(OpenAPIDateConverter))]
145145
public DateTime LatestMessageDeliveryStatusDate { get; set; }

0 commit comments

Comments
 (0)