Education

class contacthub.models.education.Education(customer, parent_attr=None, properties_class=None, **attributes)[source]

Bases: object

Education entity definition.

class SCHOOL_TYPES[source]

Subclasses with school types for the schoolType field of Education

COLLEGE = 'COLLEGE'
HIGH_SCHOOL = 'HIGH_SCHOOL'
OTHER = 'OTHER'
PRIMARY_SCHOOL = 'PRIMARY_SCHOOL'
SECONDARY_SCHOOL = 'SECONDARY_SCHOOL'
delete()[source]

Remove this Education from the list of the Education for a Customer(specified in the constructor of the Education)

Returns:a Education object representing the deleted Education
classmethod from_dict(customer, attributes=None, parent_attr=None, properties_class=None)[source]

Create a new Education initialized by a specified dictionary of attributes

Parameters:
  • customer – the customer associated to this education object
  • parent_attr – the parent attribute for compiling the mutation tracker dictionary
  • attributes – key-value arguments for generating the structure of the Education’s attributes
  • properties_class – reference to the actual Properties class
Returns:

a new Education object

post()[source]

Post this Education in the list of the Education for a Customer(specified in the constructor of the Education)

Returns:a Education object representing the posted Education
put()[source]

Put this Education in the list of the Education for a Customer(specified in the constructor of the Education)

Returns:a Education object representing the putted Education
to_dict()[source]

Convert this Education in a dictionary containing his attributes.

Returns:a new dictionary representing the attributes of this Education