Skip to content

Commit b37c121

Browse files
committed
consolidate tfvStatus and rename linksObject
1 parent 918d651 commit b37c121

20 files changed

+231
-1154
lines changed

.openapi-generator/FILES

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ docs/FailureWebhook.md
4747
docs/FieldError.md
4848
docs/FileFormatEnum.md
4949
docs/GatherCallback.md
50-
docs/GetTollFreeVerificationStatus200Response.md
5150
docs/InitiateCallback.md
52-
docs/Links.md
51+
docs/LinksObject.md
5352
docs/ListMessageDirectionEnum.md
5453
docs/ListMessageItem.md
5554
docs/LookupRequest.md
@@ -96,9 +95,8 @@ docs/TelephoneNumber.md
9695
docs/TfvBasicAuthentication.md
9796
docs/TfvCallbackStatusEnum.md
9897
docs/TfvError.md
98+
docs/TfvStatus.md
9999
docs/TfvStatusEnum.md
100-
docs/TfvStatusWithNoSubmissionInfo.md
101-
docs/TfvStatusWithSubmissionInfo.md
102100
docs/TfvSubmissionInfo.md
103101
docs/TfvSubmissionWrapper.md
104102
docs/TnLookupRequestError.md
@@ -206,9 +204,8 @@ src/main/java/com/bandwidth/sdk/model/FailureWebhook.java
206204
src/main/java/com/bandwidth/sdk/model/FieldError.java
207205
src/main/java/com/bandwidth/sdk/model/FileFormatEnum.java
208206
src/main/java/com/bandwidth/sdk/model/GatherCallback.java
209-
src/main/java/com/bandwidth/sdk/model/GetTollFreeVerificationStatus200Response.java
210207
src/main/java/com/bandwidth/sdk/model/InitiateCallback.java
211-
src/main/java/com/bandwidth/sdk/model/Links.java
208+
src/main/java/com/bandwidth/sdk/model/LinksObject.java
212209
src/main/java/com/bandwidth/sdk/model/ListMessageDirectionEnum.java
213210
src/main/java/com/bandwidth/sdk/model/ListMessageItem.java
214211
src/main/java/com/bandwidth/sdk/model/LookupRequest.java
@@ -249,9 +246,8 @@ src/main/java/com/bandwidth/sdk/model/TelephoneNumber.java
249246
src/main/java/com/bandwidth/sdk/model/TfvBasicAuthentication.java
250247
src/main/java/com/bandwidth/sdk/model/TfvCallbackStatusEnum.java
251248
src/main/java/com/bandwidth/sdk/model/TfvError.java
249+
src/main/java/com/bandwidth/sdk/model/TfvStatus.java
252250
src/main/java/com/bandwidth/sdk/model/TfvStatusEnum.java
253-
src/main/java/com/bandwidth/sdk/model/TfvStatusWithNoSubmissionInfo.java
254-
src/main/java/com/bandwidth/sdk/model/TfvStatusWithSubmissionInfo.java
255251
src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java
256252
src/main/java/com/bandwidth/sdk/model/TfvSubmissionWrapper.java
257253
src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,8 @@ Class | Method | HTTP request | Description
215215
- [FieldError](docs/FieldError.md)
216216
- [FileFormatEnum](docs/FileFormatEnum.md)
217217
- [GatherCallback](docs/GatherCallback.md)
218-
- [GetTollFreeVerificationStatus200Response](docs/GetTollFreeVerificationStatus200Response.md)
219218
- [InitiateCallback](docs/InitiateCallback.md)
220-
- [Links](docs/Links.md)
219+
- [LinksObject](docs/LinksObject.md)
221220
- [ListMessageDirectionEnum](docs/ListMessageDirectionEnum.md)
222221
- [ListMessageItem](docs/ListMessageItem.md)
223222
- [LookupRequest](docs/LookupRequest.md)
@@ -258,9 +257,8 @@ Class | Method | HTTP request | Description
258257
- [TfvBasicAuthentication](docs/TfvBasicAuthentication.md)
259258
- [TfvCallbackStatusEnum](docs/TfvCallbackStatusEnum.md)
260259
- [TfvError](docs/TfvError.md)
260+
- [TfvStatus](docs/TfvStatus.md)
261261
- [TfvStatusEnum](docs/TfvStatusEnum.md)
262-
- [TfvStatusWithNoSubmissionInfo](docs/TfvStatusWithNoSubmissionInfo.md)
263-
- [TfvStatusWithSubmissionInfo](docs/TfvStatusWithSubmissionInfo.md)
264262
- [TfvSubmissionInfo](docs/TfvSubmissionInfo.md)
265263
- [TfvSubmissionWrapper](docs/TfvSubmissionWrapper.md)
266264
- [TnLookupRequestError](docs/TnLookupRequestError.md)

