This shows you the differences between two versions of the page.
— |
ors-soap-api:public:getservicetypes [2015/02/21 20:28] (current) admin created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== getServiceTypes method ====== | ||
+ | |||
+ | Get a list of ORS service types. | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | <code php> | ||
+ | public array getServiceTypes( string $lang ) | ||
+ | </code> | ||
+ | |||
+ | ===== Parameters ===== | ||
+ | |||
+ | * ''lang (string)'' : language. If not valid language is entered then default ''en'' is used. | ||
+ | |||
+ | ===== Return Values ===== | ||
+ | |||
+ | Returns a list of service types in ORS: | ||
+ | |||
+ | <code> | ||
+ | Array | ||
+ | ( | ||
+ | [0] => Array | ||
+ | ( | ||
+ | [code] => HP | ||
+ | [translation] => half board | ||
+ | ) | ||
+ | |||
+ | [1] => Array | ||
+ | ( | ||
+ | [code] => AI | ||
+ | [translation] => all inclusive | ||
+ | ) | ||
+ | |||
+ | [2] => Array | ||
+ | ( | ||
+ | [code] => OV | ||
+ | [translation] => accommodation only | ||
+ | ) | ||
+ | |||
+ | [3] => Array | ||
+ | ( | ||
+ | [code] => UF | ||
+ | [translation] => bed & breakfast | ||
+ | ) | ||
+ | |||
+ | [4] => Array | ||
+ | ( | ||
+ | [code] => VP | ||
+ | [translation] => full board | ||
+ | ) | ||
+ | |||
+ | [5] => Array | ||
+ | ( | ||
+ | [code] => LP | ||
+ | [translation] => package | ||
+ | ) | ||
+ | |||
+ | [6] => Array | ||
+ | ( | ||
+ | [code] => NV | ||
+ | [translation] => overnight with dinner | ||
+ | ) | ||
+ | |||
+ | [7] => Array | ||
+ | ( | ||
+ | [code] => HP+ | ||
+ | [translation] => half board with extras | ||
+ | ) | ||
+ | |||
+ | [8] => Array | ||
+ | ( | ||
+ | [code] => AI+ | ||
+ | [translation] => all inclusive with extras | ||
+ | ) | ||
+ | |||
+ | [9] => Array | ||
+ | ( | ||
+ | [code] => VP+ | ||
+ | [translation] => full board plus | ||
+ | ) | ||
+ | |||
+ | [10] => Array | ||
+ | ( | ||
+ | [code] => LK | ||
+ | [translation] => by catalog program | ||
+ | ) | ||
+ | |||
+ | [11] => Array | ||
+ | ( | ||
+ | [code] => OL | ||
+ | [translation] => bed & lunch | ||
+ | ) | ||
+ | |||
+ | [12] => Array | ||
+ | ( | ||
+ | [code] => H+ | ||
+ | [translation] => half board + | ||
+ | ) | ||
+ | |||
+ | [13] => Array | ||
+ | ( | ||
+ | [code] => A+ | ||
+ | [translation] => all inclusive with extras | ||
+ | ) | ||
+ | |||
+ | [14] => Array | ||
+ | ( | ||
+ | [code] => V+ | ||
+ | [translation] => full board with extras | ||
+ | ) | ||
+ | |||
+ | [15] => Array | ||
+ | ( | ||
+ | [code] => LAI | ||
+ | [translation] => all inclusive light | ||
+ | ) | ||
+ | |||
+ | [16] => Array | ||
+ | ( | ||
+ | [code] => NF | ||
+ | [translation] => flight only | ||
+ | ) | ||
+ | |||
+ | [17] => Array | ||
+ | ( | ||
+ | [code] => TO | ||
+ | [translation] => transfer only | ||
+ | ) | ||
+ | |||
+ | [18] => Array | ||
+ | ( | ||
+ | [code] => SAI | ||
+ | [translation] => all inclusive soft | ||
+ | ) | ||
+ | |||
+ | ) | ||
+ | </code> | ||
+ | |||
+ | ===== Return parameters ===== | ||
+ | |||
+ | * ''code'' : srvice type code | ||
+ | * ''translation'' : room type translation (depending on entered $lang) | ||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | * Example | ||
+ | |||
+ | <code php> | ||
+ | $list = $soapClient->orsxml_api_call( 'getServiceTypes', 'en' ); | ||
+ | </code> | ||