Type.registerNamespace('PilotPen.Web.WebServices');
PilotPen.Web.WebServices.ShoppingCartService=function() {
PilotPen.Web.WebServices.ShoppingCartService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PilotPen.Web.WebServices.ShoppingCartService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return PilotPen.Web.WebServices.ShoppingCartService._staticInstance.get_path();},
GetCurrentCart:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCurrentCart',true,{},succeededCallback,failedCallback,userContext); },
AddItem:function(itemId,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddItem',true,{itemId:itemId,quantity:quantity},succeededCallback,failedCallback,userContext); },
AddItems:function(itemIds,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddItems',true,{itemIds:itemIds,quantity:quantity},succeededCallback,failedCallback,userContext); },
AddWorkshop:function(workshopId,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddWorkshop',true,{workshopId:workshopId,quantity:quantity},succeededCallback,failedCallback,userContext); },
RemoveItem:function(lineItemId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveItem',true,{lineItemId:lineItemId},succeededCallback,failedCallback,userContext); }}
PilotPen.Web.WebServices.ShoppingCartService.registerClass('PilotPen.Web.WebServices.ShoppingCartService',Sys.Net.WebServiceProxy);
PilotPen.Web.WebServices.ShoppingCartService._staticInstance = new PilotPen.Web.WebServices.ShoppingCartService();
PilotPen.Web.WebServices.ShoppingCartService.set_path = function(value) { PilotPen.Web.WebServices.ShoppingCartService._staticInstance.set_path(value); }
PilotPen.Web.WebServices.ShoppingCartService.get_path = function() { return PilotPen.Web.WebServices.ShoppingCartService._staticInstance.get_path(); }
PilotPen.Web.WebServices.ShoppingCartService.set_timeout = function(value) { PilotPen.Web.WebServices.ShoppingCartService._staticInstance.set_timeout(value); }
PilotPen.Web.WebServices.ShoppingCartService.get_timeout = function() { return PilotPen.Web.WebServices.ShoppingCartService._staticInstance.get_timeout(); }
PilotPen.Web.WebServices.ShoppingCartService.set_defaultUserContext = function(value) { PilotPen.Web.WebServices.ShoppingCartService._staticInstance.set_defaultUserContext(value); }
PilotPen.Web.WebServices.ShoppingCartService.get_defaultUserContext = function() { return PilotPen.Web.WebServices.ShoppingCartService._staticInstance.get_defaultUserContext(); }
PilotPen.Web.WebServices.ShoppingCartService.set_defaultSucceededCallback = function(value) { PilotPen.Web.WebServices.ShoppingCartService._staticInstance.set_defaultSucceededCallback(value); }
PilotPen.Web.WebServices.ShoppingCartService.get_defaultSucceededCallback = function() { return PilotPen.Web.WebServices.ShoppingCartService._staticInstance.get_defaultSucceededCallback(); }
PilotPen.Web.WebServices.ShoppingCartService.set_defaultFailedCallback = function(value) { PilotPen.Web.WebServices.ShoppingCartService._staticInstance.set_defaultFailedCallback(value); }
PilotPen.Web.WebServices.ShoppingCartService.get_defaultFailedCallback = function() { return PilotPen.Web.WebServices.ShoppingCartService._staticInstance.get_defaultFailedCallback(); }
PilotPen.Web.WebServices.ShoppingCartService.set_path("/WebServices/ShoppingCartService.asmx");
PilotPen.Web.WebServices.ShoppingCartService.GetCurrentCart= function(onSuccess,onFailed,userContext) {PilotPen.Web.WebServices.ShoppingCartService._staticInstance.GetCurrentCart(onSuccess,onFailed,userContext); }
PilotPen.Web.WebServices.ShoppingCartService.AddItem= function(itemId,quantity,onSuccess,onFailed,userContext) {PilotPen.Web.WebServices.ShoppingCartService._staticInstance.AddItem(itemId,quantity,onSuccess,onFailed,userContext); }
PilotPen.Web.WebServices.ShoppingCartService.AddItems= function(itemIds,quantity,onSuccess,onFailed,userContext) {PilotPen.Web.WebServices.ShoppingCartService._staticInstance.AddItems(itemIds,quantity,onSuccess,onFailed,userContext); }
PilotPen.Web.WebServices.ShoppingCartService.AddWorkshop= function(workshopId,quantity,onSuccess,onFailed,userContext) {PilotPen.Web.WebServices.ShoppingCartService._staticInstance.AddWorkshop(workshopId,quantity,onSuccess,onFailed,userContext); }
PilotPen.Web.WebServices.ShoppingCartService.RemoveItem= function(lineItemId,onSuccess,onFailed,userContext) {PilotPen.Web.WebServices.ShoppingCartService._staticInstance.RemoveItem(lineItemId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(PilotPen.Web.WebServices.ShoppingCart) === 'undefined') {
PilotPen.Web.WebServices.ShoppingCart=gtc("PilotPen.Web.WebServices.ShoppingCart");
PilotPen.Web.WebServices.ShoppingCart.registerClass('PilotPen.Web.WebServices.ShoppingCart');
}
if (typeof(PilotPen.Web.WebServices.ShoppingCartLineItem) === 'undefined') {
PilotPen.Web.WebServices.ShoppingCartLineItem=gtc("PilotPen.Web.WebServices.ShoppingCartLineItem");
PilotPen.Web.WebServices.ShoppingCartLineItem.registerClass('PilotPen.Web.WebServices.ShoppingCartLineItem');
}
if (typeof(PilotPen.Web.WebServices.ShoppingCartLineItemType) === 'undefined') {
PilotPen.Web.WebServices.ShoppingCartLineItemType = function() { throw Error.invalidOperation(); }
PilotPen.Web.WebServices.ShoppingCartLineItemType.prototype = {Product: 1,BundleHeader: 2,BonusProduct: 4}
PilotPen.Web.WebServices.ShoppingCartLineItemType.registerEnum('PilotPen.Web.WebServices.ShoppingCartLineItemType', true);
}

