2017 © Pedro Peláez
 

library channelmanagerinterface

Interface classes and objects for the Invia channel manager interface

image

invia/channelmanagerinterface

Interface classes and objects for the Invia channel manager interface

  • Wednesday, July 18, 2018
  • by torsten-burschka-invia
  • Repository
  • 1 Watchers
  • 0 Stars
  • 325 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 20 Versions
  • 34 % Grown

The README.md

ChannelManager Interface

This library provides the interfaces and classes for the ChannelManager Interface of the company Invia to write your own adapters. To do this, the adapter must implement the supplied adapter interface., (*1)

AdapterInterface

The following methods must be implemented:, (*2)

getAdapterKey

Each adapter requires a unique key to load it later and assign it to one (or more) channel manager(s)., (*3)

getUrlPath

Each adapter will be accessible on a special endpoint in the ChannelManager Interface. To do this, the adapter must define the last part of the url., (*4)

setRequest(Request request)

The request received at the endpoint of the channel manager interface is passed to the adapter using this method., (*5)

getCredentials

With the getCredentials method, the adapter must read and return the credentials from the request., (*6)

handleRequest(FacadeInterface facade)

If the credentials have been accepted by the ChannelManager Interface, the handleRequest method is called on the adapter and must process the request. The adapter can access the possible methods of the ChannelManager Interface via the given facade., (*7)

handleException(CMIException exception)

If an exception is thrown (by the ChannelManager Interface or an adapter), this method has to handle this exception and creating valid response., (*8)

BookingNotifyInterface

The adapter can also implement the BookingNotifyInterface. A Channel Manager can be informed about a new booking by a customer., (*9)

bookingNotify(Booking booking)

The booking object contains all the necessary information that is collected during a booking., (*10)

TwigInterface

If you require Twig to render a response, the adapter can implement the TwigInterface., (*11)

setTwig(Twig\Environment twig)

A method which set the Twig environment direct before the handleRequest method is called., (*12)

FacadeInterface

getHotel(HotelRequest hotelRequest)

Get Hotel with basic information., (*13)

getRooms(RoomRequest roomRequest)

A query of all rooms for the requested hotel., (*14)

getRatePlans(RatePlanRequest ratePlanRequest)

A query of all rate plans for the requested hotel., (*15)

getBookings(BookingRequest bookingRequest)

A query for bookings using parameters that can be combined in different ways., (*16)

getRates(RateRequest rateRequest)

A query for rates in a given date range., (*17)

saveRates(RateSaveRequest rateSaveRequest)

Add/update multiple rates in a given date range. The added/updated rates will be returned., (*18)

The Versions

18/07 2018

dev-master

9999999-dev

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

18/07 2018

0.11.1

0.11.1.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2018

0.11.0

0.11.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

19/04 2018

0.10.0

0.10.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

10/04 2018

0.9.1

0.9.1.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

10/04 2018

0.9.0

0.9.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

04/04 2018

0.8.0

0.8.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

23/03 2018

0.7.2

0.7.2.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

16/03 2018

0.7.1

0.7.1.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

08/03 2018

0.7.0

0.7.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

0.6.1

0.6.1.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

0.6.0

0.6.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

05/02 2018

0.5.0

0.5.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

31/01 2018

0.4.2

0.4.2.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

25/01 2018

0.4.1

0.4.1.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

0.4.0

0.4.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

05/01 2018

0.3.1

0.3.1.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

01/11 2017

0.3.0

0.3.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

27/10 2017

0.2.0

0.2.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires

20/10 2017

0.1.0

0.1.0.0

Interface classes and objects for the Invia channel manager interface

  Sources   Download

MIT

The Requires

 

The Development Requires