Type.registerNamespace('CustomAjaxHandler');
CustomAjaxHandler.ShoppingCart=function() {
CustomAjaxHandler.ShoppingCart.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CustomAjaxHandler.ShoppingCart.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CustomAjaxHandler.ShoppingCart._staticInstance.get_path();},
UpdateTotal:function(elements,orderId,isMini,isCheckout,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateTotal',false,{elements:elements,orderId:orderId,isMini:isMini,isCheckout:isCheckout},succeededCallback,failedCallback,userContext); },
GetCartItemIDs:function(orderId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCartItemIDs',false,{orderId:orderId},succeededCallback,failedCallback,userContext); }}
CustomAjaxHandler.ShoppingCart.registerClass('CustomAjaxHandler.ShoppingCart',Sys.Net.WebServiceProxy);
CustomAjaxHandler.ShoppingCart._staticInstance = new CustomAjaxHandler.ShoppingCart();
CustomAjaxHandler.ShoppingCart.set_path = function(value) { CustomAjaxHandler.ShoppingCart._staticInstance.set_path(value); }
CustomAjaxHandler.ShoppingCart.get_path = function() { return CustomAjaxHandler.ShoppingCart._staticInstance.get_path(); }
CustomAjaxHandler.ShoppingCart.set_timeout = function(value) { CustomAjaxHandler.ShoppingCart._staticInstance.set_timeout(value); }
CustomAjaxHandler.ShoppingCart.get_timeout = function() { return CustomAjaxHandler.ShoppingCart._staticInstance.get_timeout(); }
CustomAjaxHandler.ShoppingCart.set_defaultUserContext = function(value) { CustomAjaxHandler.ShoppingCart._staticInstance.set_defaultUserContext(value); }
CustomAjaxHandler.ShoppingCart.get_defaultUserContext = function() { return CustomAjaxHandler.ShoppingCart._staticInstance.get_defaultUserContext(); }
CustomAjaxHandler.ShoppingCart.set_defaultSucceededCallback = function(value) { CustomAjaxHandler.ShoppingCart._staticInstance.set_defaultSucceededCallback(value); }
CustomAjaxHandler.ShoppingCart.get_defaultSucceededCallback = function() { return CustomAjaxHandler.ShoppingCart._staticInstance.get_defaultSucceededCallback(); }
CustomAjaxHandler.ShoppingCart.set_defaultFailedCallback = function(value) { CustomAjaxHandler.ShoppingCart._staticInstance.set_defaultFailedCallback(value); }
CustomAjaxHandler.ShoppingCart.get_defaultFailedCallback = function() { return CustomAjaxHandler.ShoppingCart._staticInstance.get_defaultFailedCallback(); }
CustomAjaxHandler.ShoppingCart.set_path("/usercontrols/commerce/shoppingCart.asmx");
CustomAjaxHandler.ShoppingCart.UpdateTotal= function(elements,orderId,isMini,isCheckout,onSuccess,onFailed,userContext) {CustomAjaxHandler.ShoppingCart._staticInstance.UpdateTotal(elements,orderId,isMini,isCheckout,onSuccess,onFailed,userContext); }
CustomAjaxHandler.ShoppingCart.GetCartItemIDs= function(orderId,onSuccess,onFailed,userContext) {CustomAjaxHandler.ShoppingCart._staticInstance.GetCartItemIDs(orderId,onSuccess,onFailed,userContext); }

