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={
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); }}
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) { 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) { 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) { 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) { 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("/BSB/TradePoint/Application/WebServices/WebApplication.asmx");
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); }
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');
}

