Type.registerNamespace('DTG.Dollar.Web.Consumer.Services');
DTG.Dollar.Web.Consumer.Services.CustomerWebService=function() {
DTG.Dollar.Web.Consumer.Services.CustomerWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DTG.Dollar.Web.Consumer.Services.CustomerWebService.prototype={
GetLocations:function(searchString,includeAddress,includeMetroAreas,includeStates,includeCountries,filterCountries,filterB2B,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetLocations',false,{searchString:searchString,includeAddress:includeAddress,includeMetroAreas:includeMetroAreas,includeStates:includeStates,includeCountries:includeCountries,filterCountries:filterCountries,filterB2B:filterB2B},succeededCallback,failedCallback,userContext); },
GetVehicles:function(locationCode,selectedType,filterB2B,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetVehicles',false,{locationCode:locationCode,selectedType:selectedType,filterB2B:filterB2B},succeededCallback,failedCallback,userContext); },
GetVehiclesByDate:function(locationCode,selectedType,pickupDate,filterB2B,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetVehiclesByDate',false,{locationCode:locationCode,selectedType:selectedType,pickupDate:pickupDate,filterB2B:filterB2B},succeededCallback,failedCallback,userContext); },
GetReturnLocations:function(pickupLocationCode,searchText,returnAll,filterB2B,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetReturnLocations',false,{pickupLocationCode:pickupLocationCode,searchText:searchText,returnAll:returnAll,filterB2B:filterB2B},succeededCallback,failedCallback,userContext); },
PrimeReturnLocations:function(pickupLocationCode,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'PrimeReturnLocations',false,{pickupLocationCode:pickupLocationCode},succeededCallback,failedCallback,userContext); },
GetAllStates:function(countryCode,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetAllStates',false,{countryCode:countryCode},succeededCallback,failedCallback,userContext); },
GetD4BStates:function(countryCode,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetD4BStates',false,{countryCode:countryCode},succeededCallback,failedCallback,userContext); },
GetStates:function(countryCode,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetStates',false,{countryCode:countryCode},succeededCallback,failedCallback,userContext); },
GetCountries:function(succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetCountries',false,{},succeededCallback,failedCallback,userContext); },
GetMetroAreas:function(stateCode,countryCode,succeededCallback, failedCallback, userContext) {
return this._invoke(DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path(), 'GetMetroAreas',false,{stateCode:stateCode,countryCode:countryCode},succeededCallback,failedCallback,userContext); }}
DTG.Dollar.Web.Consumer.Services.CustomerWebService.registerClass('DTG.Dollar.Web.Consumer.Services.CustomerWebService',Sys.Net.WebServiceProxy);
DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance = new DTG.Dollar.Web.Consumer.Services.CustomerWebService();
DTG.Dollar.Web.Consumer.Services.CustomerWebService.set_path = function(value) { DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._path = value; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_path = function() { return DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._path; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.set_timeout = function(value) { DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._timeout = value; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_timeout = function() { return DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._timeout; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.set_defaultUserContext = function(value) { DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._userContext = value; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_defaultUserContext = function() { return DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._userContext; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.set_defaultSucceededCallback = function(value) { DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._succeeded = value; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_defaultSucceededCallback = function() { return DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._succeeded; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.set_defaultFailedCallback = function(value) { DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._failed = value; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.get_defaultFailedCallback = function() { return DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance._failed; }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.set_path("/Services/CustomerWebService.asmx");
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetLocations= function(searchString,includeAddress,includeMetroAreas,includeStates,includeCountries,filterCountries,filterB2B,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetLocations(searchString,includeAddress,includeMetroAreas,includeStates,includeCountries,filterCountries,filterB2B,onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetVehicles= function(locationCode,selectedType,filterB2B,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetVehicles(locationCode,selectedType,filterB2B,onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetVehiclesByDate= function(locationCode,selectedType,pickupDate,filterB2B,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetVehiclesByDate(locationCode,selectedType,pickupDate,filterB2B,onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetReturnLocations= function(pickupLocationCode,searchText,returnAll,filterB2B,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetReturnLocations(pickupLocationCode,searchText,returnAll,filterB2B,onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.PrimeReturnLocations= function(pickupLocationCode,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.PrimeReturnLocations(pickupLocationCode,onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetAllStates= function(countryCode,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetAllStates(countryCode,onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetD4BStates= function(countryCode,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetD4BStates(countryCode,onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetStates= function(countryCode,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetStates(countryCode,onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetCountries= function(onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetCountries(onSuccess,onFailed,userContext); }
DTG.Dollar.Web.Consumer.Services.CustomerWebService.GetMetroAreas= function(stateCode,countryCode,onSuccess,onFailed,userContext) {DTG.Dollar.Web.Consumer.Services.CustomerWebService._staticInstance.GetMetroAreas(stateCode,countryCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(DTG.Dollar.Web.Consumer.Services.CustomerWebService_LocationBasicInfo) === 'undefined') {
DTG.Dollar.Web.Consumer.Services.CustomerWebService_LocationBasicInfo=gtc("DTG.Dollar.Web.Consumer.Services.CustomerWebService+LocationBasicInfo");
DTG.Dollar.Web.Consumer.Services.CustomerWebService_LocationBasicInfo.registerClass('DTG.Dollar.Web.Consumer.Services.CustomerWebService_LocationBasicInfo');
}
if (typeof(DTG.Dollar.Web.Consumer.Services.CustomerWebService_VehicleBasicInfo) === 'undefined') {
DTG.Dollar.Web.Consumer.Services.CustomerWebService_VehicleBasicInfo=gtc("DTG.Dollar.Web.Consumer.Services.CustomerWebService+VehicleBasicInfo");
DTG.Dollar.Web.Consumer.Services.CustomerWebService_VehicleBasicInfo.registerClass('DTG.Dollar.Web.Consumer.Services.CustomerWebService_VehicleBasicInfo');
}
if (typeof(DTG.Dollar.Web.Consumer.Services.CustomerWebService_ReturnLocationResponse) === 'undefined') {
DTG.Dollar.Web.Consumer.Services.CustomerWebService_ReturnLocationResponse=gtc("DTG.Dollar.Web.Consumer.Services.CustomerWebService+ReturnLocationResponse");
DTG.Dollar.Web.Consumer.Services.CustomerWebService_ReturnLocationResponse.registerClass('DTG.Dollar.Web.Consumer.Services.CustomerWebService_ReturnLocationResponse');
}
if (typeof(DTG.Dollar.Web.Consumer.Services.CustomerWebService_StateBasicInfo) === 'undefined') {
DTG.Dollar.Web.Consumer.Services.CustomerWebService_StateBasicInfo=gtc("DTG.Dollar.Web.Consumer.Services.CustomerWebService+StateBasicInfo");
DTG.Dollar.Web.Consumer.Services.CustomerWebService_StateBasicInfo.registerClass('DTG.Dollar.Web.Consumer.Services.CustomerWebService_StateBasicInfo');
}
Type.registerNamespace('DTG.Enterprise.Data.Locations');
if (typeof(DTG.Enterprise.Data.Locations.Country) === 'undefined') {
DTG.Enterprise.Data.Locations.Country=gtc("DTG.Enterprise.Data.Locations.Country");
DTG.Enterprise.Data.Locations.Country.registerClass('DTG.Enterprise.Data.Locations.Country');
}
if (typeof(DTG.Dollar.Web.Consumer.Services.CustomerWebService_MetroAreaBasicInfo) === 'undefined') {
DTG.Dollar.Web.Consumer.Services.CustomerWebService_MetroAreaBasicInfo=gtc("DTG.Dollar.Web.Consumer.Services.CustomerWebService+MetroAreaBasicInfo");
DTG.Dollar.Web.Consumer.Services.CustomerWebService_MetroAreaBasicInfo.registerClass('DTG.Dollar.Web.Consumer.Services.CustomerWebService_MetroAreaBasicInfo');
}
