diff --git a/cuenca/resources/users.py b/cuenca/resources/users.py index ef087ae2..fa164a73 100644 --- a/cuenca/resources/users.py +++ b/cuenca/resources/users.py @@ -14,6 +14,7 @@ UserStatus, UserUpdateRequest, ) +from cuenca_validations.types.enums import Country, Gender, State from cuenca_validations.types.identities import CurpField from pydantic import EmailStr @@ -44,6 +45,17 @@ class User(Creatable, Retrievable, Updateable, Queryable): beneficiaries: Optional[List[Beneficiary]] platform_id: Optional[str] = None clabe: Optional[Clabe] = None + # These fields are added by identify when retrieving a User: + names: Optional[str] + first_surname: Optional[str] + second_surname: Optional[str] + curp: Optional[str] + rfc: Optional[str] + gender: Optional[Gender] + date_of_birth: Optional[dt.date] + state_of_birth: Optional[State] + nationality: Optional[Country] + country_of_birth: Optional[Country] @property def balance(self) -> int: diff --git a/cuenca/version.py b/cuenca/version.py index 48e01fc8..c0dd317a 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.15.1' +__version__ = '0.15.2' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' diff --git a/requirements.txt b/requirements.txt index ec38bba5..2cb0f3d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ requests==2.27.1 -cuenca-validations==0.11.5 +cuenca-validations==0.11.7 dataclasses>=0.7;python_version<"3.7"