Skip to content

Commit a259b48

Browse files
band-swi-release-engineering[bot]DX-Bandwidthckoegel
authored
Generate SDK with OpenAPI Generator Version (#169)
Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]>
1 parent f54dd6f commit a259b48

11 files changed

+242
-30
lines changed

bandwidth.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5228,6 +5228,35 @@ components:
52285228
PUT.
52295229
example: true
52305230
type: boolean
5231+
blocked:
5232+
description: >-
5233+
Whether a Toll-Free Verification is blocked. This attribute will only be
5234+
defined when the number is blocked. (Not Available Until 5/28/2025)
5235+
example: true
5236+
type: boolean
5237+
blockedReason:
5238+
description: >-
5239+
The reason why the Toll-Free Verification is blocked. This attribute
5240+
will only be defined when the number is blocked. (Not Available Until
5241+
5/28/2025)
5242+
example: Toll-free number was used to send spam messages
5243+
type: string
5244+
privacyPolicyUrl:
5245+
description: >-
5246+
The Toll-Free Verification request privacy policy URL. (Not Available
5247+
Until 5/28/2025)
5248+
example: http://your-company.com/privacyPolicyUrl.pdf
5249+
type: string
5250+
termsAndConditionsUrl:
5251+
description: >-
5252+
The Toll-Free Verification request terms and conditions policy URL. (Not
5253+
Available Until 5/28/2025)
5254+
example: http://your-company.com/termsAndConditionsUrl.pdf
5255+
type: string
5256+
businessDBA:
5257+
description: The company 'Doing Business As'. (Not Available Until 5/28/2025)
5258+
example: SecondCompany Name
5259+
type: string
52315260
additionalDenialReason:
52325261
properties:
52335262
statusCode:
@@ -5308,6 +5337,12 @@ components:
53085337
example: Any additional information
53095338
isvReseller:
53105339
$ref: '#/components/schemas/isvReseller'
5340+
privacyPolicyUrl:
5341+
$ref: '#/components/schemas/privacyPolicyUrl'
5342+
termsAndConditionsUrl:
5343+
$ref: '#/components/schemas/termsAndConditionsUrl'
5344+
businessDBA:
5345+
$ref: '#/components/schemas/businessDBA'
53115346
verificationUpdateRequest:
53125347
type: object
53135348
required:
@@ -5341,6 +5376,12 @@ components:
53415376
$ref: '#/components/schemas/additionalInformation'
53425377
isvReseller:
53435378
$ref: '#/components/schemas/isvReseller'
5379+
privacyPolicyUrl:
5380+
$ref: '#/components/schemas/privacyPolicyUrl'
5381+
termsAndConditionsUrl:
5382+
$ref: '#/components/schemas/termsAndConditionsUrl'
5383+
businessDBA:
5384+
$ref: '#/components/schemas/businessDBA'
53445385
tfvBasicAuthentication:
53455386
type: object
53465387
properties:
@@ -5419,6 +5460,10 @@ components:
54195460
$ref: '#/components/schemas/resubmitAllowed'
54205461
status:
54215462
$ref: '#/components/schemas/tfvUnverifiedStatus'
5463+
blocked:
5464+
$ref: '#/components/schemas/blocked'
5465+
blockedReason:
5466+
$ref: '#/components/schemas/blockedReason'
54225467
verificationWebhook:
54235468
type: object
54245469
properties:
@@ -5501,6 +5546,7 @@ components:
55015546
minLength: 0
55025547
maxLength: 500
55035548
nullable: true
5549+
example: Any additional information
55045550
optInWorkflow:
55055551
type: object
55065552
nullable: false
@@ -5762,6 +5808,10 @@ components:
57625808
example: '2021-06-08T06:45:13.0Z'
57635809
submission:
57645810
$ref: '#/components/schemas/tfvSubmissionInfo'
5811+
blocked:
5812+
$ref: '#/components/schemas/blocked'
5813+
blockedReason:
5814+
$ref: '#/components/schemas/blockedReason'
57655815
tfvSubmissionInfo:
57665816
type: object
57675817
properties:
@@ -5787,6 +5837,12 @@ components:
57875837
$ref: '#/components/schemas/additionalInformation'
57885838
isvReseller:
57895839
$ref: '#/components/schemas/isvReseller'
5840+
privacyPolicyUrl:
5841+
$ref: '#/components/schemas/privacyPolicyUrl'
5842+
termsAndConditionsUrl:
5843+
$ref: '#/components/schemas/termsAndConditionsUrl'
5844+
businessDBA:
5845+
$ref: '#/components/schemas/businessDBA'
57905846
tfvStatusEnum:
57915847
type: string
57925848
enum:

