Type.registerNamespace('AIKON.CommerceLive.WebService');
AIKON.CommerceLive.WebService.ShoppingCart=function() {
AIKON.CommerceLive.WebService.ShoppingCart.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AIKON.CommerceLive.WebService.ShoppingCart.prototype={
Add:function(LeadID,ProductID,RasterValueID,Quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(AIKON.CommerceLive.WebService.ShoppingCart.get_path(), 'Add',false,{LeadID:LeadID,ProductID:ProductID,RasterValueID:RasterValueID,Quantity:Quantity},succeededCallback,failedCallback,userContext); }}
AIKON.CommerceLive.WebService.ShoppingCart.registerClass('AIKON.CommerceLive.WebService.ShoppingCart',Sys.Net.WebServiceProxy);
AIKON.CommerceLive.WebService.ShoppingCart._staticInstance = new AIKON.CommerceLive.WebService.ShoppingCart();
AIKON.CommerceLive.WebService.ShoppingCart.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._path = value; }
AIKON.CommerceLive.WebService.ShoppingCart.get_path = function() { return AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._path; }
AIKON.CommerceLive.WebService.ShoppingCart.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); }
AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._timeout = value; }
AIKON.CommerceLive.WebService.ShoppingCart.get_timeout = function() { 
return AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._timeout; }
AIKON.CommerceLive.WebService.ShoppingCart.set_defaultUserContext = function(value) { 
AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._userContext = value; }
AIKON.CommerceLive.WebService.ShoppingCart.get_defaultUserContext = function() { 
return AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._userContext; }
AIKON.CommerceLive.WebService.ShoppingCart.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._succeeded = value; }
AIKON.CommerceLive.WebService.ShoppingCart.get_defaultSucceededCallback = function() { 
return AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._succeeded; }
AIKON.CommerceLive.WebService.ShoppingCart.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._failed = value; }
AIKON.CommerceLive.WebService.ShoppingCart.get_defaultFailedCallback = function() { 
return AIKON.CommerceLive.WebService.ShoppingCart._staticInstance._failed; }
AIKON.CommerceLive.WebService.ShoppingCart.set_path("/WebService/ShoppingCart.asmx");
AIKON.CommerceLive.WebService.ShoppingCart.Add= function(LeadID,ProductID,RasterValueID,Quantity,onSuccess,onFailed,userContext) {AIKON.CommerceLive.WebService.ShoppingCart._staticInstance.Add(LeadID,ProductID,RasterValueID,Quantity,onSuccess,onFailed,userContext); }
