var ActionService=function() {
ActionService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ActionService.prototype={
ShippingMethod:function(addressNameValuePairOverride,id,addressId,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'ShippingMethod',false,{addressNameValuePairOverride:addressNameValuePairOverride,id:id,addressId:addressId},succeededCallback,failedCallback,userContext); },
GetStates:function(forCountry,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'GetStates',false,{forCountry:forCountry},succeededCallback,failedCallback,userContext); },
GetPricingLevel:function(itemCode,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'GetPricingLevel',false,{itemCode:itemCode},succeededCallback,failedCallback,userContext); },
GetOrderHistory:function(pages,current,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'GetOrderHistory',false,{pages:pages,current:current},succeededCallback,failedCallback,userContext); },
AddNewAddress:function(addresNameValuePair,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'AddNewAddress',false,{addresNameValuePair:addresNameValuePair},succeededCallback,failedCallback,userContext); },
GetItemPrice:function(itemCode,itemType,unitMeasureCode,composition,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'GetItemPrice',false,{itemCode:itemCode,itemType:itemType,unitMeasureCode:unitMeasureCode,composition:composition},succeededCallback,failedCallback,userContext); },
AddToCart:function(productID,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'AddToCart',false,{productID:productID,quantity:quantity},succeededCallback,failedCallback,userContext); },
LastKitAdded:function(kitCode,isUpdated,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'LastKitAdded',false,{kitCode:kitCode,isUpdated:isUpdated},succeededCallback,failedCallback,userContext); },
LastItemAdded:function(itemCode,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'LastItemAdded',false,{itemCode:itemCode,quantity:quantity},succeededCallback,failedCallback,userContext); },
UpdateCartStatus:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'UpdateCartStatus',false,{},succeededCallback,failedCallback,userContext); },
UpdateCart:function(succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'UpdateCart',false,{},succeededCallback,failedCallback,userContext); },
ProcessCart:function(entries,succeededCallback, failedCallback, userContext) {
return this._invoke(ActionService.get_path(), 'ProcessCart',false,{entries:entries},succeededCallback,failedCallback,userContext); }}
ActionService.registerClass('ActionService',Sys.Net.WebServiceProxy);
ActionService._staticInstance = new ActionService();
ActionService.set_path = function(value) { ActionService._staticInstance._path = value; }
ActionService.get_path = function() { return ActionService._staticInstance._path; }
ActionService.set_timeout = function(value) { ActionService._staticInstance._timeout = value; }
ActionService.get_timeout = function() { return ActionService._staticInstance._timeout; }
ActionService.set_defaultUserContext = function(value) { ActionService._staticInstance._userContext = value; }
ActionService.get_defaultUserContext = function() { return ActionService._staticInstance._userContext; }
ActionService.set_defaultSucceededCallback = function(value) { ActionService._staticInstance._succeeded = value; }
ActionService.get_defaultSucceededCallback = function() { return ActionService._staticInstance._succeeded; }
ActionService.set_defaultFailedCallback = function(value) { ActionService._staticInstance._failed = value; }
ActionService.get_defaultFailedCallback = function() { return ActionService._staticInstance._failed; }
ActionService.set_path("/actionservice.asmx");
ActionService.ShippingMethod= function(addressNameValuePairOverride,id,addressId,onSuccess,onFailed,userContext) {ActionService._staticInstance.ShippingMethod(addressNameValuePairOverride,id,addressId,onSuccess,onFailed,userContext); }
ActionService.GetStates= function(forCountry,onSuccess,onFailed,userContext) {ActionService._staticInstance.GetStates(forCountry,onSuccess,onFailed,userContext); }
ActionService.GetPricingLevel= function(itemCode,onSuccess,onFailed,userContext) {ActionService._staticInstance.GetPricingLevel(itemCode,onSuccess,onFailed,userContext); }
ActionService.GetOrderHistory= function(pages,current,onSuccess,onFailed,userContext) {ActionService._staticInstance.GetOrderHistory(pages,current,onSuccess,onFailed,userContext); }
ActionService.AddNewAddress= function(addresNameValuePair,onSuccess,onFailed,userContext) {ActionService._staticInstance.AddNewAddress(addresNameValuePair,onSuccess,onFailed,userContext); }
ActionService.GetItemPrice= function(itemCode,itemType,unitMeasureCode,composition,onSuccess,onFailed,userContext) {ActionService._staticInstance.GetItemPrice(itemCode,itemType,unitMeasureCode,composition,onSuccess,onFailed,userContext); }
ActionService.AddToCart= function(productID,quantity,onSuccess,onFailed,userContext) {ActionService._staticInstance.AddToCart(productID,quantity,onSuccess,onFailed,userContext); }
ActionService.LastKitAdded= function(kitCode,isUpdated,onSuccess,onFailed,userContext) {ActionService._staticInstance.LastKitAdded(kitCode,isUpdated,onSuccess,onFailed,userContext); }
ActionService.LastItemAdded= function(itemCode,quantity,onSuccess,onFailed,userContext) {ActionService._staticInstance.LastItemAdded(itemCode,quantity,onSuccess,onFailed,userContext); }
ActionService.UpdateCartStatus= function(onSuccess,onFailed,userContext) {ActionService._staticInstance.UpdateCartStatus(onSuccess,onFailed,userContext); }
ActionService.UpdateCart= function(onSuccess,onFailed,userContext) {ActionService._staticInstance.UpdateCart(onSuccess,onFailed,userContext); }
ActionService.ProcessCart= function(entries,onSuccess,onFailed,userContext) {ActionService._staticInstance.ProcessCart(entries,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('AspDotNetStorefrontCommon.DTO');
if (typeof(AspDotNetStorefrontCommon.DTO.OrderHistoryResult) === 'undefined') {
AspDotNetStorefrontCommon.DTO.OrderHistoryResult=gtc("AspDotNetStorefrontCommon.DTO.OrderHistoryResult");
AspDotNetStorefrontCommon.DTO.OrderHistoryResult.registerClass('AspDotNetStorefrontCommon.DTO.OrderHistoryResult');
}
if (typeof(AspDotNetStorefrontCommon.DTO.CartResult) === 'undefined') {
AspDotNetStorefrontCommon.DTO.CartResult=gtc("AspDotNetStorefrontCommon.DTO.CartResult");
AspDotNetStorefrontCommon.DTO.CartResult.registerClass('AspDotNetStorefrontCommon.DTO.CartResult');
}
if (typeof(AspDotNetStorefrontCommon.DTO.CartStatus) === 'undefined') {
AspDotNetStorefrontCommon.DTO.CartStatus=gtc("AspDotNetStorefrontCommon.DTO.CartStatus");
AspDotNetStorefrontCommon.DTO.CartStatus.registerClass('AspDotNetStorefrontCommon.DTO.CartStatus');
}
if (typeof(AspDotNetStorefrontCommon.DTO.CartEntry) === 'undefined') {
AspDotNetStorefrontCommon.DTO.CartEntry=gtc("AspDotNetStorefrontCommon.DTO.CartEntry");
AspDotNetStorefrontCommon.DTO.CartEntry.registerClass('AspDotNetStorefrontCommon.DTO.CartEntry');
}
