-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c245ac
commit 79d8149
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import datetime as dt | ||
from typing import ClassVar, Optional, cast | ||
|
||
from cuenca_validations.types import KYCFile | ||
|
||
from ..http import Session, session as global_session | ||
from .base import Creatable, Retrievable, Updateable | ||
|
||
|
||
class KYCValidation(Creatable, Retrievable): | ||
_resource: ClassVar = 'kyc_verifications' | ||
platform_id: str | ||
created_at: dt.datetime | ||
verification_id: Optional[str] | ||
govt_id: Optional[KYCFile] | ||
proof_of_address: Optional[KYCFile] | ||
proof_of_life: Optional[KYCFile] | ||
|
||
class Config: | ||
schema_extra = { | ||
'example': { | ||
'id': 'KVNEUInh69SuKXXmK95sROwQ', | ||
'platform_id': 'PT8UEv02zBTcymd4Kd3MO6pg', | ||
'created_at': '2020-05-24T14:15:22Z', | ||
'verification_id': 'string', | ||
'govt_id': KYCFile.schema().get('example'), | ||
'proof_of_address': None, | ||
'proof_of_life': None, | ||
} | ||
} | ||
|
||
@classmethod | ||
def create(cls, session: Session = global_session) -> 'KYCValidation': | ||
return cast('KYCValidation', cls._create(session=session)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
__version__ = '0.14.5' | ||
__version__ = '0.14.7.dev0' | ||
CLIENT_VERSION = __version__ | ||
API_VERSION = '2020-03-19' |