diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f732b9de..15c18499 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -12,7 +12,6 @@ docs/BlockedWebhook.md docs/BridgeCompleteCallback.md docs/BridgeTargetCompleteCallback.md docs/BusinessEntityTypeEnum.md -docs/BusinessRegistrationIssuingCountryEnum.md docs/BusinessRegistrationTypeEnum.md docs/CallDirectionEnum.md docs/CallRecordingMetadata.md @@ -242,7 +241,6 @@ src/main/java/com/bandwidth/sdk/model/BlockedWebhook.java src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java -src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java src/main/java/com/bandwidth/sdk/model/CallDirectionEnum.java src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java diff --git a/README.md b/README.md index 119e7021..11380861 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,6 @@ Class | Method | HTTP request | Description - [BridgeCompleteCallback](docs/BridgeCompleteCallback.md) - [BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md) - [BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md) - - [BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md) - [BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md) - [CallDirectionEnum](docs/CallDirectionEnum.md) - [CallRecordingMetadata](docs/CallRecordingMetadata.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index bf7ce965..d767ca35 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -295,7 +295,7 @@ paths: If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. - 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-). + 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). operationId: uploadMedia parameters: - description: Your Bandwidth Account ID. @@ -8956,7 +8956,7 @@ components: description: |- The URL of a media attachment. - 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. + 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. example: https://dev.bandwidth.com/images/bandwidth-logo.png format: uri maxLength: 1000 @@ -13832,7 +13832,7 @@ components: description: | Government-issued business identifying number. - **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. + **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.** example: 12-3456789 maxLength: 500 nullable: true @@ -13840,6 +13840,8 @@ components: businessRegistrationTypeEnum: description: | The type of business registration number. + + **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** enum: - EIN - CBN @@ -13862,11 +13864,11 @@ components: example: EIN nullable: true type: string - businessRegistrationIssuingCountryEnum: + businessRegistrationIssuingCountry: description: |- - 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. + 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. - **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`. + **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| @@ -13888,30 +13890,17 @@ components: | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | - enum: - - USA - - CAN - - HKG - - GBR - - IRL - - BRA - - NLD - - AUS - - FRA - - NZL - - DEU - - ESP - - CHE - - CYP - - IND - - CHN - - BGR example: USA - nullable: false + nullable: true type: string businessEntityTypeEnum: - description: | - The type of registered business. + description: "The type of registered business.\n\n**Note: As of October 19th,\ + \ 2026 submissions using a value other than `SOLE_PROPRIETOR` must provide\ + \ a value for `businessRegistrationNumber`, `businessRegistrationType`, and\ + \ `businessRegistrationIssuingCountry`. \nSubmissions using `SOLE_PROPRIETOR`\ + \ must _omit_ `businessRegistrationNumber`, `businessRegistrationType`, and\ + \ `businessRegistrationIssuingCountry`. Failure to adhere to these constraints\ + \ will result in a 400 Bad Request rejection.**\n" enum: - SOLE_PROPRIETOR - PRIVATE_PROFIT @@ -14044,7 +14033,7 @@ components: description: | Government-issued business identifying number. - **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. + **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.** example: 12-3456789 maxLength: 500 nullable: true @@ -14052,7 +14041,34 @@ components: businessRegistrationType: $ref: "#/components/schemas/businessRegistrationTypeEnum" businessRegistrationIssuingCountry: - $ref: "#/components/schemas/businessRegistrationIssuingCountryEnum" + description: |- + 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. + + **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** + + | Registration Type | Supported Countries | + |----------------------|------------------------------------| + | EIN | USA | + | CBN | CAN | + | NEQ | CAN | + | PROVINCIAL_NUMBER | CAN | + | CRN | GBR, HKG | + | VAT | GBR, IRL, BRA, NLD | + | ACN | AUS | + | ABN | AUS | + | BRN | HKG | + | SIREN | FRA | + | SIRET | FRA | + | NZBN | NZL | + | UST_IDNR | DEU | + | CIF | ESP | + | NIF | ESP | + | CNPJ | BRA | + | UID | CHE | + | OTHER | Must Provide Country Code | + example: USA + nullable: true + type: string businessEntityType: $ref: "#/components/schemas/businessEntityTypeEnum" helpMessageResponse: @@ -14154,7 +14170,7 @@ components: description: | Government-issued business identifying number. - **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. + **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.** example: 12-3456789 maxLength: 500 nullable: true @@ -14164,7 +14180,34 @@ components: businessEntityType: $ref: "#/components/schemas/businessEntityTypeEnum" businessRegistrationIssuingCountry: - $ref: "#/components/schemas/businessRegistrationIssuingCountryEnum" + description: |- + 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. + + **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** + + | Registration Type | Supported Countries | + |----------------------|------------------------------------| + | EIN | USA | + | CBN | CAN | + | NEQ | CAN | + | PROVINCIAL_NUMBER | CAN | + | CRN | GBR, HKG | + | VAT | GBR, IRL, BRA, NLD | + | ACN | AUS | + | ABN | AUS | + | BRN | HKG | + | SIREN | FRA | + | SIRET | FRA | + | NZBN | NZL | + | UST_IDNR | DEU | + | CIF | ESP | + | NIF | ESP | + | CNPJ | BRA | + | UID | CHE | + | OTHER | Must Provide Country Code | + example: USA + nullable: true + type: string helpMessageResponse: description: A message that gets sent to users requesting help. example: Please contact support for assistance. @@ -15008,7 +15051,7 @@ components: description: | Government-issued business identifying number. - **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. + **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.** example: 12-3456789 maxLength: 500 nullable: true @@ -15016,7 +15059,34 @@ components: businessRegistrationType: $ref: "#/components/schemas/businessRegistrationTypeEnum" businessRegistrationIssuingCountry: - $ref: "#/components/schemas/businessRegistrationIssuingCountryEnum" + description: |- + 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. + + **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** + + | Registration Type | Supported Countries | + |----------------------|------------------------------------| + | EIN | USA | + | CBN | CAN | + | NEQ | CAN | + | PROVINCIAL_NUMBER | CAN | + | CRN | GBR, HKG | + | VAT | GBR, IRL, BRA, NLD | + | ACN | AUS | + | ABN | AUS | + | BRN | HKG | + | SIREN | FRA | + | SIRET | FRA | + | NZBN | NZL | + | UST_IDNR | DEU | + | CIF | ESP | + | NIF | ESP | + | CNPJ | BRA | + | UID | CHE | + | OTHER | Must Provide Country Code | + example: USA + nullable: true + type: string businessEntityType: $ref: "#/components/schemas/businessEntityTypeEnum" type: object diff --git a/bandwidth.yml b/bandwidth.yml index d3f8539c..835ec5a9 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -95,8 +95,8 @@ paths: under this account, the previous file will be overwritten. - 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-). + 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). operationId: uploadMedia tags: - Media @@ -2255,8 +2255,8 @@ components: 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) + fail, see more at [Bandwidth + Support](https://www.bandwidth.com/support/en/articles/12823216-what-are-the-mms-file-size-limits) for more details. example: https://dev.bandwidth.com/images/bandwidth-logo.png maxLength: 1000 @@ -5887,17 +5887,21 @@ components: Government-issued business identifying number. - **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. + **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.** nullable: true maxLength: 500 example: 12-3456789 businessRegistrationTypeEnum: type: string - description: | + description: > The type of business registration number. + + + **Note: As of October 19th, 2026 this field will be required when + `businessRegistrationNumber` is provided.** enum: - EIN - CBN @@ -5919,20 +5923,16 @@ components: - OTHER example: EIN nullable: true - businessRegistrationIssuingCountryEnum: + businessRegistrationIssuingCountry: type: string description: >- 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. + format. Alpha-2 format is accepted by the API, but alpha-3 is highly + encouraged. - **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`. + **Note: As of October 19th, 2026 this field will be required when + `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | @@ -5974,30 +5974,22 @@ components: | UID | CHE | | OTHER | Must Provide Country Code | - enum: - - USA - - CAN - - HKG - - GBR - - IRL - - BRA - - NLD - - AUS - - FRA - - NZL - - DEU - - ESP - - CHE - - CYP - - IND - - CHN - - BGR example: USA - nullable: false + nullable: true businessEntityTypeEnum: type: string - description: | + description: > The type of registered business. + + + **Note: As of October 19th, 2026 submissions using a value other than + `SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`, + `businessRegistrationType`, and `businessRegistrationIssuingCountry`. + + Submissions using `SOLE_PROPRIETOR` must _omit_ + `businessRegistrationNumber`, `businessRegistrationType`, and + `businessRegistrationIssuingCountry`. Failure to adhere to these + constraints will result in a 400 Bad Request rejection.** enum: - SOLE_PROPRIETOR - PRIVATE_PROFIT @@ -6106,7 +6098,7 @@ components: businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' businessRegistrationIssuingCountry: - $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' + $ref: '#/components/schemas/businessRegistrationIssuingCountry' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' helpMessageResponse: @@ -6161,7 +6153,7 @@ components: businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' businessRegistrationIssuingCountry: - $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' + $ref: '#/components/schemas/businessRegistrationIssuingCountry' helpMessageResponse: $ref: '#/components/schemas/helpMessageResponse' ageGatedContent: @@ -6657,13 +6649,15 @@ components: description: Government-issued business identifying number. businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' + description: The type of business registration number. businessRegistrationIssuingCountry: - $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' + $ref: '#/components/schemas/businessRegistrationIssuingCountry' description: >- The country issuing the business registration in ISO-3166-1 alpha-3 format. businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' + description: The type of registered business. tfvStatusEnum: type: string enum: diff --git a/docs/BusinessRegistrationIssuingCountryEnum.md b/docs/BusinessRegistrationIssuingCountryEnum.md deleted file mode 100644 index d05880f4..00000000 --- a/docs/BusinessRegistrationIssuingCountryEnum.md +++ /dev/null @@ -1,43 +0,0 @@ - - -# BusinessRegistrationIssuingCountryEnum - -## Enum - - -* `USA` (value: `"USA"`) - -* `CAN` (value: `"CAN"`) - -* `HKG` (value: `"HKG"`) - -* `GBR` (value: `"GBR"`) - -* `IRL` (value: `"IRL"`) - -* `BRA` (value: `"BRA"`) - -* `NLD` (value: `"NLD"`) - -* `AUS` (value: `"AUS"`) - -* `FRA` (value: `"FRA"`) - -* `NZL` (value: `"NZL"`) - -* `DEU` (value: `"DEU"`) - -* `ESP` (value: `"ESP"`) - -* `CHE` (value: `"CHE"`) - -* `CYP` (value: `"CYP"`) - -* `IND` (value: `"IND"`) - -* `CHN` (value: `"CHN"`) - -* `BGR` (value: `"BGR"`) - - - diff --git a/docs/MediaApi.md b/docs/MediaApi.md index 4a378ea0..d5cef70d 100644 --- a/docs/MediaApi.md +++ b/docs/MediaApi.md @@ -261,7 +261,7 @@ public class Example { Upload Media -Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. 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-). +Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. 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). ### Example ```java diff --git a/docs/MmsMessageContentFile.md b/docs/MmsMessageContentFile.md index 3518fcae..3dcebc94 100644 --- a/docs/MmsMessageContentFile.md +++ b/docs/MmsMessageContentFile.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**fileUrl** | **URI** | The URL of a media attachment. 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. | | +|**fileUrl** | **URI** | The URL of a media attachment. 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. | | diff --git a/docs/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index 0e91dfd5..5f83add9 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -19,9 +19,9 @@ |**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | |**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | |**businessDba** | **String** | The company 'Doing Business As'. | [optional] | -|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **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. | [optional] | +|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **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.** | [optional] | |**businessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] | -|**businessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] | +|**businessRegistrationIssuingCountry** | **String** | 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. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | | [optional] | |**businessEntityType** | **BusinessEntityTypeEnum** | | [optional] | diff --git a/docs/VerificationRequest.md b/docs/VerificationRequest.md index 3e7120b0..172598b3 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -20,9 +20,9 @@ |**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | |**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | |**businessDba** | **String** | The company 'Doing Business As'. | [optional] | -|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **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. | [optional] | +|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **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.** | [optional] | |**businessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] | -|**businessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] | +|**businessRegistrationIssuingCountry** | **String** | 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. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | | [optional] | |**businessEntityType** | **BusinessEntityTypeEnum** | | | |**helpMessageResponse** | **String** | A message that gets sent to users requesting help. | [optional] | |**ageGatedContent** | **Boolean** | Indicates whether the content is age-gated. | [optional] | diff --git a/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index f110bbb2..5e588e93 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -19,10 +19,10 @@ |**privacyPolicyUrl** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] | |**termsAndConditionsUrl** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] | |**businessDba** | **String** | The company 'Doing Business As'. | [optional] | -|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **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. | [optional] | +|**businessRegistrationNumber** | **String** | Government-issued business identifying number. **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.** | [optional] | |**businessRegistrationType** | **BusinessRegistrationTypeEnum** | | [optional] | |**businessEntityType** | **BusinessEntityTypeEnum** | | [optional] | -|**businessRegistrationIssuingCountry** | **BusinessRegistrationIssuingCountryEnum** | | [optional] | +|**businessRegistrationIssuingCountry** | **String** | 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. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | | [optional] | |**helpMessageResponse** | **String** | A message that gets sent to users requesting help. | [optional] | |**ageGatedContent** | **Boolean** | Indicates whether the content is age-gated. | [optional] | |**cvToken** | **String** | The token provided by Campaign Verify to validate your political use case. Only required for 527 political organizations. If you are not a 527 political organization, this field should be omitted. Supplying an empty string will likely result in rejection. | [optional] | diff --git a/src/main/java/com/bandwidth/sdk/api/MediaApi.java b/src/main/java/com/bandwidth/sdk/api/MediaApi.java index 755d07e0..e0737284 100644 --- a/src/main/java/com/bandwidth/sdk/api/MediaApi.java +++ b/src/main/java/com/bandwidth/sdk/api/MediaApi.java @@ -729,7 +729,7 @@ private okhttp3.Call uploadMediaValidateBeforeCall(@javax.annotation.Nonnull Str /** * Upload Media - * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. 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-). + * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. 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). * @param accountId Your Bandwidth Account ID. (required) * @param mediaId Media ID to retrieve. (required) * @param body (required) @@ -757,7 +757,7 @@ public void uploadMedia(@javax.annotation.Nonnull String accountId, @javax.annot /** * Upload Media - * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. 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-). + * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. 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). * @param accountId Your Bandwidth Account ID. (required) * @param mediaId Media ID to retrieve. (required) * @param body (required) @@ -787,7 +787,7 @@ public ApiResponse uploadMediaWithHttpInfo(@javax.annotation.Nonnull Strin /** * Upload Media (asynchronously) - * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. 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-). + * Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. 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). * @param accountId Your Bandwidth Account ID. (required) * @param mediaId Media ID to retrieve. (required) * @param body (required) diff --git a/src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java b/src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java index a8c8b883..f35ff3df 100644 --- a/src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/BusinessEntityTypeEnum.java @@ -26,7 +26,7 @@ import com.google.gson.stream.JsonWriter; /** - * The type of registered business. + * The type of registered business. **Note: As of October 19th, 2026 submissions using a value other than `SOLE_PROPRIETOR` must provide a value for `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Submissions using `SOLE_PROPRIETOR` must _omit_ `businessRegistrationNumber`, `businessRegistrationType`, and `businessRegistrationIssuingCountry`. Failure to adhere to these constraints will result in a 400 Bad Request rejection.** */ @JsonAdapter(BusinessEntityTypeEnum.Adapter.class) public enum BusinessEntityTypeEnum { diff --git a/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java b/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java deleted file mode 100644 index c1526c19..00000000 --- a/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationIssuingCountryEnum.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Bandwidth - * Bandwidth's Communication APIs - * - * The version of the OpenAPI document: 1.0.0 - * Contact: letstalk@bandwidth.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.bandwidth.sdk.model; - -import java.util.Objects; -import java.util.Locale; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; -import java.util.Locale; -import com.google.gson.TypeAdapter; -import com.google.gson.JsonElement; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * 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. **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`. | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | - */ -@JsonAdapter(BusinessRegistrationIssuingCountryEnum.Adapter.class) -public enum BusinessRegistrationIssuingCountryEnum { - - USA("USA"), - - CAN("CAN"), - - HKG("HKG"), - - GBR("GBR"), - - IRL("IRL"), - - BRA("BRA"), - - NLD("NLD"), - - AUS("AUS"), - - FRA("FRA"), - - NZL("NZL"), - - DEU("DEU"), - - ESP("ESP"), - - CHE("CHE"), - - CYP("CYP"), - - IND("IND"), - - CHN("CHN"), - - BGR("BGR"); - - private String value; - - BusinessRegistrationIssuingCountryEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static BusinessRegistrationIssuingCountryEnum fromValue(String value) { - for (BusinessRegistrationIssuingCountryEnum b : BusinessRegistrationIssuingCountryEnum.values()) { - if (b.value.equalsIgnoreCase(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final BusinessRegistrationIssuingCountryEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public BusinessRegistrationIssuingCountryEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return BusinessRegistrationIssuingCountryEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - BusinessRegistrationIssuingCountryEnum.fromValue(value); - } -} - diff --git a/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java b/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java index 44ce104e..bebdfc67 100644 --- a/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java +++ b/src/main/java/com/bandwidth/sdk/model/BusinessRegistrationTypeEnum.java @@ -26,7 +26,7 @@ import com.google.gson.stream.JsonWriter; /** - * The type of business registration number. + * The type of business registration number. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** */ @JsonAdapter(BusinessRegistrationTypeEnum.Adapter.class) public enum BusinessRegistrationTypeEnum { diff --git a/src/main/java/com/bandwidth/sdk/model/MmsMessageContentFile.java b/src/main/java/com/bandwidth/sdk/model/MmsMessageContentFile.java index 8c423a31..491b7e4b 100644 --- a/src/main/java/com/bandwidth/sdk/model/MmsMessageContentFile.java +++ b/src/main/java/com/bandwidth/sdk/model/MmsMessageContentFile.java @@ -67,7 +67,7 @@ public MmsMessageContentFile fileUrl(@javax.annotation.Nonnull URI fileUrl) { } /** - * The URL of a media attachment. 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. + * The URL of a media attachment. 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. * @return fileUrl */ @javax.annotation.Nonnull diff --git a/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java b/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java index c0aa2115..378e66b6 100644 --- a/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/TfvSubmissionInfo.java @@ -17,7 +17,6 @@ import java.util.Locale; import com.bandwidth.sdk.model.Address; import com.bandwidth.sdk.model.BusinessEntityTypeEnum; -import com.bandwidth.sdk.model.BusinessRegistrationIssuingCountryEnum; import com.bandwidth.sdk.model.BusinessRegistrationTypeEnum; import com.bandwidth.sdk.model.Contact; import com.bandwidth.sdk.model.OptInWorkflow; @@ -132,7 +131,7 @@ public class TfvSubmissionInfo { public static final String SERIALIZED_NAME_BUSINESS_REGISTRATION_ISSUING_COUNTRY = "businessRegistrationIssuingCountry"; @SerializedName(SERIALIZED_NAME_BUSINESS_REGISTRATION_ISSUING_COUNTRY) @javax.annotation.Nullable - private BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry; + private String businessRegistrationIssuingCountry; public static final String SERIALIZED_NAME_BUSINESS_ENTITY_TYPE = "businessEntityType"; @SerializedName(SERIALIZED_NAME_BUSINESS_ENTITY_TYPE) @@ -378,7 +377,7 @@ public TfvSubmissionInfo businessRegistrationNumber(@javax.annotation.Nullable S } /** - * Government-issued business identifying number. **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. + * Government-issued business identifying number. **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.** * @return businessRegistrationNumber */ @javax.annotation.Nullable @@ -410,21 +409,21 @@ public void setBusinessRegistrationType(@javax.annotation.Nullable BusinessRegis } - public TfvSubmissionInfo businessRegistrationIssuingCountry(@javax.annotation.Nullable BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry) { + public TfvSubmissionInfo businessRegistrationIssuingCountry(@javax.annotation.Nullable String businessRegistrationIssuingCountry) { this.businessRegistrationIssuingCountry = businessRegistrationIssuingCountry; return this; } /** - * Get businessRegistrationIssuingCountry + * 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. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | * @return businessRegistrationIssuingCountry */ @javax.annotation.Nullable - public BusinessRegistrationIssuingCountryEnum getBusinessRegistrationIssuingCountry() { + public String getBusinessRegistrationIssuingCountry() { return businessRegistrationIssuingCountry; } - public void setBusinessRegistrationIssuingCountry(@javax.annotation.Nullable BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry) { + public void setBusinessRegistrationIssuingCountry(@javax.annotation.Nullable String businessRegistrationIssuingCountry) { this.businessRegistrationIssuingCountry = businessRegistrationIssuingCountry; } @@ -641,9 +640,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("businessRegistrationType") != null && !jsonObj.get("businessRegistrationType").isJsonNull()) { BusinessRegistrationTypeEnum.validateJsonElement(jsonObj.get("businessRegistrationType")); } - // validate the optional field `businessRegistrationIssuingCountry` - if (jsonObj.get("businessRegistrationIssuingCountry") != null && !jsonObj.get("businessRegistrationIssuingCountry").isJsonNull()) { - BusinessRegistrationIssuingCountryEnum.validateJsonElement(jsonObj.get("businessRegistrationIssuingCountry")); + if ((jsonObj.get("businessRegistrationIssuingCountry") != null && !jsonObj.get("businessRegistrationIssuingCountry").isJsonNull()) && !jsonObj.get("businessRegistrationIssuingCountry").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `businessRegistrationIssuingCountry` to be a primitive type in the JSON string but got `%s`", jsonObj.get("businessRegistrationIssuingCountry").toString())); } // validate the optional field `businessEntityType` if (jsonObj.get("businessEntityType") != null && !jsonObj.get("businessEntityType").isJsonNull()) { diff --git a/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java b/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java index 8bd02932..579a5638 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationRequest.java @@ -17,7 +17,6 @@ import java.util.Locale; import com.bandwidth.sdk.model.Address; import com.bandwidth.sdk.model.BusinessEntityTypeEnum; -import com.bandwidth.sdk.model.BusinessRegistrationIssuingCountryEnum; import com.bandwidth.sdk.model.BusinessRegistrationTypeEnum; import com.bandwidth.sdk.model.Contact; import com.bandwidth.sdk.model.OptInWorkflow; @@ -139,7 +138,7 @@ public class VerificationRequest { public static final String SERIALIZED_NAME_BUSINESS_REGISTRATION_ISSUING_COUNTRY = "businessRegistrationIssuingCountry"; @SerializedName(SERIALIZED_NAME_BUSINESS_REGISTRATION_ISSUING_COUNTRY) @javax.annotation.Nullable - private BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry; + private String businessRegistrationIssuingCountry; public static final String SERIALIZED_NAME_BUSINESS_ENTITY_TYPE = "businessEntityType"; @SerializedName(SERIALIZED_NAME_BUSINESS_ENTITY_TYPE) @@ -427,7 +426,7 @@ public VerificationRequest businessRegistrationNumber(@javax.annotation.Nullable } /** - * Government-issued business identifying number. **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. + * Government-issued business identifying number. **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.** * @return businessRegistrationNumber */ @javax.annotation.Nullable @@ -459,21 +458,21 @@ public void setBusinessRegistrationType(@javax.annotation.Nullable BusinessRegis } - public VerificationRequest businessRegistrationIssuingCountry(@javax.annotation.Nullable BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry) { + public VerificationRequest businessRegistrationIssuingCountry(@javax.annotation.Nullable String businessRegistrationIssuingCountry) { this.businessRegistrationIssuingCountry = businessRegistrationIssuingCountry; return this; } /** - * Get businessRegistrationIssuingCountry + * 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. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | * @return businessRegistrationIssuingCountry */ @javax.annotation.Nullable - public BusinessRegistrationIssuingCountryEnum getBusinessRegistrationIssuingCountry() { + public String getBusinessRegistrationIssuingCountry() { return businessRegistrationIssuingCountry; } - public void setBusinessRegistrationIssuingCountry(@javax.annotation.Nullable BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry) { + public void setBusinessRegistrationIssuingCountry(@javax.annotation.Nullable String businessRegistrationIssuingCountry) { this.businessRegistrationIssuingCountry = businessRegistrationIssuingCountry; } @@ -762,9 +761,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("businessRegistrationType") != null && !jsonObj.get("businessRegistrationType").isJsonNull()) { BusinessRegistrationTypeEnum.validateJsonElement(jsonObj.get("businessRegistrationType")); } - // validate the optional field `businessRegistrationIssuingCountry` - if (jsonObj.get("businessRegistrationIssuingCountry") != null && !jsonObj.get("businessRegistrationIssuingCountry").isJsonNull()) { - BusinessRegistrationIssuingCountryEnum.validateJsonElement(jsonObj.get("businessRegistrationIssuingCountry")); + if ((jsonObj.get("businessRegistrationIssuingCountry") != null && !jsonObj.get("businessRegistrationIssuingCountry").isJsonNull()) && !jsonObj.get("businessRegistrationIssuingCountry").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `businessRegistrationIssuingCountry` to be a primitive type in the JSON string but got `%s`", jsonObj.get("businessRegistrationIssuingCountry").toString())); } // validate the required field `businessEntityType` BusinessEntityTypeEnum.validateJsonElement(jsonObj.get("businessEntityType")); diff --git a/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java b/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java index 27880f29..f5a7917a 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerificationUpdateRequest.java @@ -17,7 +17,6 @@ import java.util.Locale; import com.bandwidth.sdk.model.Address; import com.bandwidth.sdk.model.BusinessEntityTypeEnum; -import com.bandwidth.sdk.model.BusinessRegistrationIssuingCountryEnum; import com.bandwidth.sdk.model.BusinessRegistrationTypeEnum; import com.bandwidth.sdk.model.Contact; import com.bandwidth.sdk.model.OptInWorkflow; @@ -137,7 +136,7 @@ public class VerificationUpdateRequest { public static final String SERIALIZED_NAME_BUSINESS_REGISTRATION_ISSUING_COUNTRY = "businessRegistrationIssuingCountry"; @SerializedName(SERIALIZED_NAME_BUSINESS_REGISTRATION_ISSUING_COUNTRY) @javax.annotation.Nullable - private BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry; + private String businessRegistrationIssuingCountry; public static final String SERIALIZED_NAME_HELP_MESSAGE_RESPONSE = "helpMessageResponse"; @SerializedName(SERIALIZED_NAME_HELP_MESSAGE_RESPONSE) @@ -393,7 +392,7 @@ public VerificationUpdateRequest businessRegistrationNumber(@javax.annotation.Nu } /** - * Government-issued business identifying number. **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. + * Government-issued business identifying number. **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.** * @return businessRegistrationNumber */ @javax.annotation.Nullable @@ -444,21 +443,21 @@ public void setBusinessEntityType(@javax.annotation.Nullable BusinessEntityTypeE } - public VerificationUpdateRequest businessRegistrationIssuingCountry(@javax.annotation.Nullable BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry) { + public VerificationUpdateRequest businessRegistrationIssuingCountry(@javax.annotation.Nullable String businessRegistrationIssuingCountry) { this.businessRegistrationIssuingCountry = businessRegistrationIssuingCountry; return this; } /** - * Get businessRegistrationIssuingCountry + * 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. **Note: As of October 19th, 2026 this field will be required when `businessRegistrationNumber` is provided.** | Registration Type | Supported Countries | |----------------------|------------------------------------| | EIN | USA | | CBN | CAN | | NEQ | CAN | | PROVINCIAL_NUMBER | CAN | | CRN | GBR, HKG | | VAT | GBR, IRL, BRA, NLD | | ACN | AUS | | ABN | AUS | | BRN | HKG | | SIREN | FRA | | SIRET | FRA | | NZBN | NZL | | UST_IDNR | DEU | | CIF | ESP | | NIF | ESP | | CNPJ | BRA | | UID | CHE | | OTHER | Must Provide Country Code | * @return businessRegistrationIssuingCountry */ @javax.annotation.Nullable - public BusinessRegistrationIssuingCountryEnum getBusinessRegistrationIssuingCountry() { + public String getBusinessRegistrationIssuingCountry() { return businessRegistrationIssuingCountry; } - public void setBusinessRegistrationIssuingCountry(@javax.annotation.Nullable BusinessRegistrationIssuingCountryEnum businessRegistrationIssuingCountry) { + public void setBusinessRegistrationIssuingCountry(@javax.annotation.Nullable String businessRegistrationIssuingCountry) { this.businessRegistrationIssuingCountry = businessRegistrationIssuingCountry; } @@ -724,9 +723,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("businessEntityType") != null && !jsonObj.get("businessEntityType").isJsonNull()) { BusinessEntityTypeEnum.validateJsonElement(jsonObj.get("businessEntityType")); } - // validate the optional field `businessRegistrationIssuingCountry` - if (jsonObj.get("businessRegistrationIssuingCountry") != null && !jsonObj.get("businessRegistrationIssuingCountry").isJsonNull()) { - BusinessRegistrationIssuingCountryEnum.validateJsonElement(jsonObj.get("businessRegistrationIssuingCountry")); + if ((jsonObj.get("businessRegistrationIssuingCountry") != null && !jsonObj.get("businessRegistrationIssuingCountry").isJsonNull()) && !jsonObj.get("businessRegistrationIssuingCountry").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `businessRegistrationIssuingCountry` to be a primitive type in the JSON string but got `%s`", jsonObj.get("businessRegistrationIssuingCountry").toString())); } if ((jsonObj.get("helpMessageResponse") != null && !jsonObj.get("helpMessageResponse").isJsonNull()) && !jsonObj.get("helpMessageResponse").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `helpMessageResponse` to be a primitive type in the JSON string but got `%s`", jsonObj.get("helpMessageResponse").toString())); diff --git a/src/test/java/com/bandwidth/sdk/unit/api/TollFreeVerificationApiTest.java b/src/test/java/com/bandwidth/sdk/unit/api/TollFreeVerificationApiTest.java index 38622c6c..3aa6b326 100644 --- a/src/test/java/com/bandwidth/sdk/unit/api/TollFreeVerificationApiTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/api/TollFreeVerificationApiTest.java @@ -23,7 +23,6 @@ import com.bandwidth.sdk.auth.HttpBasicAuth; import com.bandwidth.sdk.model.Address; import com.bandwidth.sdk.model.BusinessEntityTypeEnum; -import com.bandwidth.sdk.model.BusinessRegistrationIssuingCountryEnum; import com.bandwidth.sdk.model.BusinessRegistrationTypeEnum; import com.bandwidth.sdk.model.Contact; import com.bandwidth.sdk.model.LinksObject; @@ -198,7 +197,7 @@ public void requestTollFreeVerificationTest() throws ApiException { .businessRegistrationNumber("businessRegistrationNumber") .businessRegistrationType(BusinessRegistrationTypeEnum.EIN) .businessEntityType(BusinessEntityTypeEnum.PRIVATE_PROFIT) - .businessRegistrationIssuingCountry(BusinessRegistrationIssuingCountryEnum.USA) + .businessRegistrationIssuingCountry("USA") .helpMessageResponse("helpMessageResponse") .ageGatedContent(true) .cvToken("cvToken"); diff --git a/src/test/java/com/bandwidth/sdk/unit/models/BusinessRegistrationIssuingCountryEnumTest.java b/src/test/java/com/bandwidth/sdk/unit/models/BusinessRegistrationIssuingCountryEnumTest.java deleted file mode 100644 index a3fc6b88..00000000 --- a/src/test/java/com/bandwidth/sdk/unit/models/BusinessRegistrationIssuingCountryEnumTest.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Bandwidth - * Bandwidth's Communication APIs - * - * The version of the OpenAPI document: 1.0.0 - * Contact: letstalk@bandwidth.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.bandwidth.sdk.unit.models; - -import org.junit.jupiter.api.Test; - -import com.bandwidth.sdk.model.BusinessRegistrationIssuingCountryEnum; - -import static org.hamcrest.CoreMatchers.equalTo; -import static org.hamcrest.MatcherAssert.assertThat; - -/** - * Model tests for BusinessRegistrationIssuingCountryEnum - */ -public class BusinessRegistrationIssuingCountryEnumTest { - /** - * Model tests for BusinessRegistrationIssuingCountryEnum - */ - @Test - public void testBusinessRegistrationIssuingCountryEnum() { - assertThat(BusinessRegistrationIssuingCountryEnum.USA.toString(), equalTo("USA")); - assertThat(BusinessRegistrationIssuingCountryEnum.CAN.toString(), equalTo("CAN")); - assertThat(BusinessRegistrationIssuingCountryEnum.HKG.toString(), equalTo("HKG")); - assertThat(BusinessRegistrationIssuingCountryEnum.GBR.toString(), equalTo("GBR")); - assertThat(BusinessRegistrationIssuingCountryEnum.IRL.toString(), equalTo("IRL")); - assertThat(BusinessRegistrationIssuingCountryEnum.BRA.toString(), equalTo("BRA")); - assertThat(BusinessRegistrationIssuingCountryEnum.NLD.toString(), equalTo("NLD")); - assertThat(BusinessRegistrationIssuingCountryEnum.AUS.toString(), equalTo("AUS")); - assertThat(BusinessRegistrationIssuingCountryEnum.FRA.toString(), equalTo("FRA")); - assertThat(BusinessRegistrationIssuingCountryEnum.NZL.toString(), equalTo("NZL")); - assertThat(BusinessRegistrationIssuingCountryEnum.DEU.toString(), equalTo("DEU")); - assertThat(BusinessRegistrationIssuingCountryEnum.ESP.toString(), equalTo("ESP")); - assertThat(BusinessRegistrationIssuingCountryEnum.CHE.toString(), equalTo("CHE")); - assertThat(BusinessRegistrationIssuingCountryEnum.CYP.toString(), equalTo("CYP")); - assertThat(BusinessRegistrationIssuingCountryEnum.IND.toString(), equalTo("IND")); - assertThat(BusinessRegistrationIssuingCountryEnum.CHN.toString(), equalTo("CHN")); - assertThat(BusinessRegistrationIssuingCountryEnum.BGR.toString(), equalTo("BGR")); - } - -} diff --git a/src/test/java/com/bandwidth/sdk/unit/models/TfvSubmissionInfoTest.java b/src/test/java/com/bandwidth/sdk/unit/models/TfvSubmissionInfoTest.java index 6dadb72c..85f6866a 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/TfvSubmissionInfoTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/TfvSubmissionInfoTest.java @@ -43,7 +43,8 @@ public class TfvSubmissionInfoTest { .businessDba("businessDba") .businessRegistrationNumber("businessRegistrationNumber") .businessRegistrationType(BusinessRegistrationTypeEnum.EIN) - .businessEntityType(BusinessEntityTypeEnum.PRIVATE_PROFIT); + .businessEntityType(BusinessEntityTypeEnum.PRIVATE_PROFIT) + .businessRegistrationIssuingCountry("USA"); /** * Model tests for TfvSubmissionInfo @@ -172,4 +173,12 @@ public void businessEntityTypeTest() { assertThat(model.getBusinessEntityType(), instanceOf(BusinessEntityTypeEnum.class)); } + /** + * Test the property 'businessRegistrationIssuingCountry' + */ + @Test + public void businessRegistrationIssuingCountryTest() { + assertThat(model.getBusinessRegistrationIssuingCountry(), instanceOf(String.class)); + } + } diff --git a/src/test/java/com/bandwidth/sdk/unit/models/VerificationRequestTest.java b/src/test/java/com/bandwidth/sdk/unit/models/VerificationRequestTest.java index ad9bbcfc..c497f0a7 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/VerificationRequestTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/VerificationRequestTest.java @@ -19,7 +19,6 @@ import com.bandwidth.sdk.model.VerificationRequest; import com.bandwidth.sdk.model.Address; import com.bandwidth.sdk.model.BusinessEntityTypeEnum; -import com.bandwidth.sdk.model.BusinessRegistrationIssuingCountryEnum; import com.bandwidth.sdk.model.BusinessRegistrationTypeEnum; import com.bandwidth.sdk.model.Contact; import com.bandwidth.sdk.model.OptInWorkflow; @@ -48,7 +47,7 @@ public class VerificationRequestTest { .businessRegistrationNumber("businessRegistrationNumber") .businessRegistrationType(BusinessRegistrationTypeEnum.EIN) .businessEntityType(BusinessEntityTypeEnum.PRIVATE_PROFIT) - .businessRegistrationIssuingCountry(BusinessRegistrationIssuingCountryEnum.USA) + .businessRegistrationIssuingCountry("USA") .helpMessageResponse("helpMessageResponse") .ageGatedContent(true) .cvToken("cvToken"); @@ -189,6 +188,14 @@ public void businessEntityTypeTest() { assertThat(model.getBusinessEntityType(), instanceOf(BusinessEntityTypeEnum.class)); } + /** + * Test the property 'businessRegistrationIssuingCountry' + */ + @Test + public void businessRegistrationIssuingCountryTest() { + assertThat(model.getBusinessRegistrationIssuingCountry(), instanceOf(String.class)); + } + /** * Test the property 'helpMessageResponse' */ diff --git a/src/test/java/com/bandwidth/sdk/unit/models/VerificationUpdateRequestTest.java b/src/test/java/com/bandwidth/sdk/unit/models/VerificationUpdateRequestTest.java index a116b6cf..83268057 100644 --- a/src/test/java/com/bandwidth/sdk/unit/models/VerificationUpdateRequestTest.java +++ b/src/test/java/com/bandwidth/sdk/unit/models/VerificationUpdateRequestTest.java @@ -17,7 +17,6 @@ import com.bandwidth.sdk.model.VerificationUpdateRequest; import com.bandwidth.sdk.model.Address; import com.bandwidth.sdk.model.BusinessEntityTypeEnum; -import com.bandwidth.sdk.model.BusinessRegistrationIssuingCountryEnum; import com.bandwidth.sdk.model.BusinessRegistrationTypeEnum; import com.bandwidth.sdk.model.Contact; import com.bandwidth.sdk.model.OptInWorkflow; @@ -45,7 +44,7 @@ public class VerificationUpdateRequestTest { .businessRegistrationNumber("businessRegistrationNumber") .businessRegistrationType(BusinessRegistrationTypeEnum.EIN) .businessEntityType(BusinessEntityTypeEnum.PRIVATE_PROFIT) - .businessRegistrationIssuingCountry(BusinessRegistrationIssuingCountryEnum.USA) + .businessRegistrationIssuingCountry("USA") .helpMessageResponse("helpMessageResponse") .ageGatedContent(true) .cvToken("cvToken"); @@ -178,6 +177,14 @@ public void businessEntityTypeTest() { assertThat(model.getBusinessEntityType(), instanceOf(BusinessEntityTypeEnum.class)); } + /** + * Test the property 'businessRegistrationIssuingCountry' + */ + @Test + public void businessRegistrationIssuingCountryTest() { + assertThat(model.getBusinessRegistrationIssuingCountry(), instanceOf(String.class)); + } + /** * Test the property 'helpMessageResponse' */