Source code for worldline.connect.sdk.v1.domain.company_information

# -*- 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 CompanyInformation(DataObject): __date_of_incorporation = None __name = None __vat_number = None @property def date_of_incorporation(self): """ | The date of incorporation is the specific date when the company was registered with the relevant authority. | Format: YYYYMMDD Type: str """ return self.__date_of_incorporation @date_of_incorporation.setter def date_of_incorporation(self, value): self.__date_of_incorporation = value @property def name(self): """ | Name of company, as a customer Type: str """ return self.__name @name.setter def name(self, value): self.__name = value @property def vat_number(self): """ | Local VAT number of the company Type: str """ return self.__vat_number @vat_number.setter def vat_number(self, value): self.__vat_number = value
[docs] def to_dictionary(self): dictionary = super(CompanyInformation, self).to_dictionary() if self.date_of_incorporation is not None: dictionary['dateOfIncorporation'] = self.date_of_incorporation if self.name is not None: dictionary['name'] = self.name if self.vat_number is not None: dictionary['vatNumber'] = self.vat_number return dictionary
[docs] def from_dictionary(self, dictionary): super(CompanyInformation, self).from_dictionary(dictionary) if 'dateOfIncorporation' in dictionary: self.date_of_incorporation = dictionary['dateOfIncorporation'] if 'name' in dictionary: self.name = dictionary['name'] if 'vatNumber' in dictionary: self.vat_number = dictionary['vatNumber'] return self