Skip to content

Commit 041298f

Browse files
committed
Add blacklist_validation_status and pronouns fields to User class
1 parent 7d026af commit 041298f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

cuenca/resources/users.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
UserRequest,
1515
UserStatus,
1616
UserUpdateRequest,
17+
VerificationStatus,
1718
)
1819
from cuenca_validations.types.enums import (
1920
AccountUseType,
@@ -84,6 +85,8 @@ class User(Creatable, Retrievable, Updateable, Queryable):
8485
state_of_birth: Optional[State] = None
8586
nationality: Optional[Country] = None
8687
country_of_birth: Optional[Country] = None
88+
blacklist_validation_status: Optional[VerificationStatus] = None
89+
pronouns: Optional[str] = None
8790

8891
@property
8992
def balance(self) -> int:
@@ -168,6 +171,7 @@ def update(
168171
monthly_movements_type: Optional[MonthlyMovementsType] = None,
169172
income_type: Optional[IncomeType] = None,
170173
pronouns: Optional[str] = None,
174+
blacklist_validation_status: Optional[VerificationStatus] = None,
171175
*,
172176
session: Session = global_session,
173177
) -> 'User':
@@ -190,6 +194,7 @@ def update(
190194
monthly_movements_type=monthly_movements_type,
191195
income_type=income_type,
192196
pronouns=pronouns,
197+
blacklist_validation_status=blacklist_validation_status,
193198
)
194199
return cls._update(id=user_id, **request.model_dump(), session=session)
195200

cuenca/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '2.1.14'
1+
__version__ = '2.1.15.dev1'
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.32.3
2-
cuenca-validations==2.1.19
2+
cuenca-validations==2.1.24.dev1
33
pydantic-extra-types==2.10.2

0 commit comments

Comments
 (0)