api/openapi.yaml

Lines changed: 73 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4765,7 +4765,7 @@ paths:
47654765
content:
47664766
application/json:
47674767
schema:
4768-
$ref: '#/components/schemas/getTollFreeVerificationStatus_200_response'
4768+
$ref: '#/components/schemas/tfvStatus'
47694769
description: OK
47704770
"400":
47714771
content:
@@ -7144,7 +7144,7 @@ components:
71447144
content:
71457145
application/json:
71467146
schema:
7147-
$ref: '#/components/schemas/getTollFreeVerificationStatus_200_response'
7147+
$ref: '#/components/schemas/tfvStatus'
71487148
description: OK
71497149
listWebhookSubscriptionsResponse:
71507150
content:
@@ -11780,6 +11780,14 @@ components:
1178011780
$ref: '#/components/schemas/verificationUpdateRequest'
1178111781
type: object
1178211782
address:
11783+
example:
11784+
zip: "27606"
11785+
addr2: addr2
11786+
addr1: 2230 Bandmate Way
11787+
city: Raleigh
11788+
name: Bandwidth Inc.
11789+
state: NC
11790+
url: https://www.example.com/path/to/resource
1178311791
nullable: false
1178411792
properties:
1178511793
name:
@@ -11839,6 +11847,11 @@ components:
1183911847
- zip
1184011848
type: object
1184111849
optInWorkflow:
11850+
example:
11851+
imageUrls:
11852+
- https://www.example.com/path/to/resource
11853+
- https://www.example.com/path/to/resource
11854+
description: Opt In Flow
1184211855
nullable: false
1184311856
properties:
1184411857
description:
@@ -11869,6 +11882,11 @@ components:
1186911882
nullable: true
1187011883
type: string
1187111884
contact:
11885+
example:
11886+
firstName: John
11887+
lastName: Doe
11888+
phoneNumber: "+19192654500"
11889+
1187211890
nullable: false
1187311891
properties:
1187411892
firstName:
@@ -11988,7 +12006,7 @@ components:
1198812006
description: description
1198912007
properties:
1199012008
links:
11991-
$ref: '#/components/schemas/links'
12009+
$ref: '#/components/schemas/linksObject'
1199212010
errors:
1199312011
items:
1199412012
$ref: '#/components/schemas/error'
@@ -12000,7 +12018,7 @@ components:
1200012018
required:
1200112019
- data
1200212020
type: object
12003-
links:
12021+
linksObject:
1200412022
example:
1200512023
next: next
1200612024
previous: previous
@@ -12137,57 +12155,41 @@ components:
1213712155
field: error message
1213812156
type: object
1213912157
type: object
12140-
tfvStatusWithNoSubmissionInfo:
12158+
tfvStatus:
1214112159
example:
1214212160
internalTicketNumber: acde070d-8c4c-4f0d-9d8a-162843c10333
1214312161
phoneNumber: "+18005555555"
1214412162
resubmitAllowed: true
1214512163
createdDateTime: 2021-06-08T06:45:13Z
1214612164
modifiedDateTime: 2021-06-08T06:45:13Z
12165+
submission:
12166+
additionalInformation: Any additional information
12167+
useCase: 2FA
12168+
isvReseller: Test ISV
12169+
businessContact:
12170+
firstName: John
12171+
lastName: Doe
12172+
phoneNumber: "+19192654500"
12173+
12174+
messageVolume: 10000
12175+
productionMessageContent: Production message content
12176+
businessAddress:
12177+
zip: "27606"
12178+
addr2: addr2
12179+
addr1: 2230 Bandmate Way
12180+
city: Raleigh
12181+
name: Bandwidth Inc.
12182+
state: NC
12183+
url: https://www.example.com/path/to/resource
12184+
useCaseSummary: Text summarizing the use case for the toll-free number
12185+
optInWorkflow:
12186+
imageUrls:
12187+
- https://www.example.com/path/to/resource
12188+
- https://www.example.com/path/to/resource
12189+
description: Opt In Flow
1214712190
declineReasonDescription: Invalid Information - Can't Validate URL - Website
1214812191
is not accessible / not available
1214912192
status: VERIFIED
12150-
properties:
12151-
phoneNumber:
12152-
description: Toll-free telephone number in E.164 format.
12153-
example: "+18005555555"
12154-
maxLength: 12
12155-
minLength: 12
12156-
nullable: false
12157-
pattern: "^\\+1(800|833|844|855|866|877|888)[2-9]\\d{6}$"
12158-
type: string
12159-
status:
12160-
$ref: '#/components/schemas/tfvStatusEnum'
12161-
internalTicketNumber:
12162-
description: Unique identifier (UUID) generated by Bandwidth to assist in
12163-
tracking the verification status of a toll-free number - included in all
12164-
webhook payloads.
12165-
example: acde070d-8c4c-4f0d-9d8a-162843c10333
12166-
format: uuid
12167-
type: string
12168-
declineReasonDescription:
12169-
description: Explanation for why a verification request was declined.
12170-
example: Invalid Information - Can't Validate URL - Website is not accessible
12171-
/ not available
12172-
nullable: false
12173-
type: string
12174-
resubmitAllowed:
12175-
description: Whether a Toll-Free Verification request qualifies for resubmission
12176-
via PUT.
12177-
example: true
12178-
type: boolean
12179-
createdDateTime:
12180-
description: Date and time the verification request was created.
12181-
example: 2021-06-08T06:45:13Z
12182-
format: date-time
12183-
type: string
12184-
modifiedDateTime:
12185-
description: Date and time the verification request was last modified.
12186-
example: 2021-06-08T06:45:13Z
12187-
format: date-time
12188-
type: string
12189-
type: object
12190-
tfvStatusWithSubmissionInfo:
1219112193
properties:
1219212194
phoneNumber:
1219312195
description: Toll-free telephone number in E.164 format.
@@ -12231,6 +12233,31 @@ components:
1223112233
$ref: '#/components/schemas/tfvSubmissionInfo'
1223212234
type: object
1223312235
tfvSubmissionInfo:
12236+
example:
12237+
additionalInformation: Any additional information
12238+
useCase: 2FA
12239+
isvReseller: Test ISV
12240+
businessContact:
12241+
firstName: John
12242+
lastName: Doe
12243+
phoneNumber: "+19192654500"
12244+
12245+
messageVolume: 10000
12246+
productionMessageContent: Production message content
12247+
businessAddress:
12248+
zip: "27606"
12249+
addr2: addr2
12250+
addr1: 2230 Bandmate Way
12251+
city: Raleigh
12252+
name: Bandwidth Inc.
12253+
state: NC
12254+
url: https://www.example.com/path/to/resource
12255+
useCaseSummary: Text summarizing the use case for the toll-free number
12256+
optInWorkflow:
12257+
imageUrls:
12258+
- https://www.example.com/path/to/resource
12259+
- https://www.example.com/path/to/resource
12260+
description: Opt In Flow
1223412261
properties:
1223512262
businessAddress:
1223612263
$ref: '#/components/schemas/address'
@@ -12297,10 +12324,6 @@ components:
1229712324
nullable: true
1229812325
pattern: "^[ -~]{16,64}$"
1229912326
type: string
12300-
getTollFreeVerificationStatus_200_response:
12301-
oneOf:
12302-
- $ref: '#/components/schemas/tfvStatusWithNoSubmissionInfo'
12303-
- $ref: '#/components/schemas/tfvStatusWithSubmissionInfo'
1230412327
webhookSubscription_basicAuthentication:
1230512328
description: "Basic authentication credentials are not required, but if present,\
1230612329
\ both username and password must be provided."

