var ShoppingCartService=function() {
ShoppingCartService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ShoppingCartService.prototype={
MoveCartToOrders:function(cartKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingCartService.get_path(), 'MoveCartToOrders',false,{cartKey:cartKey},succeededCallback,failedCallback,userContext); },
AddRedeemCodeToCart:function(cartKey,redeemCode,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingCartService.get_path(), 'AddRedeemCodeToCart',false,{cartKey:cartKey,redeemCode:redeemCode},succeededCallback,failedCallback,userContext); },
ChangeItemInCart:function(cartID,newUnits,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingCartService.get_path(), 'ChangeItemInCart',false,{cartID:cartID,newUnits:newUnits},succeededCallback,failedCallback,userContext); },
RemoveItemFromCart:function(cartID,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingCartService.get_path(), 'RemoveItemFromCart',false,{cartID:cartID},succeededCallback,failedCallback,userContext); },
GetItemsFromCart:function(cartKey,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingCartService.get_path(), 'GetItemsFromCart',false,{cartKey:cartKey},succeededCallback,failedCallback,userContext); },
AddItemToCart:function(cartKey,categoryKey,customerPackageKey,customerColor,customerPriceKey,customerUnits,succeededCallback, failedCallback, userContext) {
return this._invoke(ShoppingCartService.get_path(), 'AddItemToCart',false,{cartKey:cartKey,categoryKey:categoryKey,customerPackageKey:customerPackageKey,customerColor:customerColor,customerPriceKey:customerPriceKey,customerUnits:customerUnits},succeededCallback,failedCallback,userContext); }}
ShoppingCartService.registerClass('ShoppingCartService',Sys.Net.WebServiceProxy);
ShoppingCartService._staticInstance = new ShoppingCartService();
ShoppingCartService.set_path = function(value) { ShoppingCartService._staticInstance._path = value; }
ShoppingCartService.get_path = function() { return ShoppingCartService._staticInstance._path; }
ShoppingCartService.set_timeout = function(value) { ShoppingCartService._staticInstance._timeout = value; }
ShoppingCartService.get_timeout = function() { return ShoppingCartService._staticInstance._timeout; }
ShoppingCartService.set_defaultUserContext = function(value) { ShoppingCartService._staticInstance._userContext = value; }
ShoppingCartService.get_defaultUserContext = function() { return ShoppingCartService._staticInstance._userContext; }
ShoppingCartService.set_defaultSucceededCallback = function(value) { ShoppingCartService._staticInstance._succeeded = value; }
ShoppingCartService.get_defaultSucceededCallback = function() { return ShoppingCartService._staticInstance._succeeded; }
ShoppingCartService.set_defaultFailedCallback = function(value) { ShoppingCartService._staticInstance._failed = value; }
ShoppingCartService.get_defaultFailedCallback = function() { return ShoppingCartService._staticInstance._failed; }
ShoppingCartService.set_path("/ShoppingCartService.asmx");
ShoppingCartService.MoveCartToOrders= function(cartKey,onSuccess,onFailed,userContext) {ShoppingCartService._staticInstance.MoveCartToOrders(cartKey,onSuccess,onFailed,userContext); }
ShoppingCartService.AddRedeemCodeToCart= function(cartKey,redeemCode,onSuccess,onFailed,userContext) {ShoppingCartService._staticInstance.AddRedeemCodeToCart(cartKey,redeemCode,onSuccess,onFailed,userContext); }
ShoppingCartService.ChangeItemInCart= function(cartID,newUnits,onSuccess,onFailed,userContext) {ShoppingCartService._staticInstance.ChangeItemInCart(cartID,newUnits,onSuccess,onFailed,userContext); }
ShoppingCartService.RemoveItemFromCart= function(cartID,onSuccess,onFailed,userContext) {ShoppingCartService._staticInstance.RemoveItemFromCart(cartID,onSuccess,onFailed,userContext); }
ShoppingCartService.GetItemsFromCart= function(cartKey,onSuccess,onFailed,userContext) {ShoppingCartService._staticInstance.GetItemsFromCart(cartKey,onSuccess,onFailed,userContext); }
ShoppingCartService.AddItemToCart= function(cartKey,categoryKey,customerPackageKey,customerColor,customerPriceKey,customerUnits,onSuccess,onFailed,userContext) {ShoppingCartService._staticInstance.AddItemToCart(cartKey,categoryKey,customerPackageKey,customerColor,customerPriceKey,customerUnits,onSuccess,onFailed,userContext); }
