Coverage for packages/clopos/src/integrify/clopos/schemas/users/object.py: 100%

41 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-10-19 02:39 +0000

1from integrify.clopos.schemas.common.object import Timestamp 

2from integrify.utils import UnsetOrNoneField 

3 

4 

5class User(Timestamp): 

6 id: int 

7 """Unique user identifier""" 

8 

9 email: UnsetOrNoneField[str] 

10 """Email address associated with the user""" 

11 

12 username: str 

13 """Display name shown in the POS""" 

14 

15 first_name: UnsetOrNoneField[str] 

16 """First name of the user""" 

17 

18 last_name: UnsetOrNoneField[str] 

19 """last name of the user""" 

20 

21 pin: str 

22 """POS PIN code""" 

23 

24 card: UnsetOrNoneField[str] 

25 """POS card number""" 

26 

27 mobile_number: UnsetOrNoneField[str] 

28 """Mobile number of the user""" 

29 

30 owner: int 

31 """1 if the user owns the brand, otherwise 0""" 

32 

33 hide: int 

34 """1 if hidden from POS selection, otherwise 0""" 

35 

36 salary: UnsetOrNoneField[int] 

37 """Salary of the user""" 

38 

39 barcode: UnsetOrNoneField[str] 

40 """POS barcode number""" 

41 

42 tip_message: UnsetOrNoneField[str] 

43 """Tip message shown in the POS""" 

44 

45 can_receive_tips: UnsetOrNoneField[bool] 

46 """Whether the user can receive tips or not""" 

47 

48 login_at: UnsetOrNoneField[str] 

49 """Timestamp when the user logged in""" 

50 

51 status: bool 

52 """Indicates whether the user account is active""" 

53 

54 bonus_balance_id: UnsetOrNoneField[int] 

55 """Balance ID of the user""" 

56 

57 properties: UnsetOrNoneField[dict | list] 

58 """User properties""" 

59 

60 image: UnsetOrNoneField[list[str]] 

61 """User images"""