@voyant-travel/connect-cruises adapts Connect-normalized cruise inventory into a Voyant deployment’s cruises adapter boundary. It is a bridge for Connect consumers who sell cruises, not supplier-specific cruise connector code.
If you only need general Connect inventory in your catalog, the Connect adapter already handles cruises through its getContent path. Reach for this package when you want a dedicated cruise adapter aligned to the framework’s cruises boundary.
Install
Create the adapter
What it provides
createConnectCruiseAdapterto build the adapter.- A full
SourceRefshape for connection, provider, and external id identity. - List, detail, itinerary, ship, and sailing-pricing mappings for the Connect cruise read APIs.
- Reserve-mode booking commit.
Reserve-mode booking
Cruise bookings are scheduled inventory: you commit a specific sailing, cabin, fare, and occupancy. When Voyant callscreateBooking without an existing cabinCategoryRef.quoteId, the adapter asks Connect to lock the selected sailing, cabin, fare, and occupancy, then confirms the resulting quote through Connect cruise bookings.
You can tune how long a lock is held with the quoteTtlHours option.
Helpers and types
Helpers:passengerCountFromConnectOccupancy(occupancy) and connectFareComponentAmount(component). The ConnectCruisesNotImplementedError is thrown for cruise endpoints Connect does not yet expose.
Key types: ConnectCruiseAdapter, ConnectCruiseAdapterOptions, ConnectCruiseSourceRef, ConnectExternalCruise, ConnectExternalSailing, ConnectExternalShip, ConnectExternalPriceRow, ConnectExternalBookingInput, ConnectExternalBookingResult.
Next steps
Cruises module
The framework’s cruise modeling.
Connect adapter
The general-purpose catalog source adapter.