Type.registerNamespace('Meijer.GroceryExpress.Web.WebServices');
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax=function() {
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.prototype={
SelectPickup:function(pickupStartDateTime,pickupEndDateTime,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'SelectPickup',false,{pickupStartDateTime:pickupStartDateTime,pickupEndDateTime:pickupEndDateTime},succeededCallback,failedCallback,userContext); },
GetShouldNotifyOfTimeslotLockWindow:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'GetShouldNotifyOfTimeslotLockWindow',false,{},succeededCallback,failedCallback,userContext); },
SelectStore:function(storeNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'SelectStore',false,{storeNumber:storeNumber},succeededCallback,failedCallback,userContext); },
ValidateProductsForStoreChange:function(storeNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'ValidateProductsForStoreChange',false,{storeNumber:storeNumber},succeededCallback,failedCallback,userContext); },
ChangeStore:function(storeNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'ChangeStore',false,{storeNumber:storeNumber},succeededCallback,failedCallback,userContext); },
AddProductToBasket:function(productQuantity,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'AddProductToBasket',false,{productQuantity:productQuantity},succeededCallback,failedCallback,userContext); },
AddProductsToBasket:function(productQuantityArray,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'AddProductsToBasket',false,{productQuantityArray:productQuantityArray},succeededCallback,failedCallback,userContext); },
FillShoppingSummaryList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'FillShoppingSummaryList',false,{},succeededCallback,failedCallback,userContext); },
ModifyProductInSavedLists:function(productID,productUPC,quantities,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'ModifyProductInSavedLists',false,{productID:productID,productUPC:productUPC,quantities:quantities},succeededCallback,failedCallback,userContext); },
AddProductToList:function(productQuantity,listOrderGroupID,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'AddProductToList',false,{productQuantity:productQuantity,listOrderGroupID:listOrderGroupID},succeededCallback,failedCallback,userContext); },
FillAddToListPopup:function(productID,productUPC,productName,showCreateNew,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'FillAddToListPopup',false,{productID:productID,productUPC:productUPC,productName:productName,showCreateNew:showCreateNew},succeededCallback,failedCallback,userContext); },
DeleteCurrentSavedList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'DeleteCurrentSavedList',false,{},succeededCallback,failedCallback,userContext); },
FillShoppingSummaryStorePickup:function(currentUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path(), 'FillShoppingSummaryStorePickup',false,{currentUrl:currentUrl},succeededCallback,failedCallback,userContext); }}
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.registerClass('Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax',Sys.Net.WebServiceProxy);
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance = new Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax();
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._path = value; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_path = function() { return Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._path; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.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); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._timeout = value; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_timeout = function() { 
return Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._timeout; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.set_defaultUserContext = function(value) { 
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._userContext = value; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_defaultUserContext = function() { 
return Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._userContext; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._succeeded = value; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_defaultSucceededCallback = function() { 
return Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._succeeded; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._failed = value; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.get_defaultFailedCallback = function() { 
return Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance._failed; }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.set_path("/WebServices/GroceryExpressAjax.asmx");
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.SelectPickup= function(pickupStartDateTime,pickupEndDateTime,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.SelectPickup(pickupStartDateTime,pickupEndDateTime,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.GetShouldNotifyOfTimeslotLockWindow= function(onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.GetShouldNotifyOfTimeslotLockWindow(onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.SelectStore= function(storeNumber,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.SelectStore(storeNumber,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.ValidateProductsForStoreChange= function(storeNumber,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.ValidateProductsForStoreChange(storeNumber,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.ChangeStore= function(storeNumber,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.ChangeStore(storeNumber,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.AddProductToBasket= function(productQuantity,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.AddProductToBasket(productQuantity,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.AddProductsToBasket= function(productQuantityArray,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.AddProductsToBasket(productQuantityArray,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.FillShoppingSummaryList= function(onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.FillShoppingSummaryList(onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.ModifyProductInSavedLists= function(productID,productUPC,quantities,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.ModifyProductInSavedLists(productID,productUPC,quantities,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.AddProductToList= function(productQuantity,listOrderGroupID,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.AddProductToList(productQuantity,listOrderGroupID,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.FillAddToListPopup= function(productID,productUPC,productName,showCreateNew,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.FillAddToListPopup(productID,productUPC,productName,showCreateNew,onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.DeleteCurrentSavedList= function(onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.DeleteCurrentSavedList(onSuccess,onFailed,userContext); }
Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax.FillShoppingSummaryStorePickup= function(currentUrl,onSuccess,onFailed,userContext) {Meijer.GroceryExpress.Web.WebServices.GroceryExpressAjax._staticInstance.FillShoppingSummaryStorePickup(currentUrl,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResult) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResult=gtc("Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResult");
Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResult.registerClass('Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResult');
}
if (typeof(Meijer.GroceryExpress.Web.WebServices.UpdateSavedListResult) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.UpdateSavedListResult=gtc("Meijer.GroceryExpress.Web.WebServices.UpdateSavedListResult");
Meijer.GroceryExpress.Web.WebServices.UpdateSavedListResult.registerClass('Meijer.GroceryExpress.Web.WebServices.UpdateSavedListResult');
}
if (typeof(Meijer.GroceryExpress.Web.WebServices.AddProductResult) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.AddProductResult=gtc("Meijer.GroceryExpress.Web.WebServices.AddProductResult");
Meijer.GroceryExpress.Web.WebServices.AddProductResult.registerClass('Meijer.GroceryExpress.Web.WebServices.AddProductResult');
}
if (typeof(Meijer.GroceryExpress.Web.WebServices.FillAddToListPopupResult) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.FillAddToListPopupResult=gtc("Meijer.GroceryExpress.Web.WebServices.FillAddToListPopupResult");
Meijer.GroceryExpress.Web.WebServices.FillAddToListPopupResult.registerClass('Meijer.GroceryExpress.Web.WebServices.FillAddToListPopupResult');
}
Type.registerNamespace('Meijer.GroceryExpress.Business.Entities');
if (typeof(Meijer.GroceryExpress.Business.Entities.ProductQuantity) === 'undefined') {
Meijer.GroceryExpress.Business.Entities.ProductQuantity=gtc("Meijer.GroceryExpress.Business.Entities.ProductQuantity");
Meijer.GroceryExpress.Business.Entities.ProductQuantity.registerClass('Meijer.GroceryExpress.Business.Entities.ProductQuantity');
}
if (typeof(Meijer.GroceryExpress.Web.WebServices.ProductQuantityInList) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.ProductQuantityInList=gtc("Meijer.GroceryExpress.Web.WebServices.ProductQuantityInList");
Meijer.GroceryExpress.Web.WebServices.ProductQuantityInList.registerClass('Meijer.GroceryExpress.Web.WebServices.ProductQuantityInList');
}
if (typeof(Meijer.GroceryExpress.Web.WebServices.GenericAjaxResult) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.GenericAjaxResult=gtc("Meijer.GroceryExpress.Web.WebServices.GenericAjaxResult");
Meijer.GroceryExpress.Web.WebServices.GenericAjaxResult.registerClass('Meijer.GroceryExpress.Web.WebServices.GenericAjaxResult');
}
if (typeof(Meijer.GroceryExpress.Web.WebServices.AddProductType) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.AddProductType = function() { throw Error.invalidOperation(); }
Meijer.GroceryExpress.Web.WebServices.AddProductType.prototype = {Single: 0,Multiple: 1}
Meijer.GroceryExpress.Web.WebServices.AddProductType.registerEnum('Meijer.GroceryExpress.Web.WebServices.AddProductType', true);
}
if (typeof(Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResultStatus) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResultStatus = function() { throw Error.invalidOperation(); }
Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResultStatus.prototype = {Success: 0,Failure: 1,StoreNotValid: 2,OrderStoreAlreadySet: 3,TimeSlotInvalid: 4}
Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResultStatus.registerEnum('Meijer.GroceryExpress.Web.WebServices.SelectStorePickupResultStatus', true);
}
if (typeof(Meijer.GroceryExpress.Web.WebServices.AddToCartResultStatus) === 'undefined') {
Meijer.GroceryExpress.Web.WebServices.AddToCartResultStatus = function() { throw Error.invalidOperation(); }
Meijer.GroceryExpress.Web.WebServices.AddToCartResultStatus.prototype = {Success: 0,Failure: 1,RestrictedItemsNotAllowed: 2,TimeSlotFull: 3,ProductNotAvailableValidationFailure: 4,OrderLocked: 5,LockWindowBreached: 6,TimeSlotNotSpecified: 7}
Meijer.GroceryExpress.Web.WebServices.AddToCartResultStatus.registerEnum('Meijer.GroceryExpress.Web.WebServices.AddToCartResultStatus', true);
}
