Type.registerNamespace('CMS.Presentation.WebServices');
CMS.Presentation.WebServices.CartServices=function() {
CMS.Presentation.WebServices.CartServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CMS.Presentation.WebServices.CartServices.prototype={
AddProductToCart:function(productId,itemCost,note,succeededCallback, failedCallback, userContext) {
return this._invoke(CMS.Presentation.WebServices.CartServices.get_path(), 'AddProductToCart',false,{productId:productId,itemCost:itemCost,note:note},succeededCallback,failedCallback,userContext); },
GetCartItems:function(succeededCallback, failedCallback, userContext) {
return this._invoke(CMS.Presentation.WebServices.CartServices.get_path(), 'GetCartItems',false,{},succeededCallback,failedCallback,userContext); },
AddCart:function(succeededCallback, failedCallback, userContext) {
return this._invoke(CMS.Presentation.WebServices.CartServices.get_path(), 'AddCart',false,{},succeededCallback,failedCallback,userContext); }}
CMS.Presentation.WebServices.CartServices.registerClass('CMS.Presentation.WebServices.CartServices',Sys.Net.WebServiceProxy);
CMS.Presentation.WebServices.CartServices._staticInstance = new CMS.Presentation.WebServices.CartServices();
CMS.Presentation.WebServices.CartServices.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; CMS.Presentation.WebServices.CartServices._staticInstance._path = value; }
CMS.Presentation.WebServices.CartServices.get_path = function() { return CMS.Presentation.WebServices.CartServices._staticInstance._path; }
CMS.Presentation.WebServices.CartServices.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); }
CMS.Presentation.WebServices.CartServices._staticInstance._timeout = value; }
CMS.Presentation.WebServices.CartServices.get_timeout = function() { 
return CMS.Presentation.WebServices.CartServices._staticInstance._timeout; }
CMS.Presentation.WebServices.CartServices.set_defaultUserContext = function(value) { 
CMS.Presentation.WebServices.CartServices._staticInstance._userContext = value; }
CMS.Presentation.WebServices.CartServices.get_defaultUserContext = function() { 
return CMS.Presentation.WebServices.CartServices._staticInstance._userContext; }
CMS.Presentation.WebServices.CartServices.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; CMS.Presentation.WebServices.CartServices._staticInstance._succeeded = value; }
CMS.Presentation.WebServices.CartServices.get_defaultSucceededCallback = function() { 
return CMS.Presentation.WebServices.CartServices._staticInstance._succeeded; }
CMS.Presentation.WebServices.CartServices.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; CMS.Presentation.WebServices.CartServices._staticInstance._failed = value; }
CMS.Presentation.WebServices.CartServices.get_defaultFailedCallback = function() { 
return CMS.Presentation.WebServices.CartServices._staticInstance._failed; }
CMS.Presentation.WebServices.CartServices.set_path("/WebServices/CartServices.asmx");
CMS.Presentation.WebServices.CartServices.AddProductToCart= function(productId,itemCost,note,onSuccess,onFailed,userContext) {CMS.Presentation.WebServices.CartServices._staticInstance.AddProductToCart(productId,itemCost,note,onSuccess,onFailed,userContext); }
CMS.Presentation.WebServices.CartServices.GetCartItems= function(onSuccess,onFailed,userContext) {CMS.Presentation.WebServices.CartServices._staticInstance.GetCartItems(onSuccess,onFailed,userContext); }
CMS.Presentation.WebServices.CartServices.AddCart= function(onSuccess,onFailed,userContext) {CMS.Presentation.WebServices.CartServices._staticInstance.AddCart(onSuccess,onFailed,userContext); }

