Skip to content

Commit 42bb55f

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-7880 Update SDK Based on Recent Spec Changes (#152)
* Generate SDK with OpenAPI Generator Version * businessDba tests * BlockedWebhook tests --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]>
1 parent 7fa68d5 commit 42bb55f

19 files changed

+436
-84
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ docs/AccountStatistics.md
66
docs/AdditionalDenialReason.md
77
docs/Address.md
88
docs/AnswerCallback.md
9+
docs/BlockedWebhook.md
910
docs/BridgeCompleteCallback.md
1011
docs/BridgeTargetCompleteCallback.md
1112
docs/CallDirectionEnum.md
@@ -190,6 +191,7 @@ src/Bandwidth.Standard/Model/AccountStatistics.cs
190191
src/Bandwidth.Standard/Model/AdditionalDenialReason.cs
191192
src/Bandwidth.Standard/Model/Address.cs
192193
src/Bandwidth.Standard/Model/AnswerCallback.cs
194+
src/Bandwidth.Standard/Model/BlockedWebhook.cs
193195
src/Bandwidth.Standard/Model/BridgeCompleteCallback.cs
194196
src/Bandwidth.Standard/Model/BridgeTargetCompleteCallback.cs
195197
src/Bandwidth.Standard/Model/CallDirectionEnum.cs

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", "{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bandwidth.Standard", "src\Bandwidth.Standard\Bandwidth.Standard.csproj", "{025A015C-50AB-473D-9C09-76DC7BD5D3FD}"
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-
{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{EC42C0CC-D6A6-4803-AEDA-6D58A46507A9}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{025A015C-50AB-473D-9C09-76DC7BD5D3FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{025A015C-50AB-473D-9C09-76DC7BD5D3FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{025A015C-50AB-473D-9C09-76DC7BD5D3FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{025A015C-50AB-473D-9C09-76DC7BD5D3FD}.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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ Class | Method | HTTP request | Description
165165
- [Model.AdditionalDenialReason](docs/AdditionalDenialReason.md)
166166
- [Model.Address](docs/Address.md)
167167
- [Model.AnswerCallback](docs/AnswerCallback.md)
168+
- [Model.BlockedWebhook](docs/BlockedWebhook.md)
168169
- [Model.BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
169170
- [Model.BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
170171
- [Model.CallDirectionEnum](docs/CallDirectionEnum.md)

api/openapi.yaml

Lines changed: 58 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6671,6 +6671,7 @@ components:
66716671
- $ref: '#/components/schemas/verificationWebhook'
66726672
- $ref: '#/components/schemas/verificationDenialWebhook'
66736673
- $ref: '#/components/schemas/failureWebhook'
6674+
- $ref: '#/components/schemas/blockedWebhook'
66746675
description: Verification callback status of a toll-free phone number.
66756676
required: true
66766677
webhookSubscriptionRequest:
@@ -12097,16 +12098,16 @@ components:
1209712098
privacyPolicyUrl:
1209812099
description: The Toll-Free Verification request privacy policy URL. (Not Available
1209912100
Until 5/28/2025)
12100-
example: http://your-company.com/privacyPolicyUrl.pdf
12101+
example: http://your-company.com/privacyPolicy
1210112102
type: string
1210212103
termsAndConditionsUrl:
1210312104
description: The Toll-Free Verification request terms and conditions policy
1210412105
URL. (Not Available Until 5/28/2025)
12105-
example: http://your-company.com/termsAndConditionsUrl.pdf
12106+
example: http://your-company.com/termsAndConditions
1210612107
type: string
12107-
businessDBA:
12108+
businessDba:
1210812109
description: The company 'Doing Business As'. (Not Available Until 5/28/2025)
12109-
example: SecondCompany Name
12110+
example: Another Company Name Inc.
1211012111
type: string
1211112112
additionalDenialReason:
1211212113
properties:
@@ -12206,16 +12207,16 @@ components:
1220612207
privacyPolicyUrl:
1220712208
description: The Toll-Free Verification request privacy policy URL. (Not
1220812209
Available Until 5/28/2025)
12209-
example: http://your-company.com/privacyPolicyUrl.pdf
12210+
example: http://your-company.com/privacyPolicy
1221012211
type: string
1221112212
termsAndConditionsUrl:
1221212213
description: The Toll-Free Verification request terms and conditions policy
1221312214
URL. (Not Available Until 5/28/2025)
12214-
example: http://your-company.com/termsAndConditionsUrl.pdf
12215+
example: http://your-company.com/termsAndConditions
1221512216
type: string
12216-
businessDBA:
12217+
businessDba:
1221712218
description: The company 'Doing Business As'. (Not Available Until 5/28/2025)
12218-
example: SecondCompany Name
12219+
example: Another Company Name Inc.
1221912220
type: string
1222012221
required:
1222112222
- businessAddress
@@ -12278,16 +12279,16 @@ components:
1227812279
privacyPolicyUrl:
1227912280
description: The Toll-Free Verification request privacy policy URL. (Not
1228012281
Available Until 5/28/2025)
12281-
example: http://your-company.com/privacyPolicyUrl.pdf
12282+
example: http://your-company.com/privacyPolicy
1228212283
type: string
1228312284
termsAndConditionsUrl:
1228412285
description: The Toll-Free Verification request terms and conditions policy
1228512286
URL. (Not Available Until 5/28/2025)
12286-
example: http://your-company.com/termsAndConditionsUrl.pdf
12287+
example: http://your-company.com/termsAndConditions
1228712288
type: string
12288-
businessDBA:
12289+
businessDba:
1228912290
description: The company 'Doing Business As'. (Not Available Until 5/28/2025)
12290-
example: SecondCompany Name
12291+
example: Another Company Name Inc.
1229112292
type: string
1229212293
required:
1229312294
- businessAddress
@@ -12467,6 +12468,41 @@ components:
1246712468
format: uuid
1246812469
type: string
1246912470
type: object
12471+
blockedWebhook:
12472+
properties:
12473+
accountId:
12474+
description: User's account ID.
12475+
example: "1234567"
12476+
type: string
12477+
phoneNumber:
12478+
description: Toll-free telephone number in E.164 format.
12479+
example: "+18005555555"
12480+
maxLength: 12
12481+
minLength: 12
12482+
nullable: false
12483+
pattern: "^\\+1(800|833|844|855|866|877|888)[2-9]\\d{6}$"
12484+
type: string
12485+
status:
12486+
$ref: '#/components/schemas/tfvCallbackStatusEnum'
12487+
internalTicketNumber:
12488+
description: Unique identifier (UUID) generated by Bandwidth to assist in
12489+
tracking the verification status of a toll-free number.
12490+
example: acde070d-8c4c-4f0d-9d8a-162843c10333
12491+
format: uuid
12492+
type: string
12493+
blocked:
12494+
description: Whether a Toll-Free Verification is blocked. This attribute
12495+
will only be defined when the number is blocked. (Not Available Until
12496+
5/28/2025)
12497+
example: true
12498+
type: boolean
12499+
blockedReason:
12500+
description: The reason why the Toll-Free Verification is blocked. This
12501+
attribute will only be defined when the number is blocked. (Not Available
12502+
Until 5/28/2025)
12503+
example: Toll-free number was used to send spam messages
12504+
type: string
12505+
type: object
1247012506
tfvSubmissionWrapper:
1247112507
properties:
1247212508
submission:
@@ -12882,8 +12918,8 @@ components:
1288212918
submission:
1288312919
additionalInformation: Any additional information
1288412920
useCase: 2FA
12885-
termsAndConditionsUrl: http://your-company.com/termsAndConditionsUrl.pdf
12886-
businessDBA: SecondCompany Name
12921+
termsAndConditionsUrl: http://your-company.com/termsAndConditions
12922+
businessDba: Another Company Name Inc.
1288712923
isvReseller: Test ISV
1288812924
businessContact:
1288912925
firstName: John
@@ -12900,7 +12936,7 @@ components:
1290012936
name: Bandwidth Inc.
1290112937
state: NC
1290212938
url: https://www.example.com/path/to/resource
12903-
privacyPolicyUrl: http://your-company.com/privacyPolicyUrl.pdf
12939+
privacyPolicyUrl: http://your-company.com/privacyPolicy
1290412940
useCaseSummary: Text summarizing the use case for the toll-free number
1290512941
optInWorkflow:
1290612942
imageUrls:
@@ -12968,8 +13004,8 @@ components:
1296813004
example:
1296913005
additionalInformation: Any additional information
1297013006
useCase: 2FA
12971-
termsAndConditionsUrl: http://your-company.com/termsAndConditionsUrl.pdf
12972-
businessDBA: SecondCompany Name
13007+
termsAndConditionsUrl: http://your-company.com/termsAndConditions
13008+
businessDba: Another Company Name Inc.
1297313009
isvReseller: Test ISV
1297413010
businessContact:
1297513011
firstName: John
@@ -12986,7 +13022,7 @@ components:
1298613022
name: Bandwidth Inc.
1298713023
state: NC
1298813024
url: https://www.example.com/path/to/resource
12989-
privacyPolicyUrl: http://your-company.com/privacyPolicyUrl.pdf
13025+
privacyPolicyUrl: http://your-company.com/privacyPolicy
1299013026
useCaseSummary: Text summarizing the use case for the toll-free number
1299113027
optInWorkflow:
1299213028
imageUrls:
@@ -13043,16 +13079,16 @@ components:
1304313079
privacyPolicyUrl:
1304413080
description: The Toll-Free Verification request privacy policy URL. (Not
1304513081
Available Until 5/28/2025)
13046-
example: http://your-company.com/privacyPolicyUrl.pdf
13082+
example: http://your-company.com/privacyPolicy
1304713083
type: string
1304813084
termsAndConditionsUrl:
1304913085
description: The Toll-Free Verification request terms and conditions policy
1305013086
URL. (Not Available Until 5/28/2025)
13051-
example: http://your-company.com/termsAndConditionsUrl.pdf
13087+
example: http://your-company.com/termsAndConditions
1305213088
type: string
13053-
businessDBA:
13089+
businessDba:
1305413090
description: The company 'Doing Business As'. (Not Available Until 5/28/2025)
13055-
example: SecondCompany Name
13091+
example: Another Company Name Inc.
1305613092
type: string
1305713093
type: object
1305813094
tfvStatusEnum:

bandwidth.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5253,17 +5253,17 @@ components:
52535253
description: >-
52545254
The Toll-Free Verification request privacy policy URL. (Not Available
52555255
Until 5/28/2025)
5256-
example: http://your-company.com/privacyPolicyUrl.pdf
5256+
example: http://your-company.com/privacyPolicy
52575257
type: string
52585258
termsAndConditionsUrl:
52595259
description: >-
52605260
The Toll-Free Verification request terms and conditions policy URL. (Not
52615261
Available Until 5/28/2025)
5262-
example: http://your-company.com/termsAndConditionsUrl.pdf
5262+
example: http://your-company.com/termsAndConditions
52635263
type: string
5264-
businessDBA:
5264+
businessDba:
52655265
description: The company 'Doing Business As'. (Not Available Until 5/28/2025)
5266-
example: SecondCompany Name
5266+
example: Another Company Name Inc.
52675267
type: string
52685268
additionalDenialReason:
52695269
properties:
@@ -5349,8 +5349,8 @@ components:
53495349
$ref: '#/components/schemas/privacyPolicyUrl'
53505350
termsAndConditionsUrl:
53515351
$ref: '#/components/schemas/termsAndConditionsUrl'
5352-
businessDBA:
5353-
$ref: '#/components/schemas/businessDBA'
5352+
businessDba:
5353+
$ref: '#/components/schemas/businessDba'
53545354
verificationUpdateRequest:
53555355
type: object
53565356
required:
@@ -5388,8 +5388,8 @@ components:
53885388
$ref: '#/components/schemas/privacyPolicyUrl'
53895389
termsAndConditionsUrl:
53905390
$ref: '#/components/schemas/termsAndConditionsUrl'
5391-
businessDBA:
5392-
$ref: '#/components/schemas/businessDBA'
5391+
businessDba:
5392+
$ref: '#/components/schemas/businessDba'
53935393
tfvBasicAuthentication:
53945394
type: object
53955395
properties:
@@ -5483,6 +5483,21 @@ components:
54835483
$ref: '#/components/schemas/tfvCallbackStatusEnum'
54845484
internalTicketNumber:
54855485
$ref: '#/components/schemas/internalTicketNumberForWebhook'
5486+
blockedWebhook:
5487+
type: object
5488+
properties:
5489+
accountId:
5490+
$ref: '#/components/schemas/accountId1'
5491+
phoneNumber:
5492+
$ref: '#/components/schemas/tfPhoneNumber'
5493+
status:
5494+
$ref: '#/components/schemas/tfvCallbackStatusEnum'
5495+
internalTicketNumber:
5496+
$ref: '#/components/schemas/internalTicketNumberForWebhook'
5497+
blocked:
5498+
$ref: '#/components/schemas/blocked'
5499+
blockedReason:
5500+
$ref: '#/components/schemas/blockedReason'
54865501
tfvSubmissionWrapper:
54875502
type: object
54885503
properties:
@@ -5849,8 +5864,8 @@ components:
58495864
$ref: '#/components/schemas/privacyPolicyUrl'
58505865
termsAndConditionsUrl:
58515866
$ref: '#/components/schemas/termsAndConditionsUrl'
5852-
businessDBA:
5853-
$ref: '#/components/schemas/businessDBA'
5867+
businessDba:
5868+
$ref: '#/components/schemas/businessDba'
58545869
tfvStatusEnum:
58555870
type: string
58565871
enum:
@@ -7468,6 +7483,7 @@ components:
74687483
- $ref: '#/components/schemas/verificationWebhook'
74697484
- $ref: '#/components/schemas/verificationDenialWebhook'
74707485
- $ref: '#/components/schemas/failureWebhook'
7486+
- $ref: '#/components/schemas/blockedWebhook'
74717487
webhookSubscriptionRequest:
74727488
description: >-
74737489
Information about a webhook that Bandwidth should send upon the

docs/BlockedWebhook.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Bandwidth.Standard.Model.BlockedWebhook
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**AccountId** | **string** | User&#39;s account ID. | [optional]
8+
**PhoneNumber** | **string** | Toll-free telephone number in E.164 format. | [optional]
9+
**Status** | **TfvCallbackStatusEnum** | | [optional]
10+
**InternalTicketNumber** | **Guid** | Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. | [optional]
11+
**Blocked** | **bool** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional]
12+
**BlockedReason** | **string** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+

docs/TfvSubmissionInfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515
**IsvReseller** | **string** | ISV name. | [optional]
1616
**PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional]
1717
**TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional]
18-
**BusinessDBA** | **string** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional]
18+
**BusinessDba** | **string** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional]
1919

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

docs/VerificationRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
1616
**IsvReseller** | **string** | ISV name. | [optional]
1717
**PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional]
1818
**TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional]
19-
**BusinessDBA** | **string** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional]
19+
**BusinessDba** | **string** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional]
2020

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

docs/VerificationUpdateRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
1515
**IsvReseller** | **string** | ISV name. | [optional]
1616
**PrivacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional]
1717
**TermsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional]
18-
**BusinessDBA** | **string** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional]
18+
**BusinessDba** | **string** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional]
1919

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

0 commit comments

Comments
 (0)