Source code for worldline.connect.sdk.v1.domain.mandate_contact_details
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://apireference.connect.worldline-solutions.com/
#
from typing import Optional
from worldline.connect.sdk.domain.data_object import DataObject
[docs]
class MandateContactDetails(DataObject):
"""
| Contact details of the consumer
"""
__email_address: Optional[str] = None
@property
def email_address(self) -> Optional[str]:
"""
| Email address of the customer
Type: str
"""
return self.__email_address
@email_address.setter
def email_address(self, value: Optional[str]) -> None:
self.__email_address = value
[docs]
def to_dictionary(self) -> dict:
dictionary = super(MandateContactDetails, self).to_dictionary()
if self.email_address is not None:
dictionary['emailAddress'] = self.email_address
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'MandateContactDetails':
super(MandateContactDetails, self).from_dictionary(dictionary)
if 'emailAddress' in dictionary:
self.email_address = dictionary['emailAddress']
return self