docs/TfvStatus.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
| **created_date_time** | **Time** | Date and time the verification request was created. | [optional] |
1313
| **modified_date_time** | **Time** | Date and time the verification request was last modified. | [optional] |
1414
| **submission** | [**TfvSubmissionInfo**](TfvSubmissionInfo.md) | | [optional] |
15+
| **blocked** | **Boolean** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional] |
16+
| **blocked_reason** | **String** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional] |
1517

1618
## Example
1719

@@ -26,7 +28,9 @@ instance = Bandwidth::TfvStatus.new(
2628
resubmit_allowed: true,
2729
created_date_time: 2021-06-08T06:45:13Z,
2830
modified_date_time: 2021-06-08T06:45:13Z,
29-
submission: null
31+
submission: null,
32+
blocked: true,
33+
blocked_reason: Toll-free number was used to send spam messages
3034
)
3135
```
3236

docs/TfvSubmissionInfo.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
| **opt_in_workflow** | [**OptInWorkflow**](OptInWorkflow.md) | | [optional] |
1414
| **additional_information** | **String** | Any additional information. | [optional] |
1515
| **isv_reseller** | **String** | ISV name. | [optional] |
16+
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] |
17+
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] |
18+
| **business_dba** | **String** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional] |
1619

1720
## Example
1821

@@ -27,8 +30,11 @@ instance = Bandwidth::TfvSubmissionInfo.new(
2730
use_case_summary: Text summarizing the use case for the toll-free number,
2831
production_message_content: Production message content,
2932
opt_in_workflow: null,
30-
additional_information: null,
31-
isv_reseller: Test ISV
33+
additional_information: Any additional information,
34+
isv_reseller: Test ISV,
35+
privacy_policy_url: http://your-company.com/privacyPolicyUrl.pdf,
36+
terms_and_conditions_url: http://your-company.com/termsAndConditionsUrl.pdf,
37+
business_dba: SecondCompany Name
3238
)
3339
```
3440

docs/VerificationDenialWebhook.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
| **phone_number** | **String** | Toll-free telephone number in E.164 format. | [optional] |
1313
| **resubmit_allowed** | **Boolean** | Whether a Toll-Free Verification request qualifies for resubmission via PUT. | [optional] |
1414
| **status** | **String** | | [optional][default to &#39;UNVERIFIED&#39;] |
15+
| **blocked** | **Boolean** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional] |
16+
| **blocked_reason** | **String** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025) | [optional] |
1517

1618
## Example
1719

@@ -26,7 +28,9 @@ instance = Bandwidth::VerificationDenialWebhook.new(
2628
internal_ticket_number: acde070d-8c4c-4f0d-9d8a-162843c10333,
2729
phone_number: +18005555555,
2830
resubmit_allowed: true,
29-
status: UNVERIFIED
31+
status: UNVERIFIED,
32+
blocked: true,
33+
blocked_reason: Toll-free number was used to send spam messages
3034
)
3135
```
3236

docs/VerificationRequest.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
| **opt_in_workflow** | [**OptInWorkflow**](OptInWorkflow.md) | | |
1515
| **additional_information** | **String** | Any additional information. | [optional] |
1616
| **isv_reseller** | **String** | ISV name. | [optional] |
17+
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] |
18+
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] |
19+
| **business_dba** | **String** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional] |
1720

1821
## Example
1922

@@ -30,7 +33,10 @@ instance = Bandwidth::VerificationRequest.new(
3033
production_message_content: Production message content,
3134
opt_in_workflow: null,
3235
additional_information: Any additional information,
33-
isv_reseller: Test ISV
36+
isv_reseller: Test ISV,
37+
privacy_policy_url: http://your-company.com/privacyPolicyUrl.pdf,
38+
terms_and_conditions_url: http://your-company.com/termsAndConditionsUrl.pdf,
39+
business_dba: SecondCompany Name
3440
)
3541
```
3642

