File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1818 'FileBatch' ,
1919 'Identity' ,
2020 'IdentityEvent' ,
21+ 'KYCValidations' ,
2122 'KYCVerification' ,
2223 'LimitedWallet' ,
2324 'LoginToken' ,
5556from .files import File
5657from .identities import Identity
5758from .identity_events import IdentityEvent
59+ from .kyc_validations import KYCValidations
5860from .kyc_verifications import KYCVerification
5961from .limited_wallets import LimitedWallet
6062from .login_tokens import LoginToken
9597 FileBatch ,
9698 Identity ,
9799 IdentityEvent ,
100+ KYCValidations ,
98101 KYCVerification ,
99102 LimitedWallet ,
100103 LoginToken ,
Original file line number Diff line number Diff line change 1+ import datetime as dt
2+ from typing import ClassVar , Optional , cast
3+
4+ from cuenca_validations .types import KYCFile
5+
6+ from ..http import Session , session as global_session
7+ from .base import Creatable , Retrievable , Updateable
8+
9+
10+ class KYCValidation (Creatable , Retrievable ):
11+ _resource : ClassVar = 'kyc_verifications'
12+ platform_id : str
13+ created_at : dt .datetime
14+ verification_id : Optional [str ]
15+ govt_id : Optional [KYCFile ]
16+ proof_of_address : Optional [KYCFile ]
17+ proof_of_life : Optional [KYCFile ]
18+
19+ class Config :
20+ schema_extra = {
21+ 'example' : {
22+ 'id' : 'KVNEUInh69SuKXXmK95sROwQ' ,
23+ 'platform_id' : 'PT8UEv02zBTcymd4Kd3MO6pg' ,
24+ 'created_at' : '2020-05-24T14:15:22Z' ,
25+ 'verification_id' : 'string' ,
26+ 'govt_id' : KYCFile .schema ().get ('example' ),
27+ 'proof_of_address' : None ,
28+ 'proof_of_life' : None ,
29+ }
30+ }
31+
32+ @classmethod
33+ def create (cls , session : Session = global_session ) -> 'KYCValidation' :
34+ return cast ('KYCValidation' , cls ._create (session = session ))
Original file line number Diff line number Diff line change 1- __version__ = '0.14.5 '
1+ __version__ = '0.14.7.dev0 '
22CLIENT_VERSION = __version__
33API_VERSION = '2020-03-19'
You can’t perform that action at this time.
0 commit comments