Skip to content

Commit

Permalink
Bump cp (#326)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
alexviquez and LuisBrime authored Oct 25, 2022
1 parent 1632abe commit eb98b67
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions cuenca/resources/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
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.15.1'
__version__ = '0.15.2'
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.11.5
cuenca-validations==0.11.7
dataclasses>=0.7;python_version<"3.7"

0 comments on commit eb98b67

Please sign in to comment.