11import datetime as dt
2- from typing import ClassVar , cast
2+ from typing import ClassVar , Optional , cast
33
4- from cuenca_validations .types import PlatformRequest
4+ from cuenca_validations .types import Country , PlatformRequest , State
55
66from ..http import Session , session as global_session
77from .base import Creatable
@@ -12,16 +12,35 @@ class Platform(Creatable):
1212
1313 created_at : dt .datetime
1414 name : str
15+ rfc_curp : Optional [str ] = None
16+ establishment_date : Optional [str ] = None
17+ country : Optional [Country ] = None
18+ state : Optional [State ] = None
19+ economic_activity : Optional [str ] = None
1520
1621 class Config :
1722 fields = {
18- 'name' : {'description' : 'name of the platform being created' }
23+ 'name' : {'description' : 'name of the platform being created' },
24+ 'rfc_curp' : {'description' : 'name of the platform being created' },
25+ 'establishment_date' : {
26+ 'description' : 'name of the platform being created'
27+ },
28+ 'country' : {'description' : 'name of the platform being created' },
29+ 'state' : {'description' : 'name of the platform being created' },
30+ 'economic_activity' : {
31+ 'description' : 'name of the platform being created'
32+ },
1933 }
2034 schema_extra = {
2135 'example' : {
2236 'id' : 'PT0123456789' ,
2337 'name' : 'Arteria' ,
2438 'created_at' : '2021-08-24T14:15:22Z' ,
39+ 'rfc_curp' : 'ART123456FFF' ,
40+ 'establishment_date' : '2021-08-24T14:15:22Z' ,
41+ 'country' : 'MX' ,
42+ 'state' : 'DF' ,
43+ 'economic_activity' : 'fiinances and technologies' ,
2544 }
2645 }
2746
0 commit comments