You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create your own pms connect adapters by implement the IBaseAdapter interface
Example 🐣 :
import{IBaseAdapter,RestRequestDriver,Models}from'@cord-travel/pms-connect';classMyAdapterextendsRestRequestDriverimplementsIBaseAdapter{// Implement all available methods here...// ...}
API Reference 📚 [WIP]
IBaseAdapter Interface methods
This methods are implemented in adapters. all methods return Promise
Account
Method
Drescription
Params
Return
getAccount
Get Authorized account details
None
Hotel
Method
Description
Params
Return
getHotels
List hotels
None
IConnected_ListOf<IConnected_Hotel>
getHotelById
Get a single hotel details by id
ID
IConnected_Hotel
RoomType
Method
Description
Params
Return
getRoomsTypes
List room types
HotelId
IConnected_ListOf<IConnected_RoomType>
getRoomTypeById
Room type detail
RoomTypeId
IConnected_RoomType
RatePlan
Method
Description
Params
Return
getRatePlansByHotelId
Get rateplan list by hotel
hotelId
IConnected_ListOf<IConnected_RatePlan>
getRatePlanById
Get rateplan details
id
IConnected_RatePlan
Rate
Method
Description
Params
Return
getRatesByRatePlan
Get rates
rateplan<IConnected_RatePlan> or <IConnected_RatePlanItem>