Common
The following operations are supported. For a formal definition, please review the Service Description.
-
GetAgencyList
Click Counter contains date and ip information about viseted location links. It's return as Dataset
Parameters sent:
token = Key number given upon login to system
blackList = If send 'N', it gets agency not in blacklist. If send empty it gets all agencies
sellDateFrom = Agencies beginning sell date
sellDateTo = Agencies sell date end
agencyType = Gets agencies with specified agency type. If agencyType is '0', it returns normal agencies else if '1', it returns Office, else if '2', it returns SubAgency
agencyWorkType = Gets agencies with specified work type. If agencyWorkType is '0', it returns standard work typed agencies else if '1', it returns B2B (Internet) work typed agencies, else if '2', it returns B2C (Internet) work typed agencies
minRecordDate = If minRecordDate is 01.01.0001, it gets all records. Otherwise, if minRecordDate is bigger than 01.01.1900 (it can not be less than 01.01.1900 except 01.01.0001 or it returns error), it gets records which added or changed after this date.
errorMsg = Used to control whether any fault will return or not.This is both returning and sent parameter. -
GetArrCity
Description: Gets arrival cities list as dataset
Parameters Sent
Token: Key number given upon login to system (string)
Country: RecID value in the list of countries coming from Getcountry method.If 0 is entered,cities of all the
countries come
depCity: RecID value in the list of countries coming from GetDepCity method. If 0 is entered,it doesn't check
arrival city
packType: If 'O', gets cities that have only hotel packages, if 'H' gets all cities that don't have only hotel packages, if '', gets all cities
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Arrival cities return as Dataset. Content:
RecID: Registration number (Unique)
Name: Arrival City Name
Country: Country of arrival city (Country RecID)
-
GetArrCityForHotel
Description: Gets arrival cities list as dataset
Parameters Sent
Token: Key number given upon login to system (string)
Country: RecID value in the list of countries coming from Getcountry method.If 0 is entered,cities of all the
countries come
depCity: RecID value in the list of countries coming from GetDepCity method. If 0 is entered,it doesn't check
arrival city
hotel: hotel for arrivat cities (string)
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Arrival cities return as Dataset. Content:
RecID: Registration number (Unique)
Name: Arrival City Name
Country: Country of arrival city (Country RecID)
-
GetAutoCompleteData
Gets Auto Complete Data. It's return as Dataset
Parameters sent:
token = Key number given upon login to system
errorMsg = Used to control whether any fault will return or not.This is both returning and sent parameter. Returning Parameters
Priorty information returns as Dataset.AutoComplete:
Priorty: Priorty return Value Type
1: Hotel
2: Location
3: Package For Tour (Foreign)
5: CountryName
5: Code
-
GetCanReason
Description: Gets reasons list for reservation cancel.
Parameters Sent
Token: Key number given upon login to system (string)
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Cancel Reasons return as Dataset.
-
GetComboBoxData
For San Computer - GetCountriesForTour
-
GetCountry
Description: RecID value coming from country list is used as parameter in other methods.Coming country list is the list of the countries whose packages are created. It means, list of the countries which can make hotel sales.
Parameters Sent
Token: Key number given upon login to system (string)
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
List of countries returns as Dataset. Content:
RecID: Registration number (Unique)
Code: Country short code
Name: Country name
- GetCountryByPackType
-
GetCountrybyDepCity
Description: RecID value coming from country list is used as parameter in other methods.Coming country list is the list of the countries whose packages are created. It means, list of the countries which can make hotel sales.
Parameters Sent
Token: Key number given upon login to system (string)
depCity Gets countries which has flight path from this dep city errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
List of countries returns as Dataset. Content:
RecID: Registration number (Unique)
Code: Country short code
Name: Country name
-
GetCruiseContent
Gets Cruise GetCruiseContent. It's return as Dataset
Parameters sent:
token = Key number given upon login to system
locaiton = If emty is sent, all the airports return.
errorMsg = Used to control whether any fault will return or not.This is both returning and sent parameter. -
GetCruiseData
Gets All Cruise Data. It's return as Dataset
Parameters sent:
token = Key number given upon login to system
errorMsg = Used to control whether any fault will return or not.This is both returning and sent parameter. -
GetDepCity
Description: RecID value coming from depature citiy list is used as parameter in other methods.Coming
depature citiy list is the list of the cities whose packages are created. It means, list of the cities which can make
hotel sales.
Parameters Sent
Token: Key number given upon login to system (string)
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Departure cities in which market exists return as Dataset Content:
RecID: Registration number (Unique)
Name: Departure City Name
- GetDepCityByPackageCategory
-
GetDepCityForHotel
Description: Gets departure city for chosen hotel
Parameters Sent
Token: Key number given upon login to system (string)
hotel: hotel for departure cities (string)
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Departure cities in which market exists return as Dataset.
-
GetDestination
Description: Combines GetArrCity, GetDepCity, GetCountry, GetTown and GetHotelLocation methods and
returns a dataset
Parameters Sent
token: Key number given upon login to system (string)
getCountry: If true, gets countries (bool)
getDepCity: If true, gets departure cities (bool)
getArrCity: If true, gets arrival cities (bool)
getTown: If true, gets towns (bool)
getHotelLocation: If true, gets hotel locations (bool)
packType: If 'O', gets only hotel packages, if 'H', gets all packages except only hotel packages,if '' gets all packages (string)
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Cancel Reasons return as Dataset.
- GetExchangeRate
-
GetFlightComboBoxData
For San Computer - GetHandicap
- GetHandicapWithCode
-
GetHotelLocation
Description: Get Hotel Locations as Dataset
Parameters Sent
Token: Key number given upon login to system (string)
Country: RecID value in the list of countries coming from Getcountry method.If 0 is entered,cities of all the
countries come
city: RecID value in the list of countries coming from GetDepCity or GetArrCity method.If 0 is entered,it doesn't check arrival city
packType: If 'O', gets hotel locations that have only hotel packages, if 'H' gets all hotel locaitons that don't have only hotel packages, if '', gets all hotel locations
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Hotel locations return as Dataset.
- GetHotelLocationByCategory
-
GetNationalityList
Get All Nationality List. It's return as TVNationality Object
Parameters sent:
token = Key number given upon login to system -
GetPackageAirports
Airports return as Dataset.
Parameters sent:
token = Key number given upon login to system
locaiton = If 0 is sent, all the airports return. or it returns error), it gets records which added or changed after this date.
errorMsg =Used to control whether any fault will return or not.This is both returning and sent parameter. -
GetPackageCategories
Get Package categories for hotel package. It's return as Dataset
Parameters sent:
token = Key number given upon login to system
minRecordDate = If minRecordDate is 01.01.0001, it gets all records. Otherwise, if minRecordDate is bigger than 01.01.1900 (it can not be less than 01.01.1900 except 01.01.0001 or it returns error), it gets records which added or changed after this date.
directionType if direction type=0 gets abroad or direction type=1 gets domestic or direction type=9 gets other direction type is null gets all categories
errorMsg = Used to control whether any fault will return or not.This is both returning and sent parameter. -
GetPackageCategoriesByDate
Get Package categories by hotel code. It's return as Dataset
Parameters sent:
token = Key number given upon login to system
hotel = Hotel Code for selecting package categories
fromDate = Beginning date of package categories
toDate = End date of package categories
errorMsg = Used to control whether any fault will return or not.This is both returning and sent parameter. -
GetRotator
Description: For the parts that will be displayed on main screen or parts that will be displayed like the best
10 hotels or flight prices on certain parts of the site, necessary rotator information is provided by sending
rotatorid. RotatorID needs to be known in advance. GetRotatorList method is brought to select all of the
existing rotator list.
Parameters Sent
token: Key number given upon login to system (string)
rotatorId: Rotator number to display (int)
service: Which services that the rotator include. (string) (eg. “HOTEL”,”FLIGHT” )
packType: This parameter can only be used if service parameter is hotel. If packType parameter is 'O',
it gets minimum price in only hotel packages. If it is 'H', it gets minimum price in all packages except
only hotel packages.
dayRange: If price is not defined in rotator parameter in Tourvisio, it searches all packages for minimum price in given day range. If prices is defined in Tourvisio, this parameter has no use.
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter
(string)
Returning Parameters
Rotator information return as Dataset.Content of Dataset:
BeginDate: Beginning date of Rotator expiration time
EndDate: Ending date of Rotator expiration time
Name: Rotator name (e.g. list of Top 5 Hotels)
OrderNo: Order number
HolPack: Package
ItemCode: If it is hotel, hotel code; if it is flight, flight code.
Room: Room code (It only comes if Service=”HOTEL”)
RoomName: Room name (It only comes if Service=”HOTEL”)
Accom: Accommodation code. (eg. DBL, SNG) (It only comes if Service=”HOTEL”)
AccomName: Explanation of Accomodation (eg. DOUBLE, SINGLE) (It only comes if Service=”HOTEL”)
Board: Board code. (eg. FB, HB) (It only comes if Service=”HOTEL”)
BoardName: Board explanation. (eg. FULL BOARD, HALF BOARD) (It only comes if Service=”HOTEL”)
Price: Service price
Currency: Currency
Explain: Service explanation
-
GetRotatorList
Description: Gets all rotators in the database
Parameters Sent
Token: Key number given upon login to system (string)
withDetail: If Rotator information is wanted to be taken with the content of rotator, true must be sent. (Boolean)
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Rotator list returns as dataset.
RecID value coming from here might be sent to GetRotator method as rotatorId parameter,
Service value might be sent as Service Parameter.
If withDetail is true, Dataset is composed of two datables. Rotator details are kept in the second datatatable rotator.
-
GetTitle
Description: Title list coming from that method might be used to change the title which is default in hotel or flight
ticket reservation. TitleNo 1,2,3,4,5 represent adult; 6,7 represent child; 8 and more represent infant.
Parameters Sent
Token: Key number given upon login to system (string)
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Title information returns as Dataset.Content:
TitleNo: Title Registration Number (Unique)
Code: Title Kodu (Mr,Mrs,Chd)
Sex: Gender
-
GetTown
Description: Gets town list as dataset
Parameters Sent
Token: Key number given upon login to system (string)
Country: RecID value in the list of countries coming from Getcountry method.If 0 is entered,cities of all the countries come
City: RecID value in the list of countries coming from GetDepCity or GetArrCity method.If 0 is entered,it doesn't check arrival city
packType: If 'O', gets towns that has only hotel package, if 'H' gets all towns EXCEPT only hotel package,if '' Gets all towns
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter (string)
Returning Parameters
Towns in the countries return as Dataset Content:
RecID: Registration number (Unique)
Name: Town Name
Country: Country of town (Country RecID)
City: City of town (City RecID)
-
GetVideosByTypeWithId
Gets Videos. It's return as Dataset
Parameters sent:
token = Key number given upon login to system
serviceType = Service Type serviceType: Parameter Values
1: Hotel
2: HotelRoom
3: Location
4: Excursion
serviceId = Service Id is serviceType in item RecId values -
UnitTest
Unit test