Skip to content

Commit 6300c36

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
SWI-10422 Update SDK Based on Recent Spec Changes (#238)
* Generate SDK with OpenAPI Generator Version * remove old files * update tests * remove import * remove model --------- Co-authored-by: DX-Bandwidth <dx@bandwidth.com> Co-authored-by: ckoegel <ckoegel1006@gmail.com>
1 parent 5c1bca2 commit 6300c36

23 files changed

Lines changed: 205 additions & 331 deletions

.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ docs/BlockedWebhook.md
1212
docs/BridgeCompleteCallback.md
1313
docs/BridgeTargetCompleteCallback.md
1414
docs/BusinessEntityTypeEnum.md
15-
docs/BusinessRegistrationIssuingCountryEnum.md
1615
docs/BusinessRegistrationTypeEnum.md
1716
docs/CallDirectionEnum.md
1817
docs/CallRecordingMetadata.md
@@ -242,7 +241,6 @@ src/main/java/com/bandwidth/sdk/model/BlockedWebhook.java
242241
src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java
243242
src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java
244243
src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java
245-
src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java
246244
src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java
247245
src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java
248246
src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ Class | Method | HTTP request | Description
192192
- [BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
193193
- [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
194194
- [BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
195-
- [BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
196195
- [BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
197196
- [CallDirectionEnum](docs/CallDirectionEnum.md)
198197
- [CallRecordingMetadata](docs/CallRecordingMetadata.md)

api/openapi.yaml

Lines changed: 103 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ paths:
295295

296296
If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten.
297297

298-
A list of supported media types can be found [here](https://support.bandwidth.com/hc/en-us/articles/360014128994-What-MMS-file-types-are-supported-).
298+
A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
299299
operationId: uploadMedia
300300
parameters:
301301
- description: Your Bandwidth Account ID.
@@ -8956,7 +8956,7 @@ components:
89568956
description: |-
89578957
The URL of a media attachment.
89588958

8959-
For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see [here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits) for more details.
8959+
For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see more at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits) for more details.
89608960
example: https://dev.bandwidth.com/images/bandwidth-logo.png
89618961
format: uri
89628962
maxLength: 1000
@@ -13832,14 +13832,16 @@ components:
1383213832
description: |
1383313833
Government-issued business identifying number.
1383413834

13835-
**Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
13835+
**Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.**
1383613836
example: 12-3456789
1383713837
maxLength: 500
1383813838
nullable: true
1383913839
type: string
1384013840
businessRegistrationTypeEnum:
1384113841
description: |
1384213842
The type of business registration number.
13843+
13844+
**Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
1384313845
enum:
1384413846
- EIN
1384513847
- CBN
@@ -13862,11 +13864,11 @@ components:
1386213864
example: EIN
1386313865
nullable: true
1386413866
type: string
13865-
businessRegistrationIssuingCountryEnum:
13867+
businessRegistrationIssuingCountry:
1386613868
description: |-
13867-
The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 country codes are acceptable, but the application will convert them to alpha-3 when received, so alpha-3 is encouraged.
13869+
The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged.
1386813870

13869-
**Note:** If this field is omitted but `businessRegistrationType` is provided, the application will attempt to infer the country based on the registration type. However, if the application cannot confidently infer the country, the submission may be rejected. To ensure the highest likelihood of acceptance, it is recommended to provide both `businessRegistrationType` and `businessRegistrationIssuingCountry`.
13871+
**Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
1387013872

1387113873
| Registration Type | Supported Countries |
1387213874
|----------------------|------------------------------------|
@@ -13888,30 +13890,17 @@ components:
1388813890
| CNPJ | BRA |
1388913891
| UID | CHE |
1389013892
| OTHER | Must Provide Country Code |
13891-
enum:
13892-
- USA
13893-
- CAN
13894-
- HKG
13895-
- GBR
13896-
- IRL
13897-
- BRA
13898-
- NLD
13899-
- AUS
13900-
- FRA
13901-
- NZL
13902-
- DEU
13903-
- ESP
13904-
- CHE
13905-
- CYP
13906-
- IND
13907-
- CHN
13908-
- BGR
1390913893
example: USA
13910-
nullable: false
13894+
nullable: true
1391113895
type: string
1391213896
businessEntityTypeEnum:
13913-
description: |
13914-
The type of registered business.
13897+
description: "The type of registered business.\n\n**Note: As of October 19th,\
13898+
\ 2026 submissions using a value other than `SOLE_PROPRIETOR` must provide\
13899+
\ a value for `businessRegistrationNumber`, `businessRegistrationType`, and\
13900+
\ `businessRegistrationIssuingCountry`. \nSubmissions using `SOLE_PROPRIETOR`\
13901+
\ must _omit_ `businessRegistrationNumber`, `businessRegistrationType`, and\
13902+
\ `businessRegistrationIssuingCountry`. Failure to adhere to these constraints\
13903+
\ will result in a 400 Bad Request rejection.**\n"
1391513904
enum:
1391613905
- SOLE_PROPRIETOR
1391713906
- PRIVATE_PROFIT
@@ -14044,15 +14033,42 @@ components:
1404414033
description: |
1404514034
Government-issued business identifying number.
1404614035

14047-
**Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
14036+
**Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.**
1404814037
example: 12-3456789
1404914038
maxLength: 500
1405014039
nullable: true
1405114040
type: string
1405214041
businessRegistrationType:
1405314042
$ref: "#/components/schemas/businessRegistrationTypeEnum"
1405414043
businessRegistrationIssuingCountry:
14055-
$ref: "#/components/schemas/businessRegistrationIssuingCountryEnum"
14044+
description: |-
14045+
The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged.
14046+
14047+
**Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
14048+
14049+
| Registration Type | Supported Countries |
14050+
|----------------------|------------------------------------|
14051+
| EIN | USA |
14052+
| CBN | CAN |
14053+
| NEQ | CAN |
14054+
| PROVINCIAL_NUMBER | CAN |
14055+
| CRN | GBR, HKG |
14056+
| VAT | GBR, IRL, BRA, NLD |
14057+
| ACN | AUS |
14058+
| ABN | AUS |
14059+
| BRN | HKG |
14060+
| SIREN | FRA |
14061+
| SIRET | FRA |
14062+
| NZBN | NZL |
14063+
| UST_IDNR | DEU |
14064+
| CIF | ESP |
14065+
| NIF | ESP |
14066+
| CNPJ | BRA |
14067+
| UID | CHE |
14068+
| OTHER | Must Provide Country Code |
14069+
example: USA
14070+
nullable: true
14071+
type: string
1405614072
businessEntityType:
1405714073
$ref: "#/components/schemas/businessEntityTypeEnum"
1405814074
helpMessageResponse:
@@ -14154,7 +14170,7 @@ components:
1415414170
description: |
1415514171
Government-issued business identifying number.
1415614172

14157-
**Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
14173+
**Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.**
1415814174
example: 12-3456789
1415914175
maxLength: 500
1416014176
nullable: true
@@ -14164,7 +14180,34 @@ components:
1416414180
businessEntityType:
1416514181
$ref: "#/components/schemas/businessEntityTypeEnum"
1416614182
businessRegistrationIssuingCountry:
14167-
$ref: "#/components/schemas/businessRegistrationIssuingCountryEnum"
14183+
description: |-
14184+
The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged.
14185+
14186+
**Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
14187+
14188+
| Registration Type | Supported Countries |
14189+
|----------------------|------------------------------------|
14190+
| EIN | USA |
14191+
| CBN | CAN |
14192+
| NEQ | CAN |
14193+
| PROVINCIAL_NUMBER | CAN |
14194+
| CRN | GBR, HKG |
14195+
| VAT | GBR, IRL, BRA, NLD |
14196+
| ACN | AUS |
14197+
| ABN | AUS |
14198+
| BRN | HKG |
14199+
| SIREN | FRA |
14200+
| SIRET | FRA |
14201+
| NZBN | NZL |
14202+
| UST_IDNR | DEU |
14203+
| CIF | ESP |
14204+
| NIF | ESP |
14205+
| CNPJ | BRA |
14206+
| UID | CHE |
14207+
| OTHER | Must Provide Country Code |
14208+
example: USA
14209+
nullable: true
14210+
type: string
1416814211
helpMessageResponse:
1416914212
description: A message that gets sent to users requesting help.
1417014213
example: Please contact support for assistance.
@@ -15008,15 +15051,42 @@ components:
1500815051
description: |
1500915052
Government-issued business identifying number.
1501015053

15011-
**Note:** If this field is provided, it is strongly recommended to also provide `businessRegistrationType` and `businessRegistrationIssuingCountry`. Submissions missing these fields have a high likelihood of rejection.
15054+
**Note: As of October 19th, 2026 this field will be required when `businessEntityType` is _not_ `SOLE_PROPRIETOR`. If this field is provided, `businessRegistrationType` and `businessRegistrationIssuingCountry` are also required.**
1501215055
example: 12-3456789
1501315056
maxLength: 500
1501415057
nullable: true
1501515058
type: string
1501615059
businessRegistrationType:
1501715060
$ref: "#/components/schemas/businessRegistrationTypeEnum"
1501815061
businessRegistrationIssuingCountry:
15019-
$ref: "#/components/schemas/businessRegistrationIssuingCountryEnum"
15062+
description: |-
15063+
The country issuing the business registration in ISO-3166-1 alpha-3 format. Alpha-2 format is accepted by the API, but alpha-3 is highly encouraged.
15064+
15065+
**Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.**
15066+
15067+
| Registration Type | Supported Countries |
15068+
|----------------------|------------------------------------|
15069+
| EIN | USA |
15070+
| CBN | CAN |
15071+
| NEQ | CAN |
15072+
| PROVINCIAL_NUMBER | CAN |
15073+
| CRN | GBR, HKG |
15074+
| VAT | GBR, IRL, BRA, NLD |
15075+
| ACN | AUS |
15076+
| ABN | AUS |
15077+
| BRN | HKG |
15078+
| SIREN | FRA |
15079+
| SIRET | FRA |
15080+
| NZBN | NZL |
15081+
| UST_IDNR | DEU |
15082+
| CIF | ESP |
15083+
| NIF | ESP |
15084+
| CNPJ | BRA |
15085+
| UID | CHE |
15086+
| OTHER | Must Provide Country Code |
15087+
example: USA
15088+
nullable: true
15089+
type: string
1502015090
businessEntityType:
1502115091
$ref: "#/components/schemas/businessEntityTypeEnum"
1502215092
type: object

0 commit comments

Comments
 (0)