37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
class ClientContact(object):
|
|
def __init__(self, first_name: str = '',
|
|
last_name: str = '',
|
|
email: str = '',
|
|
phone: str = '',
|
|
send_email: bool = True,
|
|
custom_value1: str = '',
|
|
custom_value2: str = '',
|
|
custom_value3: str = '',
|
|
custom_value4: str = ''):
|
|
self.first_name = first_name
|
|
self.last_name = last_name
|
|
self.email = email
|
|
self.phone = phone
|
|
|
|
# Flag for whether the contact will receive emails.
|
|
self.send_email = send_email
|
|
|
|
# Custom values
|
|
self.custom_value1 = custom_value1
|
|
self.custom_value2 = custom_value2
|
|
self.custom_value3 = custom_value3
|
|
self.custom_value4 = custom_value4
|
|
|
|
def __str__(self):
|
|
return 'ClientContact({}, {}, {}, {}, {}, {}, {}, {}, {})'.format(
|
|
self.first_name,
|
|
self.last_name,
|
|
self.email,
|
|
self.phone,
|
|
self.send_email,
|
|
self.custom_value1,
|
|
self.custom_value2,
|
|
self.custom_value3,
|
|
self.custom_value4)
|
|
|