var ICartService=function() {
ICartService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ICartService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ICartService._staticInstance.get_path();},
GetCartItemCounts:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCartItemCounts',false,{},succeededCallback,failedCallback,userContext); },
GetCartItems:function(startIndex,endIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCartItems',false,{startIndex:startIndex,endIndex:endIndex},succeededCallback,failedCallback,userContext); },
GetGroupedOrderItemThumbnailUrl:function(thumb,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGroupedOrderItemThumbnailUrl',false,{thumb:thumb},succeededCallback,failedCallback,userContext); },
CartLoadComplete:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CartLoadComplete',false,{},succeededCallback,failedCallback,userContext); },
GetPrintSizes:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPrintSizes',false,{},succeededCallback,failedCallback,userContext); },
EmptyCart:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'EmptyCart',false,{},succeededCallback,failedCallback,userContext); },
SaveQuantities:function(cartItems,EndIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveQuantities',false,{cartItems:cartItems,EndIndex:EndIndex},succeededCallback,failedCallback,userContext); },
UpdateQuickSetBatch:function(batch,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateQuickSetBatch',false,{batch:batch},succeededCallback,failedCallback,userContext); },
UpdateQuickSetQuantitiesAndOptions:function(quickSet,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateQuickSetQuantitiesAndOptions',false,{quickSet:quickSet},succeededCallback,failedCallback,userContext); },
UpdateGiftBatch:function(batch,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateGiftBatch',false,{batch:batch},succeededCallback,failedCallback,userContext); },
UpdatePrintBatch:function(EncID,GroupID,batch,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdatePrintBatch',false,{EncID:EncID,GroupID:GroupID,batch:batch},succeededCallback,failedCallback,userContext); },
UpdatePrintsBackPrinting:function(items,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdatePrintsBackPrinting',false,{items:items},succeededCallback,failedCallback,userContext); },
UpdatePrint:function(cartItem,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdatePrint',false,{cartItem:cartItem},succeededCallback,failedCallback,userContext); },
QuicksetRetailerProductOption:function(option,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'QuicksetRetailerProductOption',false,{option:option},succeededCallback,failedCallback,userContext); },
DeleteCartItem:function(EncID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteCartItem',false,{EncID:EncID},succeededCallback,failedCallback,userContext); },
DeletePrintItem:function(EncID,SubItems,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeletePrintItem',false,{EncID:EncID,SubItems:SubItems},succeededCallback,failedCallback,userContext); },
DeletePhotoCDFromCart:function(EncID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeletePhotoCDFromCart',false,{EncID:EncID},succeededCallback,failedCallback,userContext); },
AddPhotoCDToCart:function(Quantity,NumCDsInEachSet,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddPhotoCDToCart',false,{Quantity:Quantity,NumCDsInEachSet:NumCDsInEachSet},succeededCallback,failedCallback,userContext); },
GetPrepaidCardBalance:function(number,pin,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPrepaidCardBalance',false,{number:number,pin:pin},succeededCallback,failedCallback,userContext); },
GetGiftSelectedMediaThumbs:function(giftCartItems,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGiftSelectedMediaThumbs',false,{giftCartItems:giftCartItems},succeededCallback,failedCallback,userContext); },
GetGiftSelectedMediaThumbsAndStrikeoutPrices:function(giftCartItems,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGiftSelectedMediaThumbsAndStrikeoutPrices',false,{giftCartItems:giftCartItems},succeededCallback,failedCallback,userContext); },
UpdatePremiumMediaInOrder:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdatePremiumMediaInOrder',false,{},succeededCallback,failedCallback,userContext); }}
ICartService.registerClass('ICartService',Sys.Net.WebServiceProxy);
ICartService._staticInstance = new ICartService();
ICartService.set_path = function(value) { ICartService._staticInstance.set_path(value); }
ICartService.get_path = function() { return ICartService._staticInstance.get_path(); }
ICartService.set_timeout = function(value) { ICartService._staticInstance.set_timeout(value); }
ICartService.get_timeout = function() { return ICartService._staticInstance.get_timeout(); }
ICartService.set_defaultUserContext = function(value) { ICartService._staticInstance.set_defaultUserContext(value); }
ICartService.get_defaultUserContext = function() { return ICartService._staticInstance.get_defaultUserContext(); }
ICartService.set_defaultSucceededCallback = function(value) { ICartService._staticInstance.set_defaultSucceededCallback(value); }
ICartService.get_defaultSucceededCallback = function() { return ICartService._staticInstance.get_defaultSucceededCallback(); }
ICartService.set_defaultFailedCallback = function(value) { ICartService._staticInstance.set_defaultFailedCallback(value); }
ICartService.get_defaultFailedCallback = function() { return ICartService._staticInstance.get_defaultFailedCallback(); }
ICartService.set_path("/WebServices/CartService.svc");
ICartService.GetCartItemCounts= function(onSuccess,onFailed,userContext) {ICartService._staticInstance.GetCartItemCounts(onSuccess,onFailed,userContext); }
ICartService.GetCartItems= function(startIndex,endIndex,onSuccess,onFailed,userContext) {ICartService._staticInstance.GetCartItems(startIndex,endIndex,onSuccess,onFailed,userContext); }
ICartService.GetGroupedOrderItemThumbnailUrl= function(thumb,onSuccess,onFailed,userContext) {ICartService._staticInstance.GetGroupedOrderItemThumbnailUrl(thumb,onSuccess,onFailed,userContext); }
ICartService.CartLoadComplete= function(onSuccess,onFailed,userContext) {ICartService._staticInstance.CartLoadComplete(onSuccess,onFailed,userContext); }
ICartService.GetPrintSizes= function(onSuccess,onFailed,userContext) {ICartService._staticInstance.GetPrintSizes(onSuccess,onFailed,userContext); }
ICartService.EmptyCart= function(onSuccess,onFailed,userContext) {ICartService._staticInstance.EmptyCart(onSuccess,onFailed,userContext); }
ICartService.SaveQuantities= function(cartItems,EndIndex,onSuccess,onFailed,userContext) {ICartService._staticInstance.SaveQuantities(cartItems,EndIndex,onSuccess,onFailed,userContext); }
ICartService.UpdateQuickSetBatch= function(batch,onSuccess,onFailed,userContext) {ICartService._staticInstance.UpdateQuickSetBatch(batch,onSuccess,onFailed,userContext); }
ICartService.UpdateQuickSetQuantitiesAndOptions= function(quickSet,onSuccess,onFailed,userContext) {ICartService._staticInstance.UpdateQuickSetQuantitiesAndOptions(quickSet,onSuccess,onFailed,userContext); }
ICartService.UpdateGiftBatch= function(batch,onSuccess,onFailed,userContext) {ICartService._staticInstance.UpdateGiftBatch(batch,onSuccess,onFailed,userContext); }
ICartService.UpdatePrintBatch= function(EncID,GroupID,batch,onSuccess,onFailed,userContext) {ICartService._staticInstance.UpdatePrintBatch(EncID,GroupID,batch,onSuccess,onFailed,userContext); }
ICartService.UpdatePrintsBackPrinting= function(items,onSuccess,onFailed,userContext) {ICartService._staticInstance.UpdatePrintsBackPrinting(items,onSuccess,onFailed,userContext); }
ICartService.UpdatePrint= function(cartItem,onSuccess,onFailed,userContext) {ICartService._staticInstance.UpdatePrint(cartItem,onSuccess,onFailed,userContext); }
ICartService.QuicksetRetailerProductOption= function(option,onSuccess,onFailed,userContext) {ICartService._staticInstance.QuicksetRetailerProductOption(option,onSuccess,onFailed,userContext); }
ICartService.DeleteCartItem= function(EncID,onSuccess,onFailed,userContext) {ICartService._staticInstance.DeleteCartItem(EncID,onSuccess,onFailed,userContext); }
ICartService.DeletePrintItem= function(EncID,SubItems,onSuccess,onFailed,userContext) {ICartService._staticInstance.DeletePrintItem(EncID,SubItems,onSuccess,onFailed,userContext); }
ICartService.DeletePhotoCDFromCart= function(EncID,onSuccess,onFailed,userContext) {ICartService._staticInstance.DeletePhotoCDFromCart(EncID,onSuccess,onFailed,userContext); }
ICartService.AddPhotoCDToCart= function(Quantity,NumCDsInEachSet,onSuccess,onFailed,userContext) {ICartService._staticInstance.AddPhotoCDToCart(Quantity,NumCDsInEachSet,onSuccess,onFailed,userContext); }
ICartService.GetPrepaidCardBalance= function(number,pin,onSuccess,onFailed,userContext) {ICartService._staticInstance.GetPrepaidCardBalance(number,pin,onSuccess,onFailed,userContext); }
ICartService.GetGiftSelectedMediaThumbs= function(giftCartItems,onSuccess,onFailed,userContext) {ICartService._staticInstance.GetGiftSelectedMediaThumbs(giftCartItems,onSuccess,onFailed,userContext); }
ICartService.GetGiftSelectedMediaThumbsAndStrikeoutPrices= function(giftCartItems,onSuccess,onFailed,userContext) {ICartService._staticInstance.GetGiftSelectedMediaThumbsAndStrikeoutPrices(giftCartItems,onSuccess,onFailed,userContext); }
ICartService.UpdatePremiumMediaInOrder= function(onSuccess,onFailed,userContext) {ICartService._staticInstance.UpdatePremiumMediaInOrder(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('PhotoSite.WebServices');
if (typeof(PhotoSite.WebServices.ItemCount) === 'undefined') {
PhotoSite.WebServices.ItemCount=gtc("ItemCount:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.ItemCount.registerClass('PhotoSite.WebServices.ItemCount');
}
if (typeof(PhotoSite.WebServices.CartItem) === 'undefined') {
PhotoSite.WebServices.CartItem=gtc("CartItem:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.CartItem.registerClass('PhotoSite.WebServices.CartItem');
}
if (typeof(PhotoSite.WebServices.SubCartItem) === 'undefined') {
PhotoSite.WebServices.SubCartItem=gtc("SubCartItem:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.SubCartItem.registerClass('PhotoSite.WebServices.SubCartItem');
}
if (typeof(PhotoSite.WebServices.PrintSize) === 'undefined') {
PhotoSite.WebServices.PrintSize=gtc("PrintSize:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.PrintSize.registerClass('PhotoSite.WebServices.PrintSize');
}
if (typeof(PhotoSite.WebServices.PrintSizeOption) === 'undefined') {
PhotoSite.WebServices.PrintSizeOption=gtc("PrintSizeOption:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.PrintSizeOption.registerClass('PhotoSite.WebServices.PrintSizeOption');
}
if (typeof(PhotoSite.WebServices.PrintSizeOptionValue) === 'undefined') {
PhotoSite.WebServices.PrintSizeOptionValue=gtc("PrintSizeOptionValue:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.PrintSizeOptionValue.registerClass('PhotoSite.WebServices.PrintSizeOptionValue');
}
if (typeof(PhotoSite.WebServices.PrintGroupedThumbnail) === 'undefined') {
PhotoSite.WebServices.PrintGroupedThumbnail=gtc("PrintGroupedThumbnail:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.PrintGroupedThumbnail.registerClass('PhotoSite.WebServices.PrintGroupedThumbnail');
}
if (typeof(PhotoSite.WebServices.UpdateQuickSetBatchItem) === 'undefined') {
PhotoSite.WebServices.UpdateQuickSetBatchItem=gtc("UpdateQuickSetBatchItem:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.UpdateQuickSetBatchItem.registerClass('PhotoSite.WebServices.UpdateQuickSetBatchItem');
}
if (typeof(PhotoSite.WebServices.QuickSetQuantitiesAndOptions) === 'undefined') {
PhotoSite.WebServices.QuickSetQuantitiesAndOptions=gtc("QuickSetQuantitiesAndOptions:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.QuickSetQuantitiesAndOptions.registerClass('PhotoSite.WebServices.QuickSetQuantitiesAndOptions');
}
if (typeof(PhotoSite.WebServices.QuickSetOptionValue) === 'undefined') {
PhotoSite.WebServices.QuickSetOptionValue=gtc("QuickSetOptionValue:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.QuickSetOptionValue.registerClass('PhotoSite.WebServices.QuickSetOptionValue');
}
if (typeof(PhotoSite.WebServices.UpdateGiftBatchItem) === 'undefined') {
PhotoSite.WebServices.UpdateGiftBatchItem=gtc("UpdateGiftBatchItem:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.UpdateGiftBatchItem.registerClass('PhotoSite.WebServices.UpdateGiftBatchItem');
}
if (typeof(PhotoSite.WebServices.UpdatePrintBatchItem) === 'undefined') {
PhotoSite.WebServices.UpdatePrintBatchItem=gtc("UpdatePrintBatchItem:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.UpdatePrintBatchItem.registerClass('PhotoSite.WebServices.UpdatePrintBatchItem');
}
if (typeof(PhotoSite.WebServices.PrintBatchUpdateResult) === 'undefined') {
PhotoSite.WebServices.PrintBatchUpdateResult=gtc("PrintBatchUpdateResult:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.PrintBatchUpdateResult.registerClass('PhotoSite.WebServices.PrintBatchUpdateResult');
}
if (typeof(PhotoSite.WebServices.UpdateBackPrintingItem) === 'undefined') {
PhotoSite.WebServices.UpdateBackPrintingItem=gtc("UpdateBackPrintingItem:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.UpdateBackPrintingItem.registerClass('PhotoSite.WebServices.UpdateBackPrintingItem');
}
if (typeof(PhotoSite.WebServices.CartOption) === 'undefined') {
PhotoSite.WebServices.CartOption=gtc("CartOption:http://schemas.datacontract.org/2004/07/PhotoSite.WebServices");
PhotoSite.WebServices.CartOption.registerClass('PhotoSite.WebServices.CartOption');
}

