Skip to main content

AvailabilityWindow

Stentor API Reference


Stentor API Reference / stentor-models/src / AvailabilityWindow

Interface: AvailabilityWindow

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:47

A concrete arrival window on a date, as returned by the Availability API.

Every window is a request the business confirms; it is never a guaranteed appointment.

Properties​

start​

start: string

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:51

ISO 8601 with offset, business timezone.


end​

end: string

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:55

ISO 8601 with offset, business timezone.


status​

status: AvailabilityWindowStatus

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:56


basis​

basis: AvailabilityWindowBasis

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:57


confirmation​

confirmation: "business_confirms"

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:61

The business confirms every booking. Explicit so no consumer presents a window as a guaranteed booking.


classId​

classId: string

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:65

AvailabilityClass.id the window was computed for.


remaining?​

optional remaining?: number

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:69

Bookings left in the window for the class, when the class is capped.


bookingUrl?​

optional bookingUrl?: string

Defined in: packages/stentor-models/src/Services/AvailabilityWindow.ts:73

Booking link that opens the form with this window pre-selected.