Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit b864772

Browse files
committed
Add Code Snippets to Spec Files
1 parent f16ff72 commit b864772

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

site/specs/numbers.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,8 @@ components:
12301230
examples:
12311231
unsuccessful404ErrorFindCoverageResponseExample:
12321232
$ref: '#/components/examples/RateCenterFindCoverage404Error'
1233+
schema:
1234+
$ref: '#/components/schemas/RateCenterCoverageUnsuccessfulResponse'
12331235
description: >-
12341236
Unsuccessful response because the rate center coverage entry could not
12351237
be found.
@@ -1239,13 +1241,17 @@ components:
12391241
examples:
12401242
successfulGetCoverageResponseExample:
12411243
$ref: '#/components/examples/RateCenterGetCoverageResponseExample'
1244+
schema:
1245+
$ref: '#/components/schemas/RateCenterCoverageSuccessfulResponseList'
12421246
description: Successful response with a rate center's coverage.
12431247
rateCenterGetCoverageResponse400Error:
12441248
content:
12451249
application/xml:
12461250
examples:
12471251
unsuccessful400ErrorGetCoverageResponseExample:
12481252
$ref: '#/components/examples/RateCenterGetCoverage400Error'
1253+
schema:
1254+
$ref: '#/components/schemas/RateCenterCoverageUnsuccessfulResponse'
12491255
description: >-
12501256
Unsucessful response of a rate center's coverage due to a validation
12511257
error. No search parameters were provided.
@@ -1255,13 +1261,17 @@ components:
12551261
examples:
12561262
successfulPostCoverageResponseExample:
12571263
$ref: '#/components/examples/RateCenterPostCoverageResponseExample'
1264+
schema:
1265+
$ref: '#/components/schemas/CoverageMatrixEntry'
12581266
description: Successful response with the generating matrix entry.
12591267
rateCenterPostCoverageResponse400Error:
12601268
content:
12611269
application/xml:
12621270
examples:
12631271
unsuccessful400ErrorPostCoverageResponseExample:
12641272
$ref: '#/components/examples/RateCenterPostCoverage400Error'
1273+
schema:
1274+
$ref: '#/components/schemas/RateCenterCoverageUnsuccessfulResponse'
12651275
description: >-
12661276
Unsuccessful response due to a validation error. A LRN was provided for
12671277
offnet coverage.
@@ -1271,6 +1281,8 @@ components:
12711281
examples:
12721282
successfulPutCoverageResponseExample:
12731283
$ref: '#/components/examples/RateCenterPutCoverageResponseExample'
1284+
schema:
1285+
$ref: '#/components/schemas/CoverageMatrixEntry'
12741286
description: Successful response for the update of a coverage matrix entry.
12751287
removeImportedVoiceTnOrdersResponse:
12761288
content:
@@ -4200,6 +4212,8 @@ components:
42004212
TierId:
42014213
description: A rate center's tier ID.
42024214
example: 1
4215+
maximum: 6
4216+
minimum: 0
42034217
type: number
42044218
VendorId:
42054219
description: A rate center's vendor ID.
@@ -9809,6 +9823,26 @@ components:
98099823
type: integer
98109824
type: object
98119825
type: object
9826+
RateCenterCoverageSuccessfulResponseList:
9827+
description: A list of all coverage matrix entries returned by a GET endpoint.
9828+
properties:
9829+
data:
9830+
items:
9831+
$ref: '#/components/schemas/CoverageMatrixEntry'
9832+
type: array
9833+
required:
9834+
- data
9835+
type: object
9836+
RateCenterCoverageUnsuccessfulResponse:
9837+
description: A generic error object for coverage matrix / rate center responses.
9838+
properties:
9839+
description:
9840+
example: Error Message
9841+
type: string
9842+
errorCode:
9843+
example: '1234'
9844+
type: number
9845+
type: object
98129846
RateCenterGroup:
98139847
properties:
98149848
City:
@@ -12626,6 +12660,12 @@ components:
1262612660
- unchanged
1262712661
- systemDefault
1262812662
type: string
12663+
CallVerificationEnabled:
12664+
enum:
12665+
- '{custom value}'
12666+
- 'true'
12667+
- 'false'
12668+
type: string
1262912669
CallingNameDisplay:
1263012670
enum:
1263112671
- 'on'
@@ -12872,6 +12912,8 @@ components:
1287212912
properties:
1287312913
CallForward:
1287412914
$ref: '#/components/schemas/TelephoneNumber'
12915+
CallVerificationEnabled:
12916+
type: string
1287512917
CallingNameDisplay:
1287612918
type: string
1287712919
FinalDestinationURI:
@@ -39029,6 +39071,14 @@ paths:
3902939071
phone number in the option
3903039072
group</td></tr><tr><td>false</td><td>Explicitly disables Pindrop
3903139073
integration on each phone number in the option
39074+
group</td></tr></tbody></table><li>for Call Verification Enabled
39075+
attribute</li><table style="text-align: left; width: 80%;" border="1"
39076+
cellpadding="2" cellspacing="0"><tbody><tr><th>Action
39077+
value</th><th>Description of
39078+
action</th></tr><tr><td>true</td><td>Enables Call Verification on each
39079+
phone number in the option
39080+
group</td></tr><tr><td>false</td><td>Explicitly disables Call
39081+
Verification on each phone number in the option
3903239082
group</td></tr></tbody></table><li>for other attribute</li><ul><li
3903339083
type="square"> <i>systemDefault</i> - implies that the element profile
3903439084
value should be removed so that the TN changes back to the default
@@ -39110,6 +39160,12 @@ paths:
3911039160
<TelephoneNumber>2018551026</TelephoneNumber>
3911139161
</TelephoneNumbers>
3911239162
</TnOptionGroup>
39163+
<TnOptionGroup>
39164+
<CallVerificationEnabled>true</CallVerificationEnabled>
39165+
<TelephoneNumbers>
39166+
<TelephoneNumber>2018551027</TelephoneNumber>
39167+
</TelephoneNumbers>
39168+
</TnOptionGroup>
3911339169
</TnOptionGroups>
3911439170
</TnOptionOrder>
3911539171
schema:

0 commit comments

Comments
 (0)