Skip to content

Commit c5d3f91

Browse files
committed
Generate SDK with OpenAPI Generator Version
1 parent 3190b90 commit c5d3f91

File tree

7 files changed

+48
-6
lines changed

7 files changed

+48
-6
lines changed

bandwidth.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5956,6 +5956,8 @@ components:
59565956
$ref: '#/components/schemas/helpMessageResponse'
59575957
ageGatedContent:
59585958
$ref: '#/components/schemas/ageGatedContent'
5959+
cvToken:
5960+
$ref: '#/components/schemas/cvToken'
59595961
verificationUpdateRequest:
59605962
type: object
59615963
required:
@@ -6005,6 +6007,8 @@ components:
60056007
$ref: '#/components/schemas/helpMessageResponse'
60066008
ageGatedContent:
60076009
$ref: '#/components/schemas/ageGatedContent'
6010+
cvToken:
6011+
$ref: '#/components/schemas/cvToken'
60086012
tfvBasicAuthentication:
60096013
type: object
60106014
properties:
@@ -6456,6 +6460,8 @@ components:
64566460
$ref: '#/components/schemas/blocked'
64576461
blockedReason:
64586462
$ref: '#/components/schemas/blockedReason'
6463+
cvToken:
6464+
$ref: '#/components/schemas/cvToken'
64596465
tfvSubmissionInfo:
64606466
type: object
64616467
properties:
@@ -6520,6 +6526,18 @@ components:
65206526
nullable: true
65216527
pattern: ^[ -~]{16,64}$
65226528
type: string
6529+
cvToken:
6530+
type: string
6531+
description: >-
6532+
The token provided by Campaign Verify to validate your political use
6533+
case. Only required for 527 political organizations. If you are not a
6534+
527 political organization, this field should be omitted. If you pass an
6535+
empty string, it will be passed along and potentially rejected.
6536+
minLength: 0
6537+
maxLength: 500
6538+
nullable: true
6539+
example: >-
6540+
cv.user123|sess456|mno|tfree|read_write|X7yZ9aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789aBcDeFgHiJkLmNoPqRsTuVw
65236541
responses:
65246542
createMessageResponse:
65256543
description: Accepted

bandwidth/models/tfv_status.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ class TfvStatus(BaseModel):
4242
submission: Optional[TfvSubmissionInfo] = None
4343
blocked: Optional[StrictBool] = Field(default=None, description="Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked.")
4444
blocked_reason: Optional[StrictStr] = Field(default=None, description="The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked.", alias="blockedReason")
45+
cv_token: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="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. If you pass an empty string, it will be passed along and potentially rejected.", alias="cvToken")
4546
additional_properties: Dict[str, Any] = {}
46-
__properties: ClassVar[List[str]] = ["phoneNumber", "status", "internalTicketNumber", "declineReasonDescription", "resubmitAllowed", "createdDateTime", "modifiedDateTime", "submission", "blocked", "blockedReason"]
47+
__properties: ClassVar[List[str]] = ["phoneNumber", "status", "internalTicketNumber", "declineReasonDescription", "resubmitAllowed", "createdDateTime", "modifiedDateTime", "submission", "blocked", "blockedReason", "cvToken"]
4748

4849
@field_validator('phone_number')
4950
def phone_number_validate_regular_expression(cls, value):
@@ -104,6 +105,11 @@ def to_dict(self) -> Dict[str, Any]:
104105
for _key, _value in self.additional_properties.items():
105106
_dict[_key] = _value
106107

108+
# set to None if cv_token (nullable) is None
109+
# and model_fields_set contains the field
110+
if self.cv_token is None and "cv_token" in self.model_fields_set:
111+
_dict['cvToken'] = None
112+
107113
return _dict
108114

109115
@classmethod
@@ -125,7 +131,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
125131
"modifiedDateTime": obj.get("modifiedDateTime"),
126132
"submission": TfvSubmissionInfo.from_dict(obj["submission"]) if obj.get("submission") is not None else None,
127133
"blocked": obj.get("blocked"),
128-
"blockedReason": obj.get("blockedReason")
134+
"blockedReason": obj.get("blockedReason"),
135+
"cvToken": obj.get("cvToken")
129136
})
130137
# store additional fields in additional_properties
131138
for _key in obj.keys():

bandwidth/models/verification_request.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ class VerificationRequest(BaseModel):
5151
business_entity_type: Optional[BusinessEntityTypeEnum] = Field(default=None, alias="businessEntityType")
5252
help_message_response: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="A message that gets sent to users requesting help.", alias="helpMessageResponse")
5353
age_gated_content: Optional[StrictBool] = Field(default=None, description="Indicates whether the content is age-gated.", alias="ageGatedContent")
54+
cv_token: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="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. If you pass an empty string, it will be passed along and potentially rejected.", alias="cvToken")
5455
additional_properties: Dict[str, Any] = {}
55-
__properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "phoneNumbers", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType", "helpMessageResponse", "ageGatedContent"]
56+
__properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "phoneNumbers", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType", "helpMessageResponse", "ageGatedContent", "cvToken"]
5657

