Packages

Top  Previous  Next

AL-Pro supports the concept of "packages" which are products with multiple components. Below is a screen shot of the Product Availability & Event Assignment form from AL-Pro.

 

 

Package Methods

 

 

ALPro_PackageAvailability

 

 

To get a list of products on multi component packages for the highlighted base "Scenic" you can use

 

als_get_package_products.cgi?base=8

 

which returns XML with the productcode

 

<row productcode="189" productname="Canyon Connoisseur SBG-5" basename="Scenic Airlines" basecode="8"/>

 

Using the productcode of 189 we can then ask for "Offerings"

 

als_get_package_offerings.cgi?product=189

 

This returns information about when a package is available during the year and corresponds with the form below

 

<row code="141" name="Summer 11:15am  extended" product="189" startdate="" enddate="" startmonth="4" endmonth="10" startday="1" endday="11" sun="True" mon="True" tue="True" wed="True" thu="False" fri="True" sat="True" notes="" active="True" lastupdated="6/6/2007 4:14:50 PM" productname="Canyon Connoisseur SBG-5" productcode="189"/>

 

In order to get availability the following call below is used. If no date param is specfied today's date is used by default

 

als_get_package_availablity.cgi?product=189

 

The XML returned includes 3 different name spaces: dates of the Package span, availability and alternate times. Note that a package may span several days.

 

<dates>

<row startdate="7/2/2007" enddate="7/2/2007"/>

</dates>

<availability>

<row eventcode="378496" eventdate="7/2/2007" eventtime="11:15" tourcode="115" tourshortname="SBG4" capacity="17" seats="0" basename="Scenic Airlines" basecode="8" avail="17"/>

</availability>

<alternate_times>

<row eventcode="376775" eventdate="7/2/2007" eventtime="05:10" tourcode="115" tourshortname="SBG4" capacity="17" seats="0" basename="Scenic Airlines" basecode="8" avail="17"/>