Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cuenca/resources/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
UserRequest,
UserStatus,
UserUpdateRequest,
VerificationStatus,
)
from cuenca_validations.types.enums import (
AccountUseType,
Expand Down Expand Up @@ -84,6 +85,10 @@ class User(Creatable, Retrievable, Updateable, Queryable):
state_of_birth: Optional[State] = None
nationality: Optional[Country] = None
country_of_birth: Optional[Country] = None
blacklist_validation_status: Optional[VerificationStatus] = None
pronouns: Optional[str] = None
deactivated_at: Optional[dt.datetime] = None
user_tos_agreements_id: Optional[str] = None

@property
def balance(self) -> int:
Expand Down Expand Up @@ -168,6 +173,7 @@ def update(
monthly_movements_type: Optional[MonthlyMovementsType] = None,
income_type: Optional[IncomeType] = None,
pronouns: Optional[str] = None,
blacklist_validation_status: Optional[VerificationStatus] = None,
*,
session: Session = global_session,
) -> 'User':
Expand All @@ -190,6 +196,7 @@ def update(
monthly_movements_type=monthly_movements_type,
income_type=income_type,
pronouns=pronouns,
blacklist_validation_status=blacklist_validation_status,
)
return cls._update(id=user_id, **request.model_dump(), session=session)

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__ = '2.1.14'
__version__ = '2.1.15'
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.32.3
cuenca-validations==2.1.19
cuenca-validations==2.1.24
pydantic-extra-types==2.10.2
Loading