Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cuenca/resources/platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Platform(Creatable):

created_at: dt.datetime
name: str
rfc_curp: Optional[str] = None
rfc: Optional[str] = None
establishment_date: Optional[dt.date] = None
country: Optional[Country] = None
state: Optional[State] = None
Expand All @@ -23,7 +23,7 @@ class Platform(Creatable):
class Config:
fields = {
'name': {'description': 'name of the platform being created'},
'rfc_curp': {'description': 'RFC or CURP of the platform'},
'rfc': {'description': 'RFC or CURP of the platform'},
'establishment_date': {
'description': 'when the platform was established'
},
Expand All @@ -42,7 +42,7 @@ class Config:
'id': 'PT0123456789',
'name': 'Arteria',
'created_at': '2021-08-24T14:15:22Z',
'rfc_curp': 'ART123456FFF',
'rfc': 'ART123456FFF',
'establishment_date': '2021-08-24T14:15:22Z',
'country': 'MX',
'state': 'DF',
Expand All @@ -56,7 +56,7 @@ class Config:
def create(
cls,
name: str,
rfc_curp: Optional[str] = None,
rfc: Optional[str] = None,
establishment_date: Optional[str] = None,
country: Optional[Country] = None,
state: Optional[State] = None,
Expand All @@ -68,7 +68,7 @@ def create(
) -> 'Platform':
req = PlatformRequest(
name=name,
rfc_curp=rfc_curp,
rfc=rfc,
establishment_date=establishment_date,
country=country,
state=state,
Expand Down
2 changes: 1 addition & 1 deletion cuenca/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.11.0'
__version__ = '0.11.1'
CLIENT_VERSION = __version__
API_VERSION = '2020-03-19'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests==2.27.1
cuenca-validations==0.10.10
cuenca-validations==0.10.11
dataclasses>=0.7;python_version<"3.7"