import arrow
import attr
from attr import attrs, attrib
[docs]@attrs
class Provider(object):
id = attrib()
attributes = attrib()
links = attrib()
relationships = attrib()
[docs]@attrs
class ProviderAttribute(object):
follower_employee_id = attrib()
following_employee_id = attrib()
followed_at = attr.ib(converter=attr.converters.optional(arrow.get), default=None)
[docs]@attrs
class SpecificProvider(object):
id = attrib()
attributes = attrib()
links = attrib()
[docs]@attrs
class SpecificProviderAttribute(object):
name = attrib()
url = attrib()
[docs]@attrs
class ProviderLicence(object):
id = attrib()
attributes= attrib()
links = attrib()
relationships = attrib()
[docs]@attrs
class ProviderLicenceAttribute(object):
employee_id = attrib()
is_enabled = attrib()
created_at = attr.ib(converter=attr.converters.optional(arrow.get), default=None)