Documentation
¶
Index ¶
- Variables
- type Action
- type Capability
- type Client
- func (c *Client) PullGuestRequests(ctx context.Context, r guestrequests.ReadRQ) (*ClientResponse[guestrequests.ResRetrieveRS], error)
- func (c *Client) PushAcknowledgement(ctx context.Context, r guestrequests.NotifReportRQ) (*ClientResponse[guestrequests.NotifReportRS], error)
- func (c *Client) PushHotelDescriptiveContentNotif(ctx context.Context, r inventory.HotelDescriptiveContentNotifRQ) (*ClientResponse[inventory.HotelDescriptiveContentNotifRS], error)
- func (c *Client) PushHotelInvCountNotif(ctx context.Context, r freerooms.HotelInvCountNotifRQ) (*ClientResponse[freerooms.HotelInvCountNotifRS], error)
- func (c *Client) PushRatePlans(ctx context.Context, r rateplans.HotelRatePlanNotifRQ) (*ClientResponse[rateplans.HotelRatePlanNotifRS], error)
- type ClientConfig
- type ClientResponse
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedAction = errors.New("unsupported action")
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action string
const ( ActionPing Action = "OTA_Ping:Handshaking" ActionHotelInvCountNotif Action = "OTA_HotelInvCountNotif:FreeRooms" ActionReadGuestRequests Action = "OTA_Read:GuestRequests" ActionNotifReportGuestRequests Action = "OTA_NotifReport:GuestRequests" ActionHotelDescriptiveContentNotifInventory Action = "OTA_HotelDescriptiveContentNotif:Inventory" ActionHotelDescriptiveContentNotifInfo Action = "OTA_HotelDescriptiveContentNotif:Info" ActionHotelRatePlanNotifRatePlans Action = "OTA_HotelRatePlanNotif:RatePlans" )
func (Action) HandshakeName ¶
type Capability ¶
type Capability string
const ( CapabilityHotelInvCountNotifAcceptRooms Capability = "OTA_HotelInvCountNotif_accept_rooms" CapabilityHotelInvCountNotifAcceptRoomCategories Capability = "OTA_HotelInvCountNotif_accept_categories" CapabilityHotelInvCountNotifAcceptDeltas Capability = "OTA_HotelInvCountNotif_accept_deltas" CapabilityHotelInvCountNotifAcceptOutOfOrder Capability = "OTA_HotelInvCountNotif_accept_out_of_order" CapabilityHotelInvCountNotifAcceptOutOfMarket Capability = "OTA_HotelInvCountNotif_accept_out_of_market" CapabilityHotelInvCountNotifAcceptClosingSeasons Capability = "OTA_HotelInvCountNotif_accept_closing_seasons" CapabilityHotelDescriptiveContentNotifInventoryUseRooms Capability = "OTA_HotelDescriptiveContentNotif_Inventory_use_rooms" CapabilityHotelDescriptiveContentNotifInventoryOccupancyChildren Capability = "OTA_HotelDescriptiveContentNotif_Inventory_occupancy_children" CapabilityHotelRatePlanNotifAcceptArrivalDOW Capability = "OTA_HotelRatePlanNotif_accept_ArrivalDOW" CapabilityHotelRatePlanNotifAcceptDepartureDOW Capability = "OTA_HotelRatePlanNotif_accept_DepartureDOW" CapabilityHotelRatePlanNotifAcceptRatePlanBookingRule Capability = "OTA_HotelRatePlanNotif_accept_RatePlan_BookingRule" CapabilityHotelRatePlanNotifAcceptRatePlanRoomTypeBookingRule Capability = "OTA_HotelRatePlanNotif_accept_RatePlan_RoomType_BookingRule" CapabilityHotelRatePlanNotifAcceptRatePlanMixedBookingRule Capability = "OTA_HotelRatePlanNotif_accept_RatePlan_mixed_BookingRule" CapabilityHotelRatePlanNotifAcceptSupplements Capability = "OTA_HotelRatePlanNotif_accept_Supplements" CapabilityHotelRatePlanNotifAcceptFreeNightsOffers Capability = "OTA_HotelRatePlanNotif_accept_FreeNightsOffers" CapabilityHotelRatePlanNotifAcceptFamilyOffers Capability = "OTA_HotelRatePlanNotif_accept_FamilyOffers" CapabilityHotelRatePlanNotifAcceptOverlay Capability = "OTA_HotelRatePlanNotif_accept_overlay" CapabilityHotelRatePlanNotifAcceptRatePlanJoin Capability = "OTA_HotelRatePlanNotif_accept_RatePlanJoin" CapabilityHotelRatePlanNotifAcceptOfferRuleBookingOffset Capability = "OTA_HotelRatePlanNotif_accept_OfferRule_BookingOffset" CapabilityHotelRatePlanNotifAcceptOfferRuleDOWLOS Capability = "OTA_HotelRatePlanNotif_accept_OfferRule_DOWLOS" )
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config ClientConfig) (*Client, error)
func (*Client) PullGuestRequests ¶
func (c *Client) PullGuestRequests(ctx context.Context, r guestrequests.ReadRQ) (*ClientResponse[guestrequests.ResRetrieveRS], error)
func (*Client) PushAcknowledgement ¶
func (c *Client) PushAcknowledgement(ctx context.Context, r guestrequests.NotifReportRQ) (*ClientResponse[guestrequests.NotifReportRS], error)
func (*Client) PushHotelDescriptiveContentNotif ¶
func (c *Client) PushHotelDescriptiveContentNotif(ctx context.Context, r inventory.HotelDescriptiveContentNotifRQ) (*ClientResponse[inventory.HotelDescriptiveContentNotifRS], error)
func (*Client) PushHotelInvCountNotif ¶
func (c *Client) PushHotelInvCountNotif(ctx context.Context, r freerooms.HotelInvCountNotifRQ) (*ClientResponse[freerooms.HotelInvCountNotifRS], error)
func (*Client) PushRatePlans ¶
func (c *Client) PushRatePlans(ctx context.Context, r rateplans.HotelRatePlanNotifRQ) (*ClientResponse[rateplans.HotelRatePlanNotifRS], error)
type ClientConfig ¶
type ClientResponse ¶
Click to show internal directories.
Click to hide internal directories.