add method to get ip information

This commit is contained in:
2024-03-12 20:23:52 +01:00
parent a8ae9fcb88
commit c2707ed005
2 changed files with 81 additions and 0 deletions
+7
View File
@@ -12,6 +12,13 @@ class ContactPojo:
mail: str
store: str
ip_country: str
ip_address: str
isp: str = None
def __repr__(self):
return "phone:{}, passport:{}, last_name:{}, first_name:{}, mail:{}, store:{}, ip_country:{}, ip_address:{},isp:{}".format(
self.phone, self.passport, self.last_name, self.first_name, self.mail, self.store, self.ip_country,
self.ip_address, self.isp)
def __init__(self, phone_number: str, passport_number: str, last_name: str, first_name: str, mail: str, store: str,
ip_country="FR"):