Source code for worldline.connect.sdk.v1.domain.contact_details_base
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from worldline.connect.sdk.domain.data_object import DataObject
[docs]class ContactDetailsBase(DataObject):
__email_address = None
__email_message_type = None
@property
def email_address(self):
"""
| Email address of the customer
Type: str
"""
return self.__email_address
@email_address.setter
def email_address(self, value):
self.__email_address = value
@property
def email_message_type(self):
"""
| Preference for the type of email message markup
* plain-text
* html
Type: str
"""
return self.__email_message_type
@email_message_type.setter
def email_message_type(self, value):
self.__email_message_type = value
[docs] def to_dictionary(self):
dictionary = super(ContactDetailsBase, self).to_dictionary()
if self.email_address is not None:
dictionary['emailAddress'] = self.email_address
if self.email_message_type is not None:
dictionary['emailMessageType'] = self.email_message_type
return dictionary
[docs] def from_dictionary(self, dictionary):
super(ContactDetailsBase, self).from_dictionary(dictionary)
if 'emailAddress' in dictionary:
self.email_address = dictionary['emailAddress']
if 'emailMessageType' in dictionary:
self.email_message_type = dictionary['emailMessageType']
return self