Type.registerNamespace('BMW.Lifestyles.Web.Services');
BMW.Lifestyles.Web.Services.ShoppingBag=function() {
BMW.Lifestyles.Web.Services.ShoppingBag.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BMW.Lifestyles.Web.Services.ShoppingBag.prototype={
BagContents:function(succeededCallback, failedCallback, userContext) {
return this._invoke(BMW.Lifestyles.Web.Services.ShoppingBag.get_path(), 'BagContents',false,{},succeededCallback,failedCallback,userContext); },
UpdateCartItem:function(productItemId,newQuantity,remove,succeededCallback, failedCallback, userContext) {
return this._invoke(BMW.Lifestyles.Web.Services.ShoppingBag.get_path(), 'UpdateCartItem',false,{productItemId:productItemId,newQuantity:newQuantity,remove:remove},succeededCallback,failedCallback,userContext); },
AddItemToCart:function(productItemXML,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(BMW.Lifestyles.Web.Services.ShoppingBag.get_path(), 'AddItemToCart',false,{productItemXML:productItemXML,quantity:quantity},succeededCallback,failedCallback,userContext); },
itemexistsinCart:function(productItemXML,succeededCallback, failedCallback, userContext) {
return this._invoke(BMW.Lifestyles.Web.Services.ShoppingBag.get_path(), 'itemexistsinCart',false,{productItemXML:productItemXML},succeededCallback,failedCallback,userContext); },
GetCartTotal:function(succeededCallback, failedCallback, userContext) {
return this._invoke(BMW.Lifestyles.Web.Services.ShoppingBag.get_path(), 'GetCartTotal',false,{},succeededCallback,failedCallback,userContext); }}
BMW.Lifestyles.Web.Services.ShoppingBag.registerClass('BMW.Lifestyles.Web.Services.ShoppingBag',Sys.Net.WebServiceProxy);
BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance = new BMW.Lifestyles.Web.Services.ShoppingBag();
BMW.Lifestyles.Web.Services.ShoppingBag.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._path = value; }
BMW.Lifestyles.Web.Services.ShoppingBag.get_path = function() { return BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._path; }
BMW.Lifestyles.Web.Services.ShoppingBag.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._timeout = value; }
BMW.Lifestyles.Web.Services.ShoppingBag.get_timeout = function() { 
return BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._timeout; }
BMW.Lifestyles.Web.Services.ShoppingBag.set_defaultUserContext = function(value) { 
BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._userContext = value; }
BMW.Lifestyles.Web.Services.ShoppingBag.get_defaultUserContext = function() { 
return BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._userContext; }
BMW.Lifestyles.Web.Services.ShoppingBag.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._succeeded = value; }
BMW.Lifestyles.Web.Services.ShoppingBag.get_defaultSucceededCallback = function() { 
return BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._succeeded; }
BMW.Lifestyles.Web.Services.ShoppingBag.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._failed = value; }
BMW.Lifestyles.Web.Services.ShoppingBag.get_defaultFailedCallback = function() { 
return BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance._failed; }
BMW.Lifestyles.Web.Services.ShoppingBag.set_path("/Services/ShoppingBag.asmx");
BMW.Lifestyles.Web.Services.ShoppingBag.BagContents= function(onSuccess,onFailed,userContext) {BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance.BagContents(onSuccess,onFailed,userContext); }
BMW.Lifestyles.Web.Services.ShoppingBag.UpdateCartItem= function(productItemId,newQuantity,remove,onSuccess,onFailed,userContext) {BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance.UpdateCartItem(productItemId,newQuantity,remove,onSuccess,onFailed,userContext); }
BMW.Lifestyles.Web.Services.ShoppingBag.AddItemToCart= function(productItemXML,quantity,onSuccess,onFailed,userContext) {BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance.AddItemToCart(productItemXML,quantity,onSuccess,onFailed,userContext); }
BMW.Lifestyles.Web.Services.ShoppingBag.itemexistsinCart= function(productItemXML,onSuccess,onFailed,userContext) {BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance.itemexistsinCart(productItemXML,onSuccess,onFailed,userContext); }
BMW.Lifestyles.Web.Services.ShoppingBag.GetCartTotal= function(onSuccess,onFailed,userContext) {BMW.Lifestyles.Web.Services.ShoppingBag._staticInstance.GetCartTotal(onSuccess,onFailed,userContext); }
