diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 665ecea..805e8a2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -24,6 +24,7 @@ docs/BlockedWebhook.md docs/BridgeCompleteCallback.md docs/BridgeTargetCompleteCallback.md docs/BusinessEntityTypeEnum.md +docs/BusinessRegistrationIssuingCountryEnum.md docs/BusinessRegistrationTypeEnum.md docs/CallDirectionEnum.md docs/CallRecordingMetadata.md @@ -213,6 +214,7 @@ models/blocked-webhook.ts models/bridge-complete-callback.ts models/bridge-target-complete-callback.ts models/business-entity-type-enum.ts +models/business-registration-issuing-country-enum.ts models/business-registration-type-enum.ts models/call-direction-enum.ts models/call-recording-metadata.ts diff --git a/README.md b/README.md index 1f44d1e..008a264 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,7 @@ 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/bandwidth.yml b/bandwidth.yml index b4542b7..2b6bdb1 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -5828,38 +5828,106 @@ components: type: string businessRegistrationNumber: type: string - description: >- - US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional - until early 2026. If a value is provided for this field, a value must be - provided for `businessRegistrationType` and `businessEntityType`. - Available starting October 1st, 2025. + description: Government-issued business identifying number. nullable: true maxLength: 500 example: 12-3456789 businessRegistrationTypeEnum: type: string - description: >- - The type of business registration number. Optional until early 2026; - required if `businessRegistrationNumber` is provided. Available starting - October 1st, 2025. + description: The type of business registration number. enum: - EIN - CBN + - NEQ + - PROVINCIAL_NUMBER + - CRN + - VAT + - ACN + - ABN + - BRN + - SIREN + - SIRET + - NZBN + - UST_IDNR + - CIF + - NIF + - CNPJ + - UID + - OTHER nullable: true + businessRegistrationIssuingCountryEnum: + type: string + description: >- + The country issuing the business registration in ISO-3166-1 alpha-3 + format. + + + | 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 | + enum: + - USA + - CAN + - HKG + - GBR + - IRL + - BRA + - NLD + - AUS + - FRA + - NZL + - DEU + - ESP + - CHE + nullable: false businessEntityTypeEnum: type: string description: >- The type of registered business. If no option is applicable, please - provide "SOLE_PROPRIETOR" as a value. Optional until early 2026; - required if `businessRegistrationNumber` is provided. Available starting - October 1st, 2025. + provide "SOLE_PROPRIETOR" as a value. enum: - SOLE_PROPRIETOR - PRIVATE_PROFIT - PUBLIC_PROFIT - NON_PROFIT - GOVERNMENT - nullable: true + nullable: false helpMessageResponse: type: string description: A message that gets sent to users requesting help. @@ -5914,6 +5982,7 @@ components: - useCaseSummary - productionMessageContent - optInWorkflow + - businessEntityType properties: businessAddress: $ref: '#/components/schemas/address' @@ -5958,6 +6027,8 @@ components: $ref: '#/components/schemas/businessRegistrationNumber' businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' helpMessageResponse: @@ -6011,6 +6082,8 @@ components: $ref: '#/components/schemas/businessRegistrationTypeEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' helpMessageResponse: $ref: '#/components/schemas/helpMessageResponse' ageGatedContent: @@ -6503,20 +6576,12 @@ components: $ref: '#/components/schemas/businessDba' businessRegistrationNumber: $ref: '#/components/schemas/businessRegistrationNumber' - description: >- - US Federal Tax ID Number (EIN) or Canada Business Number (CBN). - Available starting October 1st, 2025. businessRegistrationType: $ref: '#/components/schemas/businessRegistrationTypeEnum' - description: >- - The type of business registration number. Available starting October - 1st, 2025. + businessRegistrationIssuingCountry: + $ref: '#/components/schemas/businessRegistrationIssuingCountryEnum' businessEntityType: $ref: '#/components/schemas/businessEntityTypeEnum' - description: >- - The type of registered business. If no option is applicable, please - provide "SOLE_PROPRIETOR" as a value. Available starting October - 1st, 2025. tfvStatusEnum: type: string enum: diff --git a/docs/BusinessEntityTypeEnum.md b/docs/BusinessEntityTypeEnum.md index c624086..9dc7e32 100644 --- a/docs/BusinessEntityTypeEnum.md +++ b/docs/BusinessEntityTypeEnum.md @@ -1,6 +1,6 @@ # BusinessEntityTypeEnum -The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. +The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. ## Enum diff --git a/docs/BusinessRegistrationIssuingCountryEnum.md b/docs/BusinessRegistrationIssuingCountryEnum.md new file mode 100644 index 0000000..f016f0b --- /dev/null +++ b/docs/BusinessRegistrationIssuingCountryEnum.md @@ -0,0 +1,33 @@ +# BusinessRegistrationIssuingCountryEnum + +The country issuing the business registration in ISO-3166-1 alpha-3 format. | 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 | + +## 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'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BusinessRegistrationTypeEnum.md b/docs/BusinessRegistrationTypeEnum.md index f6228fa..bddf103 100644 --- a/docs/BusinessRegistrationTypeEnum.md +++ b/docs/BusinessRegistrationTypeEnum.md @@ -1,6 +1,6 @@ # BusinessRegistrationTypeEnum -The type of business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. +The type of business registration number. ## Enum @@ -8,4 +8,36 @@ The type of business registration number. Optional until early 2026; required if * `Cbn` (value: `'CBN'`) +* `Neq` (value: `'NEQ'`) + +* `ProvincialNumber` (value: `'PROVINCIAL_NUMBER'`) + +* `Crn` (value: `'CRN'`) + +* `Vat` (value: `'VAT'`) + +* `Acn` (value: `'ACN'`) + +* `Abn` (value: `'ABN'`) + +* `Brn` (value: `'BRN'`) + +* `Siren` (value: `'SIREN'`) + +* `Siret` (value: `'SIRET'`) + +* `Nzbn` (value: `'NZBN'`) + +* `UstIdnr` (value: `'UST_IDNR'`) + +* `Cif` (value: `'CIF'`) + +* `Nif` (value: `'NIF'`) + +* `Cnpj` (value: `'CNPJ'`) + +* `Uid` (value: `'UID'`) + +* `Other` (value: `'OTHER'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index e0faaad..c322b77 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -17,8 +17,9 @@ Name | Type | Description | Notes **privacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] [default to undefined] **termsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] [default to undefined] **businessDba** | **string** | The company \'Doing Business As\'. | [optional] [default to undefined] -**businessRegistrationNumber** | **string** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] [default to undefined] +**businessRegistrationNumber** | **string** | Government-issued business identifying number. | [optional] [default to undefined] **businessRegistrationType** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] [default to undefined] +**businessRegistrationIssuingCountry** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] [default to undefined] **businessEntityType** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] [default to undefined] ## Example @@ -41,6 +42,7 @@ const instance: TfvSubmissionInfo = { businessDba, businessRegistrationNumber, businessRegistrationType, + businessRegistrationIssuingCountry, businessEntityType, }; ``` diff --git a/docs/VerificationRequest.md b/docs/VerificationRequest.md index 306b236..8234009 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -18,9 +18,10 @@ Name | Type | Description | Notes **privacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] [default to undefined] **termsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] [default to undefined] **businessDba** | **string** | The company \'Doing Business As\'. | [optional] [default to undefined] -**businessRegistrationNumber** | **string** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] [default to undefined] +**businessRegistrationNumber** | **string** | Government-issued business identifying number. | [optional] [default to undefined] **businessRegistrationType** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] [default to undefined] -**businessEntityType** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] [default to undefined] +**businessRegistrationIssuingCountry** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] [default to undefined] +**businessEntityType** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [default to undefined] **helpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional] [default to undefined] **ageGatedContent** | **boolean** | Indicates whether the content is age-gated. | [optional] [default to undefined] **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] [default to undefined] @@ -46,6 +47,7 @@ const instance: VerificationRequest = { businessDba, businessRegistrationNumber, businessRegistrationType, + businessRegistrationIssuingCountry, businessEntityType, helpMessageResponse, ageGatedContent, diff --git a/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index a920d21..54c4ab9 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -17,9 +17,10 @@ Name | Type | Description | Notes **privacyPolicyUrl** | **string** | The Toll-Free Verification request privacy policy URL. | [optional] [default to undefined] **termsAndConditionsUrl** | **string** | The Toll-Free Verification request terms and conditions policy URL. | [optional] [default to undefined] **businessDba** | **string** | The company \'Doing Business As\'. | [optional] [default to undefined] -**businessRegistrationNumber** | **string** | US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. | [optional] [default to undefined] +**businessRegistrationNumber** | **string** | Government-issued business identifying number. | [optional] [default to undefined] **businessRegistrationType** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] [default to undefined] **businessEntityType** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] [default to undefined] +**businessRegistrationIssuingCountry** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] [default to undefined] **helpMessageResponse** | **string** | A message that gets sent to users requesting help. | [optional] [default to undefined] **ageGatedContent** | **boolean** | Indicates whether the content is age-gated. | [optional] [default to undefined] **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] [default to undefined] @@ -45,6 +46,7 @@ const instance: VerificationUpdateRequest = { businessRegistrationNumber, businessRegistrationType, businessEntityType, + businessRegistrationIssuingCountry, helpMessageResponse, ageGatedContent, cvToken, diff --git a/models/business-entity-type-enum.ts b/models/business-entity-type-enum.ts index 5ec96c1..7e68242 100644 --- a/models/business-entity-type-enum.ts +++ b/models/business-entity-type-enum.ts @@ -15,7 +15,7 @@ /** - * The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + * The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. */ export const BusinessEntityTypeEnum = { diff --git a/models/business-registration-issuing-country-enum.ts b/models/business-registration-issuing-country-enum.ts new file mode 100644 index 0000000..9ea3556 --- /dev/null +++ b/models/business-registration-issuing-country-enum.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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. + */ + + + +/** + * The country issuing the business registration in ISO-3166-1 alpha-3 format. | 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 | + */ + +export const 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' +} as const; + +export type BusinessRegistrationIssuingCountryEnum = typeof BusinessRegistrationIssuingCountryEnum[keyof typeof BusinessRegistrationIssuingCountryEnum]; + + + diff --git a/models/business-registration-type-enum.ts b/models/business-registration-type-enum.ts index 8e81226..2855a3a 100644 --- a/models/business-registration-type-enum.ts +++ b/models/business-registration-type-enum.ts @@ -15,12 +15,28 @@ /** - * The type of business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + * The type of business registration number. */ export const BusinessRegistrationTypeEnum = { Ein: 'EIN', - Cbn: 'CBN' + Cbn: 'CBN', + Neq: 'NEQ', + ProvincialNumber: 'PROVINCIAL_NUMBER', + Crn: 'CRN', + Vat: 'VAT', + Acn: 'ACN', + Abn: 'ABN', + Brn: 'BRN', + Siren: 'SIREN', + Siret: 'SIRET', + Nzbn: 'NZBN', + UstIdnr: 'UST_IDNR', + Cif: 'CIF', + Nif: 'NIF', + Cnpj: 'CNPJ', + Uid: 'UID', + Other: 'OTHER' } as const; export type BusinessRegistrationTypeEnum = typeof BusinessRegistrationTypeEnum[keyof typeof BusinessRegistrationTypeEnum]; diff --git a/models/index.ts b/models/index.ts index 7900f52..fc8c4cf 100644 --- a/models/index.ts +++ b/models/index.ts @@ -7,6 +7,7 @@ export * from './blocked-webhook'; export * from './bridge-complete-callback'; export * from './bridge-target-complete-callback'; export * from './business-entity-type-enum'; +export * from './business-registration-issuing-country-enum'; export * from './business-registration-type-enum'; export * from './call-direction-enum'; export * from './call-recording-metadata'; diff --git a/models/tfv-submission-info.ts b/models/tfv-submission-info.ts index a0840a5..fe685e7 100644 --- a/models/tfv-submission-info.ts +++ b/models/tfv-submission-info.ts @@ -21,6 +21,9 @@ import type { Address } from './address'; import type { BusinessEntityTypeEnum } from './business-entity-type-enum'; // May contain unused imports in some cases // @ts-ignore +import type { BusinessRegistrationIssuingCountryEnum } from './business-registration-issuing-country-enum'; +// May contain unused imports in some cases +// @ts-ignore import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum'; // May contain unused imports in some cases // @ts-ignore @@ -70,11 +73,12 @@ export interface TfvSubmissionInfo { */ 'businessDba'?: string; /** - * US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + * Government-issued business identifying number. */ 'businessRegistrationNumber'?: string | null; 'businessRegistrationType'?: BusinessRegistrationTypeEnum | null; - 'businessEntityType'?: BusinessEntityTypeEnum | null; + 'businessRegistrationIssuingCountry'?: BusinessRegistrationIssuingCountryEnum; + 'businessEntityType'?: BusinessEntityTypeEnum; } diff --git a/models/verification-request.ts b/models/verification-request.ts index c7963e9..a521a7b 100644 --- a/models/verification-request.ts +++ b/models/verification-request.ts @@ -21,6 +21,9 @@ import type { Address } from './address'; import type { BusinessEntityTypeEnum } from './business-entity-type-enum'; // May contain unused imports in some cases // @ts-ignore +import type { BusinessRegistrationIssuingCountryEnum } from './business-registration-issuing-country-enum'; +// May contain unused imports in some cases +// @ts-ignore import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum'; // May contain unused imports in some cases // @ts-ignore @@ -71,11 +74,12 @@ export interface VerificationRequest { */ 'businessDba'?: string; /** - * US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + * Government-issued business identifying number. */ 'businessRegistrationNumber'?: string | null; 'businessRegistrationType'?: BusinessRegistrationTypeEnum | null; - 'businessEntityType'?: BusinessEntityTypeEnum | null; + 'businessRegistrationIssuingCountry'?: BusinessRegistrationIssuingCountryEnum; + 'businessEntityType': BusinessEntityTypeEnum; /** * A message that gets sent to users requesting help. */ diff --git a/models/verification-update-request.ts b/models/verification-update-request.ts index c308ce6..75958e9 100644 --- a/models/verification-update-request.ts +++ b/models/verification-update-request.ts @@ -21,6 +21,9 @@ import type { Address } from './address'; import type { BusinessEntityTypeEnum } from './business-entity-type-enum'; // May contain unused imports in some cases // @ts-ignore +import type { BusinessRegistrationIssuingCountryEnum } from './business-registration-issuing-country-enum'; +// May contain unused imports in some cases +// @ts-ignore import type { BusinessRegistrationTypeEnum } from './business-registration-type-enum'; // May contain unused imports in some cases // @ts-ignore @@ -70,11 +73,12 @@ export interface VerificationUpdateRequest { */ 'businessDba'?: string; /** - * US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + * Government-issued business identifying number. */ 'businessRegistrationNumber'?: string | null; 'businessRegistrationType'?: BusinessRegistrationTypeEnum | null; - 'businessEntityType'?: BusinessEntityTypeEnum | null; + 'businessEntityType'?: BusinessEntityTypeEnum; + 'businessRegistrationIssuingCountry'?: BusinessRegistrationIssuingCountryEnum; /** * A message that gets sent to users requesting help. */ diff --git a/tests/unit/api/toll-free-verification-api.test.ts b/tests/unit/api/toll-free-verification-api.test.ts index cf0f1d3..ec8d049 100644 --- a/tests/unit/api/toll-free-verification-api.test.ts +++ b/tests/unit/api/toll-free-verification-api.test.ts @@ -1,7 +1,7 @@ //@ts-nocheck import { TollFreeVerificationApi } from '../../../api'; import { Configuration } from '../../../configuration'; -import { BusinessEntityTypeEnum, BusinessRegistrationTypeEnum, CallbackTypeEnum, TfvStatusEnum, WebhookSubscriptionTypeEnum } from '../../../models'; +import { BusinessEntityTypeEnum, BusinessRegistrationIssuingCountryEnum, BusinessRegistrationTypeEnum, CallbackTypeEnum, TfvStatusEnum, WebhookSubscriptionTypeEnum } from '../../../models'; describe('TollFreeVerificationApi', () => { const config = new Configuration({ @@ -140,6 +140,7 @@ describe('TollFreeVerificationApi', () => { businessDba: 'businessDba', businessRegistrationNumber: 'businessRegistrationNumber', businessRegistrationType: BusinessRegistrationTypeEnum.Ein, + businessRegistrationIssuingCountry: BusinessRegistrationIssuingCountryEnum.Us, businessEntityType: BusinessEntityTypeEnum.NonProfit, helpMessageResponse: 'helpMessageResponse', ageGatedContent: true, diff --git a/tests/unit/models/business-registration-issuing-country-enum.test.ts b/tests/unit/models/business-registration-issuing-country-enum.test.ts new file mode 100644 index 0000000..4bc5ef2 --- /dev/null +++ b/tests/unit/models/business-registration-issuing-country-enum.test.ts @@ -0,0 +1,19 @@ +import { BusinessRegistrationIssuingCountryEnum } from '../../../models/business-registration-issuing-country-enum'; + +describe('BusinessRegistrationIssuingCountryEnum', () => { + test('should define the expected values', () => { + expect(BusinessRegistrationIssuingCountryEnum.Usa).toBe('USA'); + expect(BusinessRegistrationIssuingCountryEnum.Can).toBe('CAN'); + expect(BusinessRegistrationIssuingCountryEnum.Hkg).toBe('HKG'); + expect(BusinessRegistrationIssuingCountryEnum.Gbr).toBe('GBR'); + expect(BusinessRegistrationIssuingCountryEnum.Irl).toBe('IRL'); + expect(BusinessRegistrationIssuingCountryEnum.Bra).toBe('BRA'); + expect(BusinessRegistrationIssuingCountryEnum.Nld).toBe('NLD'); + expect(BusinessRegistrationIssuingCountryEnum.Aus).toBe('AUS'); + expect(BusinessRegistrationIssuingCountryEnum.Fra).toBe('FRA'); + expect(BusinessRegistrationIssuingCountryEnum.Nzl).toBe('NZL'); + expect(BusinessRegistrationIssuingCountryEnum.Deu).toBe('DEU'); + expect(BusinessRegistrationIssuingCountryEnum.Esp).toBe('ESP'); + expect(BusinessRegistrationIssuingCountryEnum.Che).toBe('CHE'); + }); +}); diff --git a/tests/unit/models/business-registration-type-enum.test.ts b/tests/unit/models/business-registration-type-enum.test.ts index 0cc98e7..d8164f3 100644 --- a/tests/unit/models/business-registration-type-enum.test.ts +++ b/tests/unit/models/business-registration-type-enum.test.ts @@ -4,5 +4,21 @@ describe('BusinessRegistrationTypeEnum', () => { test('should define the expected values', () => { expect(BusinessRegistrationTypeEnum.Ein).toBe('EIN'); expect(BusinessRegistrationTypeEnum.Cbn).toBe('CBN'); + expect(BusinessRegistrationTypeEnum.Neq).toBe('NEQ'); + expect(BusinessRegistrationTypeEnum.ProvincialNumber).toBe('PROVINCIAL_NUMBER'); + expect(BusinessRegistrationTypeEnum.Crn).toBe('CRN'); + expect(BusinessRegistrationTypeEnum.Vat).toBe('VAT'); + expect(BusinessRegistrationTypeEnum.Acn).toBe('ACN'); + expect(BusinessRegistrationTypeEnum.Abn).toBe('ABN'); + expect(BusinessRegistrationTypeEnum.Brn).toBe('BRN'); + expect(BusinessRegistrationTypeEnum.Siren).toBe('SIREN'); + expect(BusinessRegistrationTypeEnum.Siret).toBe('SIRET'); + expect(BusinessRegistrationTypeEnum.Nzbn).toBe('NZBN'); + expect(BusinessRegistrationTypeEnum.UstIdnr).toBe('UST_IDNR'); + expect(BusinessRegistrationTypeEnum.Cif).toBe('CIF'); + expect(BusinessRegistrationTypeEnum.Nif).toBe('NIF'); + expect(BusinessRegistrationTypeEnum.Cnpj).toBe('CNPJ'); + expect(BusinessRegistrationTypeEnum.Uid).toBe('UID'); + expect(BusinessRegistrationTypeEnum.Other).toBe('OTHER'); }); });