Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './fare-contract';
export {ErrorResponse, HttpError} from './error-response';
export {BookingAvailabilityType} from './offers/booking';
12 changes: 12 additions & 0 deletions src/offers/booking.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export enum BookingAvailabilityType {
/** The product supports booking and has available seats */
Available = 'available',
/** The product does not support booking */
BookingNotSupported = 'booking_not_supported',
/** No more seats are available for booking */
SoldOut = 'sold_out',
/** The product supports booking, but ticket sale isn't currently open */
Closed = 'closed',
/** Fallback state for unhandled errors */
Unknown = 'unknown',
}