var CartManagmentService=function() {
CartManagmentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CartManagmentService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CartManagmentService._staticInstance.get_path();},
AddItemToCart:function(cartGuid,siteName,partCode,quantity,uom,messageCtrl,buttonControl,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddItemToCart',false,{cartGuid:cartGuid,siteName:siteName,partCode:partCode,quantity:quantity,uom:uom,messageCtrl:messageCtrl,buttonControl:buttonControl},succeededCallback,failedCallback,userContext); },
GetCart:function(cartGuid,userId,siteName,customerCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCart',false,{cartGuid:cartGuid,userId:userId,siteName:siteName,customerCode:customerCode},succeededCallback,failedCallback,userContext); }}
CartManagmentService.registerClass('CartManagmentService',Sys.Net.WebServiceProxy);
CartManagmentService._staticInstance = new CartManagmentService();
CartManagmentService.set_path = function(value) { CartManagmentService._staticInstance.set_path(value); }
CartManagmentService.get_path = function() { return CartManagmentService._staticInstance.get_path(); }
CartManagmentService.set_timeout = function(value) { CartManagmentService._staticInstance.set_timeout(value); }
CartManagmentService.get_timeout = function() { return CartManagmentService._staticInstance.get_timeout(); }
CartManagmentService.set_defaultUserContext = function(value) { CartManagmentService._staticInstance.set_defaultUserContext(value); }
CartManagmentService.get_defaultUserContext = function() { return CartManagmentService._staticInstance.get_defaultUserContext(); }
CartManagmentService.set_defaultSucceededCallback = function(value) { CartManagmentService._staticInstance.set_defaultSucceededCallback(value); }
CartManagmentService.get_defaultSucceededCallback = function() { return CartManagmentService._staticInstance.get_defaultSucceededCallback(); }
CartManagmentService.set_defaultFailedCallback = function(value) { CartManagmentService._staticInstance.set_defaultFailedCallback(value); }
CartManagmentService.get_defaultFailedCallback = function() { return CartManagmentService._staticInstance.get_defaultFailedCallback(); }
CartManagmentService.set_path("/Services/CartManagement.svc");
CartManagmentService.AddItemToCart= function(cartGuid,siteName,partCode,quantity,uom,messageCtrl,buttonControl,onSuccess,onFailed,userContext) {CartManagmentService._staticInstance.AddItemToCart(cartGuid,siteName,partCode,quantity,uom,messageCtrl,buttonControl,onSuccess,onFailed,userContext); }
CartManagmentService.GetCart= function(cartGuid,userId,siteName,customerCode,onSuccess,onFailed,userContext) {CartManagmentService._staticInstance.GetCart(cartGuid,userId,siteName,customerCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(AddedLineSummaryDto) === 'undefined') {
var AddedLineSummaryDto=gtc("AddedLineSummaryDto");
AddedLineSummaryDto.registerClass('AddedLineSummaryDto');
}
Type.registerNamespace('ETI.Core.Dto.ECommerce.ShoppingCartManagement');
if (typeof(ETI.Core.Dto.ECommerce.ShoppingCartManagement.GetCartSummaryDto) === 'undefined') {
ETI.Core.Dto.ECommerce.ShoppingCartManagement.GetCartSummaryDto=gtc("GetCartSummaryDto:http://schemas.datacontract.org/2004/07/ETI.Core.Dto.ECommerce.ShoppingCartManagement");
ETI.Core.Dto.ECommerce.ShoppingCartManagement.GetCartSummaryDto.registerClass('ETI.Core.Dto.ECommerce.ShoppingCartManagement.GetCartSummaryDto');
}
if (typeof(ShoppingCartSummaryDto) === 'undefined') {
var ShoppingCartSummaryDto=gtc("ShoppingCartSummaryDto");
ShoppingCartSummaryDto.registerClass('ShoppingCartSummaryDto');
}
if (typeof(ShoppingCartLine) === 'undefined') {
var ShoppingCartLine=gtc("ShoppingCartLine");
ShoppingCartLine.registerClass('ShoppingCartLine');
}

