Skip to content

Commit 3c67773

Browse files
authored
Renaming field in resource (#276)
* Renaming field rfc_curp to rfc * Version * Requirements * empty
1 parent abaaff6 commit 3c67773

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cuenca/resources/platforms.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Platform(Creatable):
1212

1313
created_at: dt.datetime
1414
name: str
15-
rfc_curp: Optional[str] = None
15+
rfc: Optional[str] = None
1616
establishment_date: Optional[dt.date] = None
1717
country: Optional[Country] = None
1818
state: Optional[State] = None
@@ -23,7 +23,7 @@ class Platform(Creatable):
2323
class Config:
2424
fields = {
2525
'name': {'description': 'name of the platform being created'},
26-
'rfc_curp': {'description': 'RFC or CURP of the platform'},
26+
'rfc': {'description': 'RFC or CURP of the platform'},
2727
'establishment_date': {
2828
'description': 'when the platform was established'
2929
},
@@ -42,7 +42,7 @@ class Config:
4242
'id': 'PT0123456789',
4343
'name': 'Arteria',
4444
'created_at': '2021-08-24T14:15:22Z',
45-
'rfc_curp': 'ART123456FFF',
45+
'rfc': 'ART123456FFF',
4646
'establishment_date': '2021-08-24T14:15:22Z',
4747
'country': 'MX',
4848
'state': 'DF',
@@ -56,7 +56,7 @@ class Config:
5656
def create(
5757
cls,
5858
name: str,
59-
rfc_curp: Optional[str] = None,
59+
rfc: Optional[str] = None,
6060
establishment_date: Optional[str] = None,
6161
country: Optional[Country] = None,
6262
state: Optional[State] = None,
@@ -68,7 +68,7 @@ def create(
6868
) -> 'Platform':
6969
req = PlatformRequest(
7070
name=name,
71-
rfc_curp=rfc_curp,
71+
rfc=rfc,
7272
establishment_date=establishment_date,
7373
country=country,
7474
state=state,

cuenca/version.py

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

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
requests==2.27.1
2-
cuenca-validations==0.10.10
2+
cuenca-validations==0.10.11
33
dataclasses>=0.7;python_version<"3.7"

0 commit comments

Comments
 (0)