Skip to content

Commit 857e5a8

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent 0e3efff commit 857e5a8

12 files changed

Lines changed: 47 additions & 42 deletions

.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ docs/BlockedWebhook.md
1313
docs/BridgeCompleteCallback.md
1414
docs/BridgeTargetCompleteCallback.md
1515
docs/BusinessEntityTypeEnum.md
16-
docs/BusinessRegistrationIssuingCountryEnum.md
1716
docs/BusinessRegistrationTypeEnum.md
1817
docs/CallDirectionEnum.md
1918
docs/CallRecordingMetadata.md
@@ -218,7 +217,6 @@ lib/bandwidth-sdk/models/blocked_webhook.rb
218217
lib/bandwidth-sdk/models/bridge_complete_callback.rb
219218
lib/bandwidth-sdk/models/bridge_target_complete_callback.rb
220219
lib/bandwidth-sdk/models/business_entity_type_enum.rb
221-
lib/bandwidth-sdk/models/business_registration_issuing_country_enum.rb
222220
lib/bandwidth-sdk/models/business_registration_type_enum.rb
223221
lib/bandwidth-sdk/models/call_direction_enum.rb
224222
lib/bandwidth-sdk/models/call_recording_metadata.rb

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ Class | Method | HTTP request | Description
180180
- [Bandwidth::BridgeCompleteCallback](docs/BridgeCompleteCallback.md)
181181
- [Bandwidth::BridgeTargetCompleteCallback](docs/BridgeTargetCompleteCallback.md)
182182
- [Bandwidth::BusinessEntityTypeEnum](docs/BusinessEntityTypeEnum.md)
183-
- [Bandwidth::BusinessRegistrationIssuingCountryEnum](docs/BusinessRegistrationIssuingCountryEnum.md)
184183
- [Bandwidth::BusinessRegistrationTypeEnum](docs/BusinessRegistrationTypeEnum.md)
185184
- [Bandwidth::CallDirectionEnum](docs/CallDirectionEnum.md)
186185
- [Bandwidth::CallRecordingMetadata](docs/CallRecordingMetadata.md)

bandwidth.yml

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5828,13 +5828,21 @@ components:
58285828
type: string
58295829
businessRegistrationNumber:
58305830
type: string
5831-
description: Government-issued business identifying number.
5831+
description: >
5832+
Government-issued business identifying number.
5833+
5834+
5835+
**Note:** If this field is provided, it is strongly recommended to also
5836+
provide `businessRegistrationType` and
5837+
`businessRegistrationIssuingCountry`. Submissions missing these fields
5838+
have a high likelihood of rejection.
58325839
nullable: true
58335840
maxLength: 500
58345841
example: 12-3456789
58355842
businessRegistrationTypeEnum:
58365843
type: string
5837-
description: The type of business registration number.
5844+
description: |
5845+
The type of business registration number.
58385846
enum:
58395847
- EIN
58405848
- CBN
@@ -5855,11 +5863,20 @@ components:
58555863
- UID
58565864
- OTHER
58575865
nullable: true
5858-
businessRegistrationIssuingCountryEnum:
5866+
businessRegistrationIssuingCountry:
58595867
type: string
58605868
description: >-
58615869
The country issuing the business registration in ISO-3166-1 alpha-3
5862-
format.
5870+
format. Alpha-2 country codes are acceptable, but the application will
5871+
convert them to alpha-3 when received, so alpha-3 is encouraged.
5872+
5873+
5874+
**Note:** If this field is omitted but `businessRegistrationType` is
5875+
provided, the application will attempt to infer the country based on the
5876+
registration type. However, if the application cannot confidently infer
5877+
the country, the submission may be rejected. To ensure the highest
5878+
likelihood of acceptance, it is recommended to provide both
5879+
`businessRegistrationType` and `businessRegistrationIssuingCountry`.
58635880
58645881
58655882
| Registration Type | Supported Countries |
@@ -5901,26 +5918,11 @@ components:
59015918
| UID | CHE |
59025919
59035920
| OTHER | Must Provide Country Code |
5904-
enum:
5905-
- USA
5906-
- CAN
5907-
- HKG
5908-
- GBR
5909-
- IRL
5910-
- BRA
5911-
- NLD
5912-
- AUS
5913-
- FRA
5914-
- NZL
5915-
- DEU
5916-
- ESP
5917-
- CHE
59185921
nullable: false
59195922
businessEntityTypeEnum:
59205923
type: string
5921-
description: >-
5922-
The type of registered business. If no option is applicable, please
5923-
provide "SOLE_PROPRIETOR" as a value.
5924+
description: |
5925+
The type of registered business.
59245926
enum:
59255927
- SOLE_PROPRIETOR
59265928
- PRIVATE_PROFIT
@@ -6028,7 +6030,7 @@ components:
60286030
businessRegistrationType:
60296031
$ref: '#/components/schemas/businessRegistrationTypeEnum'
60306032
businessRegistrationIssuingCountry:
6031-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6033+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
60326034
businessEntityType:
60336035
$ref: '#/components/schemas/businessEntityTypeEnum'
60346036
helpMessageResponse:
@@ -6083,7 +6085,7 @@ components:
60836085
businessEntityType:
60846086
$ref: '#/components/schemas/businessEntityTypeEnum'
60856087
businessRegistrationIssuingCountry:
6086-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6088+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
60876089
helpMessageResponse:
60886090
$ref: '#/components/schemas/helpMessageResponse'
60896091
ageGatedContent:
@@ -6576,10 +6578,14 @@ components:
65766578
$ref: '#/components/schemas/businessDba'
65776579
businessRegistrationNumber:
65786580
$ref: '#/components/schemas/businessRegistrationNumber'
6581+
description: Government-issued business identifying number.
65796582
businessRegistrationType:
65806583
$ref: '#/components/schemas/businessRegistrationTypeEnum'
65816584
businessRegistrationIssuingCountry:
6582-
$ref: '#/components/schemas/businessRegistrationIssuingCountryEnum'
6585+
$ref: '#/components/schemas/businessRegistrationIssuingCountry'
6586+
description: >-
6587+
The country issuing the business registration in ISO-3166-1 alpha-3
6588+
format.
65836589
businessEntityType:
65846590
$ref: '#/components/schemas/businessEntityTypeEnum'
65856591
tfvStatusEnum:

docs/RbmActionBase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ require 'bandwidth-sdk'
1616
instance = Bandwidth::RbmActionBase.new(
1717
type: null,
1818
text: Hello world,
19-
postback_data: [B@177302d6
19+
postback_data: [B@ba27ce6
2020
)
2121
```
2222

docs/RbmSuggestionResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require 'bandwidth-sdk'
1414

1515
instance = Bandwidth::RbmSuggestionResponse.new(
1616
text: Yes, I would like to proceed,
17-
postback_data: [B@177302d6
17+
postback_data: [B@ba27ce6
1818
)
1919
```
2020

docs/TfvSubmissionInfo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
1717
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
1818
| **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
19-
| **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
19+
| **business_registration_number** | **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] |
2020
| **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
21-
| **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
21+
| **business_registration_issuing_country** | **String** | 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 | | [optional] |
2222
| **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] |
2323

2424
## Example

docs/VerificationRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
1818
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
1919
| **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
20-
| **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
20+
| **business_registration_number** | **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] |
2121
| **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
22-
| **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
22+
| **business_registration_issuing_country** | **String** | 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 | | [optional] |
2323
| **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | |
2424
| **help_message_response** | **String** | A message that gets sent to users requesting help. | [optional] |
2525
| **age_gated_content** | **Boolean** | Indicates whether the content is age-gated. | [optional] |

docs/VerificationUpdateRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. | [optional] |
1717
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. | [optional] |
1818
| **business_dba** | **String** | The company 'Doing Business As'. | [optional] |
19-
| **business_registration_number** | **String** | Government-issued business identifying number. | [optional] |
19+
| **business_registration_number** | **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] |
2020
| **business_registration_type** | [**BusinessRegistrationTypeEnum**](BusinessRegistrationTypeEnum.md) | | [optional] |
2121
| **business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional] |
22-
| **business_registration_issuing_country** | [**BusinessRegistrationIssuingCountryEnum**](BusinessRegistrationIssuingCountryEnum.md) | | [optional] |
22+
| **business_registration_issuing_country** | **String** | 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 | | [optional] |
2323
| **help_message_response** | **String** | A message that gets sent to users requesting help. | [optional] |
2424
| **age_gated_content** | **Boolean** | Indicates whether the content is age-gated. | [optional] |
2525
| **cv_token** | **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] |

lib/bandwidth-sdk.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
require 'bandwidth-sdk/models/bridge_complete_callback'
2828
require 'bandwidth-sdk/models/bridge_target_complete_callback'
2929
require 'bandwidth-sdk/models/business_entity_type_enum'
30-
require 'bandwidth-sdk/models/business_registration_issuing_country_enum'
3130
require 'bandwidth-sdk/models/business_registration_type_enum'
3231
require 'bandwidth-sdk/models/call_direction_enum'
3332
require 'bandwidth-sdk/models/call_recording_metadata'

lib/bandwidth-sdk/models/tfv_submission_info.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ class TfvSubmissionInfo < ApiModelBase
4848
# The company 'Doing Business As'.
4949
attr_accessor :business_dba
5050

51-
# Government-issued business identifying number.
51+
# 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.
5252
attr_accessor :business_registration_number
5353

5454
attr_accessor :business_registration_type
5555

56+
# 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 |
5657
attr_accessor :business_registration_issuing_country
5758

5859
attr_accessor :business_entity_type
@@ -128,7 +129,7 @@ def self.openapi_types
128129
:'business_dba' => :'String',
129130
:'business_registration_number' => :'String',
130131
:'business_registration_type' => :'BusinessRegistrationTypeEnum',
131-
:'business_registration_issuing_country' => :'BusinessRegistrationIssuingCountryEnum',
132+
:'business_registration_issuing_country' => :'String',
132133
:'business_entity_type' => :'BusinessEntityTypeEnum'
133134
}
134135
end

0 commit comments

Comments
 (0)