diff --git a/sinch/domains/verification/models/requests.py b/sinch/domains/verification/models/requests.py index 91e15ad..fddb010 100644 --- a/sinch/domains/verification/models/requests.py +++ b/sinch/domains/verification/models/requests.py @@ -37,4 +37,4 @@ class GetVerificationStatusByIdRequest(SinchRequestBaseModel): @dataclass class GetVerificationStatusByIdentityRequest(SinchRequestBaseModel): endpoint: str - method: str + method: VerificationMethod diff --git a/sinch/domains/verification/models/responses.py b/sinch/domains/verification/models/responses.py index 982daf3..22708fb 100644 --- a/sinch/domains/verification/models/responses.py +++ b/sinch/domains/verification/models/responses.py @@ -1,11 +1,12 @@ from dataclasses import dataclass from sinch.core.models.base_model import SinchBaseModel +from sinch.domains.verification.enums import VerificationMethod @dataclass class StartVerificationResponse(SinchBaseModel): id: str - method: str + method: VerificationMethod sms: dict _links: list @@ -13,7 +14,7 @@ class StartVerificationResponse(SinchBaseModel): @dataclass class VerificationResponse(SinchBaseModel): id: str - method: str + method: VerificationMethod status: str price: dict identity: str @@ -26,7 +27,7 @@ class VerificationResponse(SinchBaseModel): class ReportVerificationResponse(SinchBaseModel): id: str reference: str - method: str + method: VerificationMethod status: str