Source code for ingenico.connect.sdk.domain.definitions.company_information
# -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/
#
from ingenico.connect.sdk.data_object import DataObject
[docs]class CompanyInformation(DataObject):
__name = None
__vat_number = None
@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.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 'name' in dictionary:
self.name = dictionary['name']
if 'vatNumber' in dictionary:
self.vat_number = dictionary['vatNumber']
return self