Type.registerNamespace('ScriptServer.TradePoint.WebServices');
ScriptServer.TradePoint.WebServices.WebApplication=function() {
ScriptServer.TradePoint.WebServices.WebApplication.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ScriptServer.TradePoint.WebServices.WebApplication.prototype={
ArtosService:function(no,value,orderType,deliveryWeek,succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'ArtosService',false,{no:no,value:value,orderType:orderType,deliveryWeek:deliveryWeek},succeededCallback,failedCallback,userContext); },
AddToShoppingBasket:function(itemKey,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'AddToShoppingBasket',false,{itemKey:itemKey,quantity:quantity},succeededCallback,failedCallback,userContext); },
RemoveFromShoppingBasket:function(itemKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'RemoveFromShoppingBasket',false,{itemKey:itemKey},succeededCallback,failedCallback,userContext); },
GetShoppingBasketCalculatedItems:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetShoppingBasketCalculatedItems',false,{},succeededCallback,failedCallback,userContext); },
GetShoppingBasketTotalAmount:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetShoppingBasketTotalAmount',false,{},succeededCallback,failedCallback,userContext); },
GetShoppingBasketTotalAmountFormattedString:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetShoppingBasketTotalAmountFormattedString',false,{},succeededCallback,failedCallback,userContext); },
GetShoppingBasketTotalAmountInclVAT:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetShoppingBasketTotalAmountInclVAT',false,{},succeededCallback,failedCallback,userContext); },
GetShoppingBasketTotalAmountInclVATFormattedString:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetShoppingBasketTotalAmountInclVATFormattedString',false,{},succeededCallback,failedCallback,userContext); },
GetShoppingBasketItemsCount:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetShoppingBasketItemsCount',false,{},succeededCallback,failedCallback,userContext); },
GetImageUrl:function(itemKey,path,succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetImageUrl',false,{itemKey:itemKey,path:path},succeededCallback,failedCallback,userContext); },
GetDealerList:function(shopName,dimCustomerClass,postingGroup,succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetDealerList',false,{shopName:shopName,dimCustomerClass:dimCustomerClass,postingGroup:postingGroup},succeededCallback,failedCallback,userContext); },
GetCountriesWithISO:function(countryName,succeededCallback, failedCallback, userContext) {
return this._invoke(ScriptServer.TradePoint.WebServices.WebApplication.get_path(), 'GetCountriesWithISO',false,{countryName:countryName},succeededCallback,failedCallback,userContext); }}
ScriptServer.TradePoint.WebServices.WebApplication.registerClass('ScriptServer.TradePoint.WebServices.WebApplication',Sys.Net.WebServiceProxy);
ScriptServer.TradePoint.WebServices.WebApplication._staticInstance = new ScriptServer.TradePoint.WebServices.WebApplication();
ScriptServer.TradePoint.WebServices.WebApplication.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._path = value; }
ScriptServer.TradePoint.WebServices.WebApplication.get_path = function() { return ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._path; }
ScriptServer.TradePoint.WebServices.WebApplication.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._timeout = value; }
ScriptServer.TradePoint.WebServices.WebApplication.get_timeout = function() { 
return ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._timeout; }
ScriptServer.TradePoint.WebServices.WebApplication.set_defaultUserContext = function(value) { 
ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._userContext = value; }
ScriptServer.TradePoint.WebServices.WebApplication.get_defaultUserContext = function() { 
return ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._userContext; }
ScriptServer.TradePoint.WebServices.WebApplication.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._succeeded = value; }
ScriptServer.TradePoint.WebServices.WebApplication.get_defaultSucceededCallback = function() { 
return ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._succeeded; }
ScriptServer.TradePoint.WebServices.WebApplication.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._failed = value; }
ScriptServer.TradePoint.WebServices.WebApplication.get_defaultFailedCallback = function() { 
return ScriptServer.TradePoint.WebServices.WebApplication._staticInstance._failed; }
ScriptServer.TradePoint.WebServices.WebApplication.set_path("/webshop/Tradepoint/Application/WebServices/WebApplication.asmx");
ScriptServer.TradePoint.WebServices.WebApplication.ArtosService= function(no,value,orderType,deliveryWeek,onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.ArtosService(no,value,orderType,deliveryWeek,onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.AddToShoppingBasket= function(itemKey,quantity,onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.AddToShoppingBasket(itemKey,quantity,onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.RemoveFromShoppingBasket= function(itemKey,onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.RemoveFromShoppingBasket(itemKey,onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetShoppingBasketCalculatedItems= function(onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetShoppingBasketCalculatedItems(onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetShoppingBasketTotalAmount= function(onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetShoppingBasketTotalAmount(onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetShoppingBasketTotalAmountFormattedString= function(onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetShoppingBasketTotalAmountFormattedString(onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetShoppingBasketTotalAmountInclVAT= function(onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetShoppingBasketTotalAmountInclVAT(onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetShoppingBasketTotalAmountInclVATFormattedString= function(onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetShoppingBasketTotalAmountInclVATFormattedString(onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetShoppingBasketItemsCount= function(onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetShoppingBasketItemsCount(onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetImageUrl= function(itemKey,path,onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetImageUrl(itemKey,path,onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetDealerList= function(shopName,dimCustomerClass,postingGroup,onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetDealerList(shopName,dimCustomerClass,postingGroup,onSuccess,onFailed,userContext); }
ScriptServer.TradePoint.WebServices.WebApplication.GetCountriesWithISO= function(countryName,onSuccess,onFailed,userContext) {ScriptServer.TradePoint.WebServices.WebApplication._staticInstance.GetCountriesWithISO(countryName,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ScriptServer.TradePoint.Web.Services.Protocols');
if (typeof(ScriptServer.TradePoint.Web.Services.Protocols.SOAPItem) === 'undefined') {
ScriptServer.TradePoint.Web.Services.Protocols.SOAPItem=gtc("ScriptServer.TradePoint.Web.Services.Protocols.SOAPItem");
ScriptServer.TradePoint.Web.Services.Protocols.SOAPItem.registerClass('ScriptServer.TradePoint.Web.Services.Protocols.SOAPItem');
}
if (typeof(ScriptServer.TradePoint.WebServices.WebApplication_Dealer) === 'undefined') {
ScriptServer.TradePoint.WebServices.WebApplication_Dealer=gtc("ScriptServer.TradePoint.WebServices.WebApplication+Dealer");
ScriptServer.TradePoint.WebServices.WebApplication_Dealer.registerClass('ScriptServer.TradePoint.WebServices.WebApplication_Dealer');
}
if (typeof(ScriptServer.TradePoint.WebServices.WebApplication_Country) === 'undefined') {
ScriptServer.TradePoint.WebServices.WebApplication_Country=gtc("ScriptServer.TradePoint.WebServices.WebApplication+Country");
ScriptServer.TradePoint.WebServices.WebApplication_Country.registerClass('ScriptServer.TradePoint.WebServices.WebApplication_Country');
}
