Versions in this module Expand all Collapse all v0 v0.0.2 Dec 15, 2022 v0.0.1 Oct 17, 2021 Changes in this version + const ARIUpdateURL + const AssociateUserToPMSURL + const BookingCancelURL + const BookingListURL + const ChannelListURL + const PropertyChannelListURL + const RoomAvailabilityListURL + const VendorSetURL + func SendRequest(url string, body interface{}, res interface{}, debug bool) error + type ARIRequest struct + Allocations []Allocation + AuthPropertyID string + AuthUserToken string + AuthVendorID string + AuthVendorPassword string + Channels []string + Options ARIRequestOptions + type ARIRequestOptions struct + IgnoreInvalidRooms bool + QueryForStatus bool + type ARIUpdateMessage struct + End int + EndDate string + EndDay int + ID int + MaxStay string + MinStay string + Msg string + Pid int + Price string + RoomID string + Source string + Start int + StartDate string + StartDay int + Type string + Units string + User string + type ARIUpdateResponse struct + Channels struct{} + Errors []ErrResponse + Messages []ARIUpdateMessage + Options struct{ ... } + Success bool + UpdateID interface{} + type Allocation struct + EndDate string + MaxStay string + MinStay string + Price string + RoomID string + StartDate string + Units string + type AssociateUserToPMSRequest struct + AuthUserID string + AuthUserPassword string + AuthVendorID string + AuthVendorPassword string + PMSUserID string + type AssociateUserToPMSResponse struct + AuthUserToken string + Success bool + type BookingCancelReq struct + AuthPropertyID string + AuthUserToken string + AuthVendorID string + AuthVendorPassword string + CancellationReason string + MyAllocatorID string + type BookingCancelResp struct + Bookings []struct{ ... } + EndDate string + QueryType string + StartDate string + Success bool + type BookingListReq struct + AuthPropertyID string + AuthUserToken string + AuthVendorID string + AuthVendorPassword string + ModificationEndDate string + ModificationStartDate string + type BookingListRes struct + Bookings []struct{ ... } + EndDate string + QueryType string + StartDate string + Success bool + type Channel struct + Currency string + Status string + type ChannelListRes struct + Channels struct{ ... } + Success bool + type ErrResponse struct + ErrorID int + ErrorMsg string + ErrorTicket string + type MyAllocator struct + AuthVendorID string + AuthVendorPassword string + Debug bool + func New(vendorID, vendorPassword string) (*MyAllocator, error) + func (m *MyAllocator) ARIUpdate(req *ARIRequest) (*ARIUpdateResponse, error) + func (m *MyAllocator) BookingCancel(req *BookingCancelReq) (*BookingCancelResp, error) + func (m *MyAllocator) BookingList(req *BookingListReq) (*BookingListRes, error) + func (m *MyAllocator) ChannelList() (*ChannelListRes, error) + func (m *MyAllocator) PropertyChannelList(req *PropertyChannelListReq) (*PropertyChannelListRes, error) + func (m *MyAllocator) RoomAvailabilityList(req *RoomAvailabilityListReq) (*RoomAvailabilityListRes, error) + func (m *MyAllocator) SetDebug(enable bool) *MyAllocator + func (m *MyAllocator) UpdateUserToken(req *AssociateUserToPMSRequest) (*AssociateUserToPMSResponse, error) + func (m *MyAllocator) UpdateVendor(id, password string) *MyAllocator + func (m *MyAllocator) VendorSet(req *VendorSetRequest) (*VendorSetResponse, error) + type PropertyChannelListReq struct + AuthPropertyID string + AuthUserToken string + AuthVendorID string + AuthVendorPassword string + type PropertyChannelListRes struct + Properties []struct{ ... } + Success bool + type RoomAvailabilityListReq struct + AuthPropertyID string + AuthUserToken string + AuthVendorID string + AuthVendorPassword string + EndDate string + StartDate string + type RoomAvailabilityListRes struct + Rooms []struct{ ... } + Success bool + type VendorReq struct + AuthVendorID string + AuthVendorPassword string + type VendorSetRequest struct + AuthVendorID string + AuthVendorPassword string + CallbackNotifyBooking bool + CallbackPassword string + CallbackURL string + type VendorSetResponse struct + CallbackNotifyBooking bool + CallbackPassword string + CallbackURL string + Success bool