Skip to content

Commit 7c8bf10

Browse files
committed
More fields for platforms
1 parent 625cb1c commit 7c8bf10

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

cuenca/resources/platforms.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 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

66
from ..http import Session, session as global_session
77
from .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

cuenca/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '0.10.1.dev2'
1+
__version__ = '0.10.1.dev3'
22
CLIENT_VERSION = __version__
33
API_VERSION = '2020-03-19'

0 commit comments

Comments
 (0)