Skip to content

Commit eb98b67

Browse files
Bump cp (#326)
* added missing fields to user resource * bump dev version * bump validations * remove more data * list * bump * readded fields * wrong date type * version * fixed version Co-authored-by: Luis Brime <luisbrimeg@gmail.com>
1 parent 1632abe commit eb98b67

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
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.date]
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.1'
1+
__version__ = '0.15.2'
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.11.5
2+
cuenca-validations==0.11.7
33
dataclasses>=0.7;python_version<"3.7"

0 commit comments

Comments
 (0)