5758
model_config = ConfigDict(
5859
populate_by_name=True,
@@ -139,6 +140,11 @@ def to_dict(self) -> Dict[str, Any]:
139140
if self.help_message_response is None and "help_message_response" in self.model_fields_set:
140141
_dict['helpMessageResponse'] = None
141142

143+
# set to None if cv_token (nullable) is None
144+
# and model_fields_set contains the field
145+
if self.cv_token is None and "cv_token" in self.model_fields_set:
146+
_dict['cvToken'] = None
147+
142148
return _dict
143149

144150
@classmethod
@@ -168,7 +174,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
168174
"businessRegistrationType": obj.get("businessRegistrationType"),
169175
"businessEntityType": obj.get("businessEntityType"),
170176
"helpMessageResponse": obj.get("helpMessageResponse"),
171-
"ageGatedContent": obj.get("ageGatedContent")
177+
"ageGatedContent": obj.get("ageGatedContent"),
178+
"cvToken": obj.get("cvToken")
172179
})
173180
# store additional fields in additional_properties
174181
for _key in obj.keys():

bandwidth/models/verification_update_request.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ class VerificationUpdateRequest(BaseModel):
5050
business_entity_type: Optional[BusinessEntityTypeEnum] = Field(default=None, alias="businessEntityType")
5151
help_message_response: Optional[Annotated[str, Field(strict=True, max_length=500)]] = Field(default=None, description="A message that gets sent to users requesting help.", alias="helpMessageResponse")
5252
age_gated_content: Optional[StrictBool] = Field(default=None, description="Indicates whether the content is age-gated.", alias="ageGatedContent")
53+
cv_token: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="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. If you pass an empty string, it will be passed along and potentially rejected.", alias="cvToken")
5354
additional_properties: Dict[str, Any] = {}
54-
__properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType", "helpMessageResponse", "ageGatedContent"]
55+
__properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDba", "businessRegistrationNumber", "businessRegistrationType", "businessEntityType", "helpMessageResponse", "ageGatedContent", "cvToken"]
5556

5657
model_config = ConfigDict(
5758
populate_by_name=True,
@@ -138,6 +139,11 @@ def to_dict(self) -> Dict[str, Any]:
138139
if self.help_message_response is None and "help_message_response" in self.model_fields_set:
139140
_dict['helpMessageResponse'] = None
140141

142+
# set to None if cv_token (nullable) is None
143+
# and model_fields_set contains the field
144+
if self.cv_token is None and "cv_token" in self.model_fields_set:
145+
_dict['cvToken'] = None
146+
141147
return _dict
142148

143149
@classmethod
@@ -166,7 +172,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
166172
"businessRegistrationType": obj.get("businessRegistrationType"),
167173
"businessEntityType": obj.get("businessEntityType"),
168174
"helpMessageResponse": obj.get("helpMessageResponse"),
169-
"ageGatedContent": obj.get("ageGatedContent")
175+
"ageGatedContent": obj.get("ageGatedContent"),
176+
"cvToken": obj.get("cvToken")
170177
})
171178
# store additional fields in additional_properties
172179
for _key in obj.keys():

docs/TfvStatus.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**submission** | [**TfvSubmissionInfo**](TfvSubmissionInfo.md) | | [optional]
1616
**blocked** | **bool** | Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional]
1717
**blocked_reason** | **str** | The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. | [optional]
18+
**cv_token** | **str** | 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. If you pass an empty string, it will be passed along and potentially rejected. | [optional]
1819

1920
## Example
2021

docs/VerificationRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
2323
**business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional]
2424
**help_message_response** | **str** | A message that gets sent to users requesting help. | [optional]
2525
**age_gated_content** | **bool** | Indicates whether the content is age-gated. | [optional]
26+
**cv_token** | **str** | 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. If you pass an empty string, it will be passed along and potentially rejected. | [optional]
2627

2728
## Example
2829

docs/VerificationUpdateRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
2222
**business_entity_type** | [**BusinessEntityTypeEnum**](BusinessEntityTypeEnum.md) | | [optional]
2323
**help_message_response** | **str** | A message that gets sent to users requesting help. | [optional]
2424
**age_gated_content** | **bool** | Indicates whether the content is age-gated. | [optional]
25+
**cv_token** | **str** | 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. If you pass an empty string, it will be passed along and potentially rejected. | [optional]
2526

2627
## Example
2728

0 commit comments

Comments
 (0)