Source code for worldline.connect.sdk.v1.domain.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.v1.domain.contact_details_base import ContactDetailsBase
[docs]
class ContactDetails(ContactDetailsBase):
__fax_number: Optional[str] = None
__mobile_phone_number: Optional[str] = None
__phone_number: Optional[str] = None
__work_phone_number: Optional[str] = None
@property
def fax_number(self) -> Optional[str]:
"""
| Fax number of the customer
Type: str
"""
return self.__fax_number
@fax_number.setter
def fax_number(self, value: Optional[str]) -> None:
self.__fax_number = value
@property
def mobile_phone_number(self) -> Optional[str]:
"""
| International version of the mobile phone number of the customer including the leading + (i.e. +16127779311).
Type: str
"""
return self.__mobile_phone_number
@mobile_phone_number.setter
def mobile_phone_number(self, value: Optional[str]) -> None:
self.__mobile_phone_number = value
@property
def phone_number(self) -> Optional[str]:
"""
| Phone number of the customer. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
Type: str
"""
return self.__phone_number
@phone_number.setter
def phone_number(self, value: Optional[str]) -> None:
self.__phone_number = value
@property
def work_phone_number(self) -> Optional[str]:
"""
| International version of the work phone number of the customer including the leading + (i.e. +31235671500)
Type: str
"""
return self.__work_phone_number
@work_phone_number.setter
def work_phone_number(self, value: Optional[str]) -> None:
self.__work_phone_number = value
[docs]
def to_dictionary(self) -> dict:
dictionary = super(ContactDetails, self).to_dictionary()
if self.fax_number is not None:
dictionary['faxNumber'] = self.fax_number
if self.mobile_phone_number is not None:
dictionary['mobilePhoneNumber'] = self.mobile_phone_number
if self.phone_number is not None:
dictionary['phoneNumber'] = self.phone_number
if self.work_phone_number is not None:
dictionary['workPhoneNumber'] = self.work_phone_number
return dictionary
[docs]
def from_dictionary(self, dictionary: dict) -> 'ContactDetails':
super(ContactDetails, self).from_dictionary(dictionary)
if 'faxNumber' in dictionary:
self.fax_number = dictionary['faxNumber']
if 'mobilePhoneNumber' in dictionary:
self.mobile_phone_number = dictionary['mobilePhoneNumber']
if 'phoneNumber' in dictionary:
self.phone_number = dictionary['phoneNumber']
if 'workPhoneNumber' in dictionary:
self.work_phone_number = dictionary['workPhoneNumber']
return self