Skip to content

Commit

Permalink
fix(Verification): enum for method added
Browse files Browse the repository at this point in the history
  • Loading branch information
650elx committed Jan 18, 2024
1 parent 2de175f commit a1fb0ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sinch/domains/verification/models/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ class GetVerificationStatusByIdRequest(SinchRequestBaseModel):
@dataclass
class GetVerificationStatusByIdentityRequest(SinchRequestBaseModel):
endpoint: str
method: str
method: VerificationMethod
7 changes: 4 additions & 3 deletions sinch/domains/verification/models/responses.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
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


@dataclass
class VerificationResponse(SinchBaseModel):
id: str
method: str
method: VerificationMethod
status: str
price: dict
identity: str
Expand All @@ -26,7 +27,7 @@ class VerificationResponse(SinchBaseModel):
class ReportVerificationResponse(SinchBaseModel):
id: str
reference: str
method: str
method: VerificationMethod
status: str


Expand Down

0 comments on commit a1fb0ca

Please sign in to comment.