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

Commit bf96bce

Browse files
authored
Auto-merge PR based on merge event
Auto-merging PR based on merge event from upstream repository
2 parents 34b7cef + f2a95db commit bf96bce

File tree

1 file changed

+190
-82
lines changed

1 file changed

+190
-82
lines changed

site/specs/numbers.yml

Lines changed: 190 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,11 @@ components:
11671167
schema:
11681168
type: string
11691169
requestBodies:
1170+
shortCodeJsonPatchShortCodeRequest:
1171+
content:
1172+
application/json-patch+json:
1173+
schema:
1174+
$ref: '#/components/schemas/jsonPatch'
11701175
verificationRequest:
11711176
content:
11721177
application/json:
@@ -1468,6 +1473,12 @@ components:
14681473
description: >-
14691474
The short code number history details have been successfully retrieved
14701475
and displayed.
1476+
shortCodeUpdateShortCodeResponse:
1477+
content:
1478+
application/json:
1479+
schema:
1480+
$ref: '#/components/schemas/shortCode'
1481+
description: Updated short code data.
14711482
tfvBadRequestResponse:
14721483
content:
14731484
application/json:
@@ -13781,6 +13792,36 @@ components:
1378113792
type: string
1378213793
type: object
1378313794
type: object
13795+
jsonPatch:
13796+
items:
13797+
$ref: '#/components/schemas/jsonPatchItem'
13798+
type: array
13799+
jsonPatchItem:
13800+
properties:
13801+
from:
13802+
description: Used when the operation is copy or move.
13803+
type: string
13804+
op:
13805+
enum:
13806+
- add
13807+
- remove
13808+
- replace
13809+
- copy
13810+
- move
13811+
- test
13812+
example: replace
13813+
type: string
13814+
path:
13815+
example: /state
13816+
type: string
13817+
value:
13818+
description: Used when the operation is add, replace, or test.
13819+
example: MAINTENANCE
13820+
type: object
13821+
required:
13822+
- op
13823+
- path
13824+
type: object
1378413825
lnpPortInfoForGivenStatus:
1378513826
properties:
1378613827
ActualFOCDate:
@@ -13966,31 +14007,14 @@ components:
1396614007
lease.
1396714008
example: true
1396814009
type: boolean
13969-
leaseEndsDate:
13970-
description: >-
13971-
Date the short code lease ends. Customer managed leases may not have
13972-
lease start and end dates. Date is inclusive as it relates to
13973-
expiration.
13974-
example: '2024-01-29'
13975-
format: date
13976-
type: string
13977-
leaseStartsDate:
13978-
description: >-
13979-
Date the short code lease starts. Customer managed leases may not
13980-
have lease start and end dates. Date is inclusive as it relates to
13981-
expiration.
13982-
example: '2023-01-28'
13983-
format: date
13984-
type: string
14010+
lease:
14011+
$ref: '#/components/schemas/shortCodeLeaseInfo'
1398514012
modifiedDateTime:
1398614013
example: '2022-11-15T18:39:04.505Z'
1398714014
format: date-time
1398814015
type: string
13989-
orderedDate:
13990-
description: Date the short code was registered.
13991-
example: '2023-01-30'
13992-
format: date
13993-
type: string
14016+
notes:
14017+
$ref: '#/components/schemas/shortCodeNotes'
1399414018
shortCode:
1399514019
description: The short code.
1399614020
example: '12345'
@@ -14094,33 +14118,24 @@ components:
1409414118
- CAN
1409514119
example: USA
1409614120
type: string
14121+
createdDateTime:
14122+
example: '2022-11-14T18:39:04.505Z'
14123+
format: date-time
14124+
type: string
1409714125
customerManagedLease:
1409814126
description: >-
1409914127
Flag indicating whether the customer is managing the short code
1410014128
lease.
1410114129
example: true
1410214130
type: boolean
14103-
leaseEndsDate:
14104-
description: >-
14105-
Date the short code lease ends. Customer managed leases may not have
14106-
lease start and end dates. Date is inclusive as it relates to
14107-
expiration.
14108-
example: '2024-01-29'
14109-
format: date
14110-
type: string
14111-
leaseStartsDate:
14112-
description: >-
14113-
Date the short code lease starts. Customer managed leases may not
14114-
have lease start and end dates. Date is inclusive as it relates to
14115-
expiration.
14116-
example: '2023-01-28'
14117-
format: date
14118-
type: string
14119-
orderedDate:
14120-
description: Date the short code was registered.
14121-
example: '2023-01-30'
14122-
format: date
14131+
lease:
14132+
$ref: '#/components/schemas/shortCodeLeaseData'
14133+
modifiedDateTime:
14134+
example: '2022-11-15T18:39:04.505Z'
14135+
format: date-time
1412314136
type: string
14137+
notes:
14138+
$ref: '#/components/schemas/shortCodeNotes'
1412414139
shortCode:
1412514140
description: The short code.
1412614141
example: '12345'
@@ -14234,26 +14249,14 @@ components:
1423414249
lease.
1423514250
example: true
1423614251
type: boolean
14237-
leaseEndsDate:
14238-
description: >-
14239-
Date the short code lease ends. Customer managed leases may not have
14240-
lease start and end dates. Date is inclusive as it relates to
14241-
expiration.
14242-
example: '2024-01-29'
14243-
format: date
14244-
type: string
14245-
leaseStartsDate:
14246-
description: >-
14247-
Date the short code lease starts. Customer managed leases may not
14248-
have lease start and end dates. Date is inclusive as it relates to
14249-
expiration.
14250-
example: '2023-01-28'
14251-
format: date
14252-
type: string
14252+
lease:
14253+
$ref: '#/components/schemas/shortCodeLeaseInfo'
1425314254
modifiedDateTime:
1425414255
example: '2022-11-15T18:39:04.505Z'
1425514256
format: date-time
1425614257
type: string
14258+
notes:
14259+
$ref: '#/components/schemas/shortCodeNotes'
1425714260
operation:
1425814261
description: Operation executed over the short code.
1425914262
enum:
@@ -14262,11 +14265,6 @@ components:
1426214265
- DELETED
1426314266
example: UPDATED
1426414267
type: string
14265-
orderedDate:
14266-
description: Date the short code was registered.
14267-
example: '2023-01-30'
14268-
format: date
14269-
type: string
1427014268
shortCode:
1427114269
description: The short code.
1427214270
example: '12345'
@@ -14325,6 +14323,90 @@ components:
1432514323
page:
1432614324
$ref: '#/components/schemas/shortCodePage'
1432714325
type: object
14326+
shortCodeLeaseData:
14327+
description: >-
14328+
The lease information for the short code number. This information only
14329+
applies to Bandwidth managed short code leases (customerManagedLease set
14330+
to false).
14331+
properties:
14332+
autoRenew:
14333+
description: Flag indicating whether the lease should auto-renew.
14334+
example: true
14335+
type: boolean
14336+
autoRenewMonths:
14337+
description: >-
14338+
The number of months for which to renew the release when it auto
14339+
renews. Valid values are 3, 6, and 12. The default value, if not
14340+
supplied on creation, will be 3.
14341+
enum:
14342+
- 3
14343+
- 6
14344+
- 12
14345+
example: 6
14346+
type: integer
14347+
contactEmail:
14348+
description: Email address used for all lease renewal notifications.
14349+
14350+
type: string
14351+
endDate:
14352+
description: >-
14353+
Lease end date. This date is inclusive, e.g. 2022-02-15 means that
14354+
the short code is valid through 2/15.
14355+
example: '2023-01-28'
14356+
format: date
14357+
type: string
14358+
startDate:
14359+
description: >-
14360+
Lease start date. This date is inclusive, e.g. 2022-02-07 means that
14361+
the short code is valid on 2/7.
14362+
example: '2023-01-28'
14363+
format: date
14364+
type: string
14365+
type: object
14366+
shortCodeLeaseInfo:
14367+
description: >-
14368+
The lease information for the short code number. This information only
14369+
applies to Bandwidth managed short code leases (customerManagedLease set
14370+
to false).
14371+
properties:
14372+
autoRenew:
14373+
description: Flag indicating whether the lease should auto-renew.
14374+
example: true
14375+
type: boolean
14376+
autoRenewMonths:
14377+
description: >-
14378+
The number of months for which to renew the release when it auto
14379+
renews. Valid values are 3, 6, and 12. The default value, if not
14380+
supplied on creation, will be 3.
14381+
enum:
14382+
- 3
14383+
- 6
14384+
- 12
14385+
example: 6
14386+
type: integer
14387+
contactEmail:
14388+
description: Email address used for all lease renewal notifications.
14389+
14390+
type: string
14391+
endDate:
14392+
description: >-
14393+
Lease end date. This date is inclusive, e.g. 2022-02-15 means that
14394+
the short code is valid through 2/15.
14395+
example: '2023-01-28'
14396+
format: date
14397+
type: string
14398+
startDate:
14399+
description: >-
14400+
Lease start date. This date is inclusive, e.g. 2022-02-07 means that
14401+
the short code is valid on 2/7.
14402+
example: '2023-01-28'
14403+
format: date
14404+
type: string
14405+
type: object
14406+
shortCodeNotes:
14407+
description: Internal notes.
14408+
example: Notes example
14409+
type: string
1432814410
shortCodePage:
1432914411
description: Pagination object that represents the current page.
1433014412
properties:
@@ -14363,33 +14445,24 @@ components:
1436314445
items:
1436414446
$ref: '#/components/schemas/shortCodeCarrierInfo'
1436514447
type: array
14448+
createdDateTime:
14449+
example: '2022-11-14T18:39:04.505Z'
14450+
format: date-time
14451+
type: string
1436614452
customerManagedLease:
1436714453
description: >-
1436814454
Flag indicating whether the customer is managing the short code
1436914455
lease.
1437014456
example: true
1437114457
type: boolean
14372-
leaseEndsDate:
14373-
description: >-
14374-
Date the short code lease ends. Customer managed leases may not have
14375-
lease start and end dates. Date is inclusive as it relates to
14376-
expiration.
14377-
example: '2024-01-29'
14378-
format: date
14379-
type: string
14380-
leaseStartsDate:
14381-
description: >-
14382-
Date the short code lease starts. Customer managed leases may not
14383-
have lease start and end dates. Date is inclusive as it relates to
14384-
expiration.
14385-
example: '2023-01-28'
14386-
format: date
14387-
type: string
14388-
orderedDate:
14389-
description: Date the short code was registered.
14390-
example: '2023-01-30'
14391-
format: date
14458+
lease:
14459+
$ref: '#/components/schemas/shortCodeLeaseData'
14460+
modifiedDateTime:
14461+
example: '2022-11-15T18:39:04.505Z'
14462+
format: date-time
1439214463
type: string
14464+
notes:
14465+
$ref: '#/components/schemas/shortCodeNotes'
1439314466
sipPeerId:
1439414467
description: SIP Peer ID from Iris.
1439514468
example: '123321'
@@ -33843,6 +33916,41 @@ paths:
3384333916
summary: Retrieve short code details.
3384433917
tags:
3384533918
- Short Codes
33919+
patch:
33920+
description: >-
33921+
Update (field by field) an account's short code registration for a
33922+
country. This utilizes [Json Patch](https://jsonpatch.com/).
33923+
operationId: patchShortCodeLease
33924+
parameters:
33925+
- $ref: '#/components/parameters/AccountIdPathParam'
33926+
- $ref: '#/components/parameters/shortCodePathParam'
33927+
- $ref: '#/components/parameters/shortCodeCountryPathParam'
33928+
requestBody:
33929+
$ref: '#/components/requestBodies/shortCodeJsonPatchShortCodeRequest'
33930+
responses:
33931+
'200':
33932+
$ref: '#/components/responses/shortCodeUpdateShortCodeResponse'
33933+
'400':
33934+
$ref: '#/components/responses/shortCode400'
33935+
'401':
33936+
$ref: '#/components/responses/shortCode401'
33937+
'403':
33938+
$ref: '#/components/responses/shortCode403'
33939+
'404':
33940+
$ref: '#/components/responses/shortCode404'
33941+
'405':
33942+
$ref: '#/components/responses/shortCode405'
33943+
'409':
33944+
$ref: '#/components/responses/shortCode409'
33945+
'429':
33946+
$ref: '#/components/responses/shortCode429'
33947+
'500':
33948+
$ref: '#/components/responses/shortCode500'
33949+
summary: >-
33950+
Update the lease information of an account's short code registration for
33951+
a country.
33952+
tags:
33953+
- Short Codes
3384633954
/accounts/{accountId}/shortcodes/{shortCode}/{country}/history:
3384733955
get:
3384833956
description: >-

0 commit comments

Comments
 (0)