CommonFieldsInterface

Common fields for BookingAPI entities.

Implemented by

Fields

description (String!)

The description associated with the entity.

externalCode (String!)

User defined identifier.

id (ID!)

Identifies the primary key from the database.

metadata (JSON!)

Metadata associated with the entity.

name (String!)

The name of the entity.

openings (JSON!)
The openings of the record. The structure is as follows:
  {
  "monday": [{"open": "09:00", "close": "13:00"}, ...],
  "tuesday": [{"open": "09:00", "close": "13:00"}, ...],
  "wednesday": [{"open": "09:00", "close": "13:00"}, ...],
  "thursday": [{"open": "09:00", "close": "13:00"}, ...],
  "friday": [{"open": "09:00", "close": "13:00"}, ...],
  "saturday": [{"open": "09:00", "close": "13:00"}, ...],
  "sunday": [{"open": "09:00", "close": "13:00"}, ...],
  "holidays": ["2022-12-13", ...],
  "special_days": [{"date": "2021-12-13", "openings": [{"open": "09:00", "close": "13:00"}, ...]}, ...]
  }
  Each day contains an array of objects with "open" and "close" times in HH:MM format.
  "holidays" is an array of dates in YYYY-MM-DD format.
  "special_days" is an array of objects with a "date" and an array of "openings".
  "special_days" can be used to define special openings for specific dates

and can be used to override the default openings.

organizationId (ID!)

Primary key of the Organization associated with the entity.