bandwidth.yml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5099,7 +5099,7 @@ components:
50995099
- data
51005100
properties:
51015101
links:
5102-
$ref: '#/components/schemas/links'
5102+
$ref: '#/components/schemas/linksObject'
51035103
errors:
51045104
type: array
51055105
items:
@@ -5108,7 +5108,7 @@ components:
51085108
items:
51095109
$ref: '#/components/schemas/webhookSubscription'
51105110
type: array
5111-
links:
5111+
linksObject:
51125112
type: object
51135113
properties:
51145114
first:
@@ -5225,30 +5225,7 @@ components:
52255225
example:
52265226
field: error message
52275227
type: object
5228-
tfvStatusWithNoSubmissionInfo:
5229-
type: object
5230-
properties:
5231-
phoneNumber:
5232-
$ref: '#/components/schemas/tfPhoneNumber'
5233-
status:
5234-
$ref: '#/components/schemas/tfvStatusEnum'
5235-
internalTicketNumber:
5236-
$ref: '#/components/schemas/internalTicketNumber'
5237-
declineReasonDescription:
5238-
$ref: '#/components/schemas/declineReasonDescription'
5239-
resubmitAllowed:
5240-
$ref: '#/components/schemas/resubmitAllowed'
5241-
createdDateTime:
5242-
type: string
5243-
description: Date and time the verification request was created.
5244-
format: date-time
5245-
example: '2021-06-08T06:45:13.0Z'
5246-
modifiedDateTime:
5247-
type: string
5248-
description: Date and time the verification request was last modified.
5249-
format: date-time
5250-
example: '2021-06-08T06:45:13.0Z'
5251-
tfvStatusWithSubmissionInfo:
5228+
tfvStatus:
52525229
type: object
52535230
properties:
52545231
phoneNumber:
@@ -5787,9 +5764,7 @@ components:
57875764
content:
57885765
application/json:
57895766
schema:
5790-
oneOf:
5791-
- $ref: '#/components/schemas/tfvStatusWithNoSubmissionInfo'
5792-
- $ref: '#/components/schemas/tfvStatusWithSubmissionInfo'
5767+
$ref: '#/components/schemas/tfvStatus'
57935768
listWebhookSubscriptionsResponse:
57945769
description: OK
57955770
content:

docs/LinksObject.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
# LinksObject
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**first** | **String** | The first (or only) page of results matching the query. | [optional] |
11+
|**next** | **String** | If more results exist than specified by 'size', this link returns the next page of 'size' results. | [optional] |
12+
|**previous** | **String** | If the results are more than one page, this link returns the previous page of 'size' results. | [optional] |
13+
|**last** | **String** | If more results exist than specified by 'size', this link return the last page of result. | [optional] |
14+
15+
16+

docs/TfvStatus.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
# TfvStatus
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**phoneNumber** | **String** | Toll-free telephone number in E.164 format. | [optional] |
11+
|**status** | **TfvStatusEnum** | | [optional] |
12+
|**internalTicketNumber** | **UUID** | Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number - included in all webhook payloads. | [optional] |
13+
|**declineReasonDescription** | **String** | Explanation for why a verification request was declined. | [optional] |
14+
|**resubmitAllowed** | **Boolean** | Whether a Toll-Free Verification request qualifies for resubmission via PUT. | [optional] |
15+
|**createdDateTime** | **OffsetDateTime** | Date and time the verification request was created. | [optional] |
16+
|**modifiedDateTime** | **OffsetDateTime** | Date and time the verification request was last modified. | [optional] |
17+
|**submission** | [**TfvSubmissionInfo**](TfvSubmissionInfo.md) | | [optional] |
18+
19+
20+

docs/TollFreeVerificationApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ null (empty response body)
171171

172172
<a id="getTollFreeVerificationStatus"></a>
173173
# **getTollFreeVerificationStatus**
174-
> GetTollFreeVerificationStatus200Response getTollFreeVerificationStatus(accountId, phoneNumber)
174+
> TfvStatus getTollFreeVerificationStatus(accountId, phoneNumber)
175175
176176
Get Toll-Free Verification Status
177177

@@ -201,7 +201,7 @@ public class Example {
201201
String accountId = "9900000"; // String | Your Bandwidth Account ID.
202202
String phoneNumber = "+18885555555"; // String | Valid Toll-Free telephone number in E.164 format.
203203
try {
204-
GetTollFreeVerificationStatus200Response result = apiInstance.getTollFreeVerificationStatus(accountId, phoneNumber);
204+
TfvStatus result = apiInstance.getTollFreeVerificationStatus(accountId, phoneNumber);
205205
System.out.println(result);
206206
} catch (ApiException e) {
207207
System.err.println("Exception when calling TollFreeVerificationApi#getTollFreeVerificationStatus");
@@ -223,7 +223,7 @@ public class Example {
223223

224224
### Return type
225225

226-
[**GetTollFreeVerificationStatus200Response**](GetTollFreeVerificationStatus200Response.md)
226+
[**TfvStatus**](TfvStatus.md)
227227

228228
### Authorization
229229

0 commit comments

Comments
 (0)