budosystems.models.style.Business¶
- class Business¶
Bases:
Contactable
,BasicInfo
Represents the business(es) at the root of the database.
- add_studio(studio: Studio, reciprocate: bool = True) None ¶
Add a business location to this business.
- Parameters:
studio – The studio to add.
reciprocate – Whether to reciprocate the operation on
studio
.
- remove_studio(studio: Studio, reciprocate: bool = True) None ¶
Removes a business location from this business.
- Parameters:
studio – The studio to remove.
reciprocate – Whether to reciprocate the operation on
studio
.
- __init__(*, entity_id: UUID = <singleton MissingUUID>, name: str, slug: str, description: str = '', id_name: str = _Nothing.NOTHING, phone_numbers: ContactList[PhoneNumber] = _Nothing.NOTHING, email_addresses: ContactList[EmailAddress] = _Nothing.NOTHING, physical_addresses: ContactList[PhysicalAddress] = _Nothing.NOTHING) None ¶
Method generated by attrs for class Business.
- phone_numbers: ContactList[PhoneNumber]¶
- email_addresses: ContactList[EmailAddress]¶
- physical_addresses: ContactList[PhysicalAddress]¶
- id_name: str¶
This redefinition of the
Entity.id_name
field changes the default factory to point to theslug
field.
- entity_id: UUID¶
(Optional) The unique identifier for an instance of
Entity
(and all its subclasses)