docs/VerificationUpdateRequest.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
| **opt_in_workflow** | [**OptInWorkflow**](OptInWorkflow.md) | | |
1414
| **additional_information** | **String** | Any additional information. | [optional] |
1515
| **isv_reseller** | **String** | ISV name. | [optional] |
16+
| **privacy_policy_url** | **String** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] |
17+
| **terms_and_conditions_url** | **String** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] |
18+
| **business_dba** | **String** | The company &#39;Doing Business As&#39;. (Not Available Until 5/28/2025) | [optional] |
1619

1720
## Example
1821

@@ -27,8 +30,11 @@ instance = Bandwidth::VerificationUpdateRequest.new(
2730
use_case_summary: Text summarizing the use case for the toll-free number,
2831
production_message_content: Production message content,
2932
opt_in_workflow: null,
30-
additional_information: null,
31-
isv_reseller: Test ISV
33+
additional_information: Any additional information,
34+
isv_reseller: Test ISV,
35+
privacy_policy_url: http://your-company.com/privacyPolicyUrl.pdf,
36+
terms_and_conditions_url: http://your-company.com/termsAndConditionsUrl.pdf,
37+
business_dba: SecondCompany Name
3238
)
3339
```
3440

lib/bandwidth-sdk/models/tfv_status.rb

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ class TfvStatus
3737

3838
attr_accessor :submission
3939

40+
# Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025)
41+
attr_accessor :blocked
42+
43+
# The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. (Not Available Until 5/28/2025)
44+
attr_accessor :blocked_reason
45+
4046
class EnumAttributeValidator
4147
attr_reader :datatype
4248
attr_reader :allowable_values
@@ -69,7 +75,9 @@ def self.attribute_map
6975
:'resubmit_allowed' => :'resubmitAllowed',
7076
:'created_date_time' => :'createdDateTime',
7177
:'modified_date_time' => :'modifiedDateTime',
72-
:'submission' => :'submission'
78+
:'submission' => :'submission',
79+
:'blocked' => :'blocked',
80+
:'blocked_reason' => :'blockedReason'
7381
}
7482
end
7583

@@ -88,7 +96,9 @@ def self.openapi_types
8896
:'resubmit_allowed' => :'Boolean',
8997
:'created_date_time' => :'Time',
9098
:'modified_date_time' => :'Time',
91-
:'submission' => :'TfvSubmissionInfo'
99+
:'submission' => :'TfvSubmissionInfo',
100+
:'blocked' => :'Boolean',
101+
:'blocked_reason' => :'String'
92102
}
93103
end
94104

@@ -144,6 +154,14 @@ def initialize(attributes = {})
144154
if attributes.key?(:'submission')
145155
self.submission = attributes[:'submission']
146156
end
157+
158+
if attributes.key?(:'blocked')
159+
self.blocked = attributes[:'blocked']
160+
end
161+
162+
if attributes.key?(:'blocked_reason')
163+
self.blocked_reason = attributes[:'blocked_reason']
164+
end
147165
end
148166

149167
# Show invalid properties with the reasons. Usually used together with valid?
@@ -212,7 +230,9 @@ def ==(o)
212230
resubmit_allowed == o.resubmit_allowed &&
213231
created_date_time == o.created_date_time &&
214232
modified_date_time == o.modified_date_time &&
215-
submission == o.submission
233+
submission == o.submission &&
234+
blocked == o.blocked &&
235+
blocked_reason == o.blocked_reason
216236
end
217237

218238
# @see the `==` method
@@ -224,7 +244,7 @@ def eql?(o)
224244
# Calculates hash code according to all attributes.
225245
# @return [Integer] Hash code
226246
def hash
227-
[phone_number, status, internal_ticket_number, decline_reason_description, resubmit_allowed, created_date_time, modified_date_time, submission].hash
247+
[phone_number, status, internal_ticket_number, decline_reason_description, resubmit_allowed, created_date_time, modified_date_time, submission, blocked, blocked_reason].hash
228248
end
229249

230250
# Builds the object from hash

lib/bandwidth-sdk/models/tfv_submission_info.rb

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ class TfvSubmissionInfo
3939
# ISV name.
4040
attr_accessor :isv_reseller
4141

42+
# The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025)
43+
attr_accessor :privacy_policy_url
44+
45+
# The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025)
46+
attr_accessor :terms_and_conditions_url
47+
48+
# The company 'Doing Business As'. (Not Available Until 5/28/2025)
49+
attr_accessor :business_dba
50+
4251
# Attribute mapping from ruby-style variable name to JSON key.
4352
def self.attribute_map
4453
{
@@ -50,7 +59,10 @@ def self.attribute_map
5059
:'production_message_content' => :'productionMessageContent',
5160
:'opt_in_workflow' => :'optInWorkflow',
5261
:'additional_information' => :'additionalInformation',
53-
:'isv_reseller' => :'isvReseller'
62+
:'isv_reseller' => :'isvReseller',
63+
:'privacy_policy_url' => :'privacyPolicyUrl',
64+
:'terms_and_conditions_url' => :'termsAndConditionsUrl',
65+
:'business_dba' => :'businessDBA'
5466
}
5567
end
5668

@@ -70,15 +82,18 @@ def self.openapi_types
7082
:'production_message_content' => :'String',
7183
:'opt_in_workflow' => :'OptInWorkflow',
7284
:'additional_information' => :'String',
73-
:'isv_reseller' => :'String'
85+
:'isv_reseller' => :'String',
86+
:'privacy_policy_url' => :'String',
87+
:'terms_and_conditions_url' => :'String',
88+
:'business_dba' => :'String'
7489
}
7590
end
7691

7792
# List of attributes with nullable: true
7893
def self.openapi_nullable
7994
Set.new([
8095
:'additional_information',
81-
:'isv_reseller'
96+
:'isv_reseller',
8297
])
8398
end
8499

@@ -132,6 +147,18 @@ def initialize(attributes = {})
132147
if attributes.key?(:'isv_reseller')
133148
self.isv_reseller = attributes[:'isv_reseller']
134149
end
150+
151+
if attributes.key?(:'privacy_policy_url')
152+
self.privacy_policy_url = attributes[:'privacy_policy_url']
153+
end
154+
155+
if attributes.key?(:'terms_and_conditions_url')
156+
self.terms_and_conditions_url = attributes[:'terms_and_conditions_url']
157+
end
158+
159+
if attributes.key?(:'business_dba')
160+
self.business_dba = attributes[:'business_dba']
161+
end
135162
end
136163

137164
# Show invalid properties with the reasons. Usually used together with valid?
@@ -322,7 +349,10 @@ def ==(o)
322349
production_message_content == o.production_message_content &&
323350
opt_in_workflow == o.opt_in_workflow &&
324351
additional_information == o.additional_information &&
325-
isv_reseller == o.isv_reseller
352+
isv_reseller == o.isv_reseller &&
353+
privacy_policy_url == o.privacy_policy_url &&
354+
terms_and_conditions_url == o.terms_and_conditions_url &&
355+
business_dba == o.business_dba
326356
end
327357

328358
# @see the `==` method
@@ -334,7 +364,7 @@ def eql?(o)
334364
# Calculates hash code according to all attributes.
335365
# @return [Integer] Hash code
336366
def hash
337-
[business_address, business_contact, message_volume, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller].hash
367+
[business_address, business_contact, message_volume, use_case, use_case_summary, production_message_content, opt_in_workflow, additional_information, isv_reseller, privacy_policy_url, terms_and_conditions_url, business_dba].hash
338368
end
339369

340370
# Builds the object from hash

0 commit comments

Comments
 (0)