Skip to content

Commit 0f417c6

Browse files
committed
readded fields
1 parent bf29b32 commit 0f417c6

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

cuenca/resources/users.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
UserStatus,
1515
UserUpdateRequest,
1616
)
17+
from cuenca_validations.types.enums import Country, Gender, State
1718
from cuenca_validations.types.identities import CurpField
1819
from pydantic import EmailStr
1920

@@ -44,6 +45,17 @@ class User(Creatable, Retrievable, Updateable, Queryable):
4445
beneficiaries: Optional[List[Beneficiary]]
4546
platform_id: Optional[str] = None
4647
clabe: Optional[Clabe] = None
48+
# These fields are added by identify when retrieving a User:
49+
names: Optional[str]
50+
first_surname: Optional[str]
51+
second_surname: Optional[str]
52+
curp: Optional[str]
53+
rfc: Optional[str]
54+
gender: Optional[Gender]
55+
date_of_birth: Optional[dt.datetime]
56+
state_of_birth: Optional[State]
57+
nationality: Optional[Country]
58+
country_of_birth: Optional[Country]
4759

4860
@property
4961
def balance(self) -> int:

cuenca/version.py

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

0 commit comments

Comments
 (0)