Skip to content

Commit 7f86e35

Browse files
authored
Merge pull request #6 from krcb197/5-add-first_name-and-last_name-support-to-ticket
Adding first and last name support
2 parents b65d6ff + 388f126 commit 7f86e35

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/pytito/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
1818
Variables that describes the Package
1919
"""
20-
__version__ = "0.0.5"
20+
__version__ = "0.0.6"

src/pytito/admin/ticket.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,20 @@ def name(self) -> str:
9494
"""
9595
return self._json_content['name']
9696

97+
@property
98+
def first_name(self) -> str:
99+
"""
100+
First Name of the ticket holder
101+
"""
102+
return self._json_content['first_name']
103+
104+
@property
105+
def last_name(self) -> str:
106+
"""
107+
Last Name of the ticket holder
108+
"""
109+
return self._json_content['last_name']
110+
97111
@property
98112
def email(self) -> str:
99113
"""

0 commit comments

Comments
 (0)