diff --git a/bandwidth.yml b/bandwidth.yml index 0a0121cd..e41dd6a6 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -5228,6 +5228,35 @@ components: PUT. example: true type: boolean + blocked: + description: >- + Whether a Toll-Free Verification is blocked. This attribute will only be + defined when the number is blocked. (Not Available Until 5/28/2025) + example: true + type: boolean + blockedReason: + description: >- + 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) + example: Toll-free number was used to send spam messages + type: string + privacyPolicyUrl: + description: >- + The Toll-Free Verification request privacy policy URL. (Not Available + Until 5/28/2025) + example: http://your-company.com/privacyPolicyUrl.pdf + type: string + termsAndConditionsUrl: + description: >- + The Toll-Free Verification request terms and conditions policy URL. (Not + Available Until 5/28/2025) + example: http://your-company.com/termsAndConditionsUrl.pdf + type: string + businessDBA: + description: The company 'Doing Business As'. (Not Available Until 5/28/2025) + example: SecondCompany Name + type: string additionalDenialReason: properties: statusCode: @@ -5308,6 +5337,12 @@ components: example: Any additional information isvReseller: $ref: '#/components/schemas/isvReseller' + privacyPolicyUrl: + $ref: '#/components/schemas/privacyPolicyUrl' + termsAndConditionsUrl: + $ref: '#/components/schemas/termsAndConditionsUrl' + businessDBA: + $ref: '#/components/schemas/businessDBA' verificationUpdateRequest: type: object required: @@ -5341,6 +5376,12 @@ components: $ref: '#/components/schemas/additionalInformation' isvReseller: $ref: '#/components/schemas/isvReseller' + privacyPolicyUrl: + $ref: '#/components/schemas/privacyPolicyUrl' + termsAndConditionsUrl: + $ref: '#/components/schemas/termsAndConditionsUrl' + businessDBA: + $ref: '#/components/schemas/businessDBA' tfvBasicAuthentication: type: object properties: @@ -5419,6 +5460,10 @@ components: $ref: '#/components/schemas/resubmitAllowed' status: $ref: '#/components/schemas/tfvUnverifiedStatus' + blocked: + $ref: '#/components/schemas/blocked' + blockedReason: + $ref: '#/components/schemas/blockedReason' verificationWebhook: type: object properties: @@ -5501,6 +5546,7 @@ components: minLength: 0 maxLength: 500 nullable: true + example: Any additional information optInWorkflow: type: object nullable: false @@ -5762,6 +5808,10 @@ components: example: '2021-06-08T06:45:13.0Z' submission: $ref: '#/components/schemas/tfvSubmissionInfo' + blocked: + $ref: '#/components/schemas/blocked' + blockedReason: + $ref: '#/components/schemas/blockedReason' tfvSubmissionInfo: type: object properties: @@ -5787,6 +5837,12 @@ components: $ref: '#/components/schemas/additionalInformation' isvReseller: $ref: '#/components/schemas/isvReseller' + privacyPolicyUrl: + $ref: '#/components/schemas/privacyPolicyUrl' + termsAndConditionsUrl: + $ref: '#/components/schemas/termsAndConditionsUrl' + businessDBA: + $ref: '#/components/schemas/businessDBA' tfvStatusEnum: type: string enum: diff --git a/bandwidth/models/tfv_status.py b/bandwidth/models/tfv_status.py index ef40ce5c..4998f307 100644 --- a/bandwidth/models/tfv_status.py +++ b/bandwidth/models/tfv_status.py @@ -39,8 +39,10 @@ class TfvStatus(BaseModel): created_date_time: Optional[datetime] = Field(default=None, description="Date and time the verification request was created.", alias="createdDateTime") modified_date_time: Optional[datetime] = Field(default=None, description="Date and time the verification request was last modified.", alias="modifiedDateTime") submission: Optional[TfvSubmissionInfo] = None + 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. (Not Available Until 5/28/2025)") + 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. (Not Available Until 5/28/2025)", alias="blockedReason") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["phoneNumber", "status", "internalTicketNumber", "declineReasonDescription", "resubmitAllowed", "createdDateTime", "modifiedDateTime", "submission"] + __properties: ClassVar[List[str]] = ["phoneNumber", "status", "internalTicketNumber", "declineReasonDescription", "resubmitAllowed", "createdDateTime", "modifiedDateTime", "submission", "blocked", "blockedReason"] @field_validator('phone_number') def phone_number_validate_regular_expression(cls, value): @@ -120,7 +122,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "resubmitAllowed": obj.get("resubmitAllowed"), "createdDateTime": obj.get("createdDateTime"), "modifiedDateTime": obj.get("modifiedDateTime"), - "submission": TfvSubmissionInfo.from_dict(obj["submission"]) if obj.get("submission") is not None else None + "submission": TfvSubmissionInfo.from_dict(obj["submission"]) if obj.get("submission") is not None else None, + "blocked": obj.get("blocked"), + "blockedReason": obj.get("blockedReason") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/bandwidth/models/tfv_submission_info.py b/bandwidth/models/tfv_submission_info.py index 28a94d62..03c475bb 100644 --- a/bandwidth/models/tfv_submission_info.py +++ b/bandwidth/models/tfv_submission_info.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from bandwidth.models.address import Address @@ -40,8 +40,11 @@ class TfvSubmissionInfo(BaseModel): opt_in_workflow: Optional[OptInWorkflow] = Field(default=None, alias="optInWorkflow") additional_information: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="Any additional information.", alias="additionalInformation") isv_reseller: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="ISV name.", alias="isvReseller") + privacy_policy_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025)", alias="privacyPolicyUrl") + terms_and_conditions_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025)", alias="termsAndConditionsUrl") + business_dba: Optional[StrictStr] = Field(default=None, description="The company 'Doing Business As'. (Not Available Until 5/28/2025)", alias="businessDBA") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller"] + __properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDBA"] model_config = ConfigDict( populate_by_name=True, @@ -128,7 +131,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "productionMessageContent": obj.get("productionMessageContent"), "optInWorkflow": OptInWorkflow.from_dict(obj["optInWorkflow"]) if obj.get("optInWorkflow") is not None else None, "additionalInformation": obj.get("additionalInformation"), - "isvReseller": obj.get("isvReseller") + "isvReseller": obj.get("isvReseller"), + "privacyPolicyUrl": obj.get("privacyPolicyUrl"), + "termsAndConditionsUrl": obj.get("termsAndConditionsUrl"), + "businessDBA": obj.get("businessDBA") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/bandwidth/models/verification_denial_webhook.py b/bandwidth/models/verification_denial_webhook.py index 23897250..3519a301 100644 --- a/bandwidth/models/verification_denial_webhook.py +++ b/bandwidth/models/verification_denial_webhook.py @@ -37,8 +37,10 @@ class VerificationDenialWebhook(BaseModel): phone_number: Optional[Annotated[str, Field(min_length=12, strict=True, max_length=12)]] = Field(default=None, description="Toll-free telephone number in E.164 format.", alias="phoneNumber") resubmit_allowed: Optional[StrictBool] = Field(default=None, description="Whether a Toll-Free Verification request qualifies for resubmission via PUT.", alias="resubmitAllowed") status: Optional[StrictStr] = 'UNVERIFIED' + 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. (Not Available Until 5/28/2025)") + 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. (Not Available Until 5/28/2025)", alias="blockedReason") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["accountId", "additionalDenialReasons", "declineReasonDescription", "denialStatusCode", "internalTicketNumber", "phoneNumber", "resubmitAllowed", "status"] + __properties: ClassVar[List[str]] = ["accountId", "additionalDenialReasons", "declineReasonDescription", "denialStatusCode", "internalTicketNumber", "phoneNumber", "resubmitAllowed", "status", "blocked", "blockedReason"] @field_validator('phone_number') def phone_number_validate_regular_expression(cls, value): @@ -122,7 +124,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "internalTicketNumber": obj.get("internalTicketNumber"), "phoneNumber": obj.get("phoneNumber"), "resubmitAllowed": obj.get("resubmitAllowed"), - "status": obj.get("status") if obj.get("status") is not None else 'UNVERIFIED' + "status": obj.get("status") if obj.get("status") is not None else 'UNVERIFIED', + "blocked": obj.get("blocked"), + "blockedReason": obj.get("blockedReason") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/bandwidth/models/verification_request.py b/bandwidth/models/verification_request.py index 35a39ebf..28598544 100644 --- a/bandwidth/models/verification_request.py +++ b/bandwidth/models/verification_request.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from bandwidth.models.address import Address @@ -41,8 +41,11 @@ class VerificationRequest(BaseModel): opt_in_workflow: OptInWorkflow = Field(alias="optInWorkflow") additional_information: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="Any additional information.", alias="additionalInformation") isv_reseller: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="ISV name.", alias="isvReseller") + privacy_policy_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025)", alias="privacyPolicyUrl") + terms_and_conditions_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025)", alias="termsAndConditionsUrl") + business_dba: Optional[StrictStr] = Field(default=None, description="The company 'Doing Business As'. (Not Available Until 5/28/2025)", alias="businessDBA") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "phoneNumbers", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller"] + __properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "phoneNumbers", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDBA"] model_config = ConfigDict( populate_by_name=True, @@ -130,7 +133,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "productionMessageContent": obj.get("productionMessageContent"), "optInWorkflow": OptInWorkflow.from_dict(obj["optInWorkflow"]) if obj.get("optInWorkflow") is not None else None, "additionalInformation": obj.get("additionalInformation"), - "isvReseller": obj.get("isvReseller") + "isvReseller": obj.get("isvReseller"), + "privacyPolicyUrl": obj.get("privacyPolicyUrl"), + "termsAndConditionsUrl": obj.get("termsAndConditionsUrl"), + "businessDBA": obj.get("businessDBA") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/bandwidth/models/verification_update_request.py b/bandwidth/models/verification_update_request.py index f71107ca..5ecc84c4 100644 --- a/bandwidth/models/verification_update_request.py +++ b/bandwidth/models/verification_update_request.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from bandwidth.models.address import Address @@ -40,8 +40,11 @@ class VerificationUpdateRequest(BaseModel): opt_in_workflow: OptInWorkflow = Field(alias="optInWorkflow") additional_information: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="Any additional information.", alias="additionalInformation") isv_reseller: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=500)]] = Field(default=None, description="ISV name.", alias="isvReseller") + privacy_policy_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025)", alias="privacyPolicyUrl") + terms_and_conditions_url: Optional[StrictStr] = Field(default=None, description="The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025)", alias="termsAndConditionsUrl") + business_dba: Optional[StrictStr] = Field(default=None, description="The company 'Doing Business As'. (Not Available Until 5/28/2025)", alias="businessDBA") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller"] + __properties: ClassVar[List[str]] = ["businessAddress", "businessContact", "messageVolume", "useCase", "useCaseSummary", "productionMessageContent", "optInWorkflow", "additionalInformation", "isvReseller", "privacyPolicyUrl", "termsAndConditionsUrl", "businessDBA"] model_config = ConfigDict( populate_by_name=True, @@ -128,7 +131,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "productionMessageContent": obj.get("productionMessageContent"), "optInWorkflow": OptInWorkflow.from_dict(obj["optInWorkflow"]) if obj.get("optInWorkflow") is not None else None, "additionalInformation": obj.get("additionalInformation"), - "isvReseller": obj.get("isvReseller") + "isvReseller": obj.get("isvReseller"), + "privacyPolicyUrl": obj.get("privacyPolicyUrl"), + "termsAndConditionsUrl": obj.get("termsAndConditionsUrl"), + "businessDBA": obj.get("businessDBA") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/docs/TfvStatus.md b/docs/TfvStatus.md index e2d3c7ca..21fad100 100644 --- a/docs/TfvStatus.md +++ b/docs/TfvStatus.md @@ -13,6 +13,8 @@ Name | Type | Description | Notes **created_date_time** | **datetime** | Date and time the verification request was created. | [optional] **modified_date_time** | **datetime** | Date and time the verification request was last modified. | [optional] **submission** | [**TfvSubmissionInfo**](TfvSubmissionInfo.md) | | [optional] +**blocked** | **bool** | 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] +**blocked_reason** | **str** | 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] ## Example diff --git a/docs/TfvSubmissionInfo.md b/docs/TfvSubmissionInfo.md index f74a62fc..d77d6a4b 100644 --- a/docs/TfvSubmissionInfo.md +++ b/docs/TfvSubmissionInfo.md @@ -14,6 +14,9 @@ Name | Type | Description | Notes **opt_in_workflow** | [**OptInWorkflow**](OptInWorkflow.md) | | [optional] **additional_information** | **str** | Any additional information. | [optional] **isv_reseller** | **str** | ISV name. | [optional] +**privacy_policy_url** | **str** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] +**terms_and_conditions_url** | **str** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] +**business_dba** | **str** | The company 'Doing Business As'. (Not Available Until 5/28/2025) | [optional] ## Example diff --git a/docs/VerificationDenialWebhook.md b/docs/VerificationDenialWebhook.md index 8b034a5b..a06328fd 100644 --- a/docs/VerificationDenialWebhook.md +++ b/docs/VerificationDenialWebhook.md @@ -13,6 +13,8 @@ Name | Type | Description | Notes **phone_number** | **str** | Toll-free telephone number in E.164 format. | [optional] **resubmit_allowed** | **bool** | Whether a Toll-Free Verification request qualifies for resubmission via PUT. | [optional] **status** | **str** | | [optional] [default to 'UNVERIFIED'] +**blocked** | **bool** | 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] +**blocked_reason** | **str** | 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] ## Example diff --git a/docs/VerificationRequest.md b/docs/VerificationRequest.md index 8991c3f7..d3fd5bb7 100644 --- a/docs/VerificationRequest.md +++ b/docs/VerificationRequest.md @@ -15,6 +15,9 @@ Name | Type | Description | Notes **opt_in_workflow** | [**OptInWorkflow**](OptInWorkflow.md) | | **additional_information** | **str** | Any additional information. | [optional] **isv_reseller** | **str** | ISV name. | [optional] +**privacy_policy_url** | **str** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] +**terms_and_conditions_url** | **str** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] +**business_dba** | **str** | The company 'Doing Business As'. (Not Available Until 5/28/2025) | [optional] ## Example diff --git a/docs/VerificationUpdateRequest.md b/docs/VerificationUpdateRequest.md index 1bd1e21f..e824c6e4 100644 --- a/docs/VerificationUpdateRequest.md +++ b/docs/VerificationUpdateRequest.md @@ -14,6 +14,9 @@ Name | Type | Description | Notes **opt_in_workflow** | [**OptInWorkflow**](OptInWorkflow.md) | | **additional_information** | **str** | Any additional information. | [optional] **isv_reseller** | **str** | ISV name. | [optional] +**privacy_policy_url** | **str** | The Toll-Free Verification request privacy policy URL. (Not Available Until 5/28/2025) | [optional] +**terms_and_conditions_url** | **str** | The Toll-Free Verification request terms and conditions policy URL. (Not Available Until 5/28/2025) | [optional] +**business_dba** | **str** | The company 'Doing Business As'. (Not Available Until 5/28/2025) | [optional] ## Example diff --git a/test/unit/models/test_tfv_status.py b/test/unit/models/test_tfv_status.py index 7646777c..6dc76402 100644 --- a/test/unit/models/test_tfv_status.py +++ b/test/unit/models/test_tfv_status.py @@ -69,7 +69,13 @@ def make_instance(self, include_optional) -> TfvStatus: 'https://www.example.com/path/to/resource' ], ), additional_information = 'Any additional information', - isv_reseller = 'Test ISV', ) + isv_reseller = 'Test ISV', + privacy_policy_url = 'https://www.example.com/path/to/resource', + terms_and_conditions_url = 'https://www.example.com/path/to/resource', + business_dba = 'Bandwidth Inc.' + ), + blocked = False, + blocked_reason = 'Blocked Reason' ) else: return TfvStatus( @@ -112,7 +118,12 @@ def testTfvStatus(self): assert instance.submission.opt_in_workflow.image_urls[0] == 'https://www.example.com/path/to/resource' assert instance.submission.additional_information == 'Any additional information' assert instance.submission.isv_reseller == 'Test ISV' + assert instance.submission.privacy_policy_url == 'https://www.example.com/path/to/resource' + assert instance.submission.terms_and_conditions_url == 'https://www.example.com/path/to/resource' + assert instance.submission.business_dba == 'Bandwidth Inc.' assert instance.submission.additional_information == 'Any additional information' + assert instance.blocked == False + assert instance.blocked_reason == 'Blocked Reason' if __name__ == '__main__': diff --git a/test/unit/models/test_tfv_submission_info.py b/test/unit/models/test_tfv_submission_info.py index 1771d32c..f5c9a8c4 100644 --- a/test/unit/models/test_tfv_submission_info.py +++ b/test/unit/models/test_tfv_submission_info.py @@ -59,7 +59,10 @@ def make_instance(self, include_optional) -> TfvSubmissionInfo: 'https://www.example.com/path/to/resource' ], ), additional_information = 'Any additional information', - isv_reseller = 'Test ISV' + isv_reseller = 'Test ISV', + privacy_policy_url = 'https://www.example.com/path/to/resource', + terms_and_conditions_url = 'https://www.example.com/path/to/resource', + business_dba = 'Bandwidth Inc.' ) else: return TfvSubmissionInfo( @@ -94,6 +97,9 @@ def testTfvSubmissionInfo(self): assert instance.opt_in_workflow.image_urls[0] == 'https://www.example.com/path/to/resource' assert instance.additional_information == 'Any additional information' assert instance.isv_reseller == 'Test ISV' + assert instance.privacy_policy_url == 'https://www.example.com/path/to/resource' + assert instance.terms_and_conditions_url == 'https://www.example.com/path/to/resource' + assert instance.business_dba == 'Bandwidth Inc.' if __name__ == '__main__': unittest.main() diff --git a/test/unit/models/test_verification_denial_webhook.py b/test/unit/models/test_verification_denial_webhook.py index d840c36b..04420b07 100644 --- a/test/unit/models/test_verification_denial_webhook.py +++ b/test/unit/models/test_verification_denial_webhook.py @@ -40,7 +40,9 @@ def make_instance(self, include_optional) -> VerificationDenialWebhook: internal_ticket_number = 'acde070d-8c4c-4f0d-9d8a-162843c10333', phone_number = '+18005555555', resubmit_allowed = True, - status = 'UNVERIFIED' + status = 'UNVERIFIED', + blocked = True, + blocked_reason = 'Blocked Reason' ) else: return VerificationDenialWebhook( @@ -66,6 +68,8 @@ def testVerificationDenialWebhook(self): assert instance.phone_number == '+18005555555' assert instance.resubmit_allowed == True assert instance.status == 'UNVERIFIED' + assert instance.blocked == True + assert instance.blocked_reason == 'Blocked Reason' if __name__ == '__main__': unittest.main() diff --git a/test/unit/models/test_verification_request.py b/test/unit/models/test_verification_request.py index a83c12ce..a7281398 100644 --- a/test/unit/models/test_verification_request.py +++ b/test/unit/models/test_verification_request.py @@ -62,7 +62,10 @@ def make_instance(self, include_optional) -> VerificationRequest: 'https://www.example.com/path/to/resource' ], ), additional_information = '', - isv_reseller = 'Test ISV' + isv_reseller = 'Test ISV', + privacy_policy_url = 'https://www.example.com/path/to/resource', + terms_and_conditions_url = 'https://www.example.com/path/to/resource', + business_dba = 'Bandwidth Inc.' ) else: return VerificationRequest( @@ -125,6 +128,9 @@ def testVerificationRequest(self): assert instance.opt_in_workflow.image_urls[0] == 'https://www.example.com/path/to/resource' assert instance.additional_information == '' assert instance.isv_reseller == 'Test ISV' + assert instance.privacy_policy_url == 'https://www.example.com/path/to/resource' + assert instance.terms_and_conditions_url == 'https://www.example.com/path/to/resource' + assert instance.business_dba == 'Bandwidth Inc.' if __name__ == '__main__': unittest.main() diff --git a/test/unit/models/test_verification_update_request.py b/test/unit/models/test_verification_update_request.py index ed29c664..6ad4f41e 100644 --- a/test/unit/models/test_verification_update_request.py +++ b/test/unit/models/test_verification_update_request.py @@ -59,7 +59,10 @@ def make_instance(self, include_optional) -> VerificationUpdateRequest: 'https://www.example.com/path/to/resource' ], ), additional_information = '', - isv_reseller = 'Test ISV' + isv_reseller = 'Test ISV', + privacy_policy_url = 'https://www.example.com/path/to/resource', + terms_and_conditions_url = 'https://www.example.com/path/to/resource', + business_dba = 'Bandwidth Inc.' ) else: return VerificationUpdateRequest( @@ -116,6 +119,9 @@ def testVerificationUpdateRequest(self): assert instance.opt_in_workflow.image_urls[0] == 'https://www.example.com/path/to/resource' assert instance.additional_information == '' assert instance.isv_reseller == 'Test ISV' + assert instance.privacy_policy_url == 'https://www.example.com/path/to/resource' + assert instance.terms_and_conditions_url == 'https://www.example.com/path/to/resource' + assert instance.business_dba == 'Bandwidth Inc.' if __name__ == '__main__': unittest.main()