var StoreService=function() {
StoreService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
StoreService.prototype={
GetWinesAllWithImage:function(succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'GetWinesAllWithImage',false,{},succeededCallback,failedCallback,userContext); },
GetOthersProductsAllWithImage:function(succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'GetOthersProductsAllWithImage',false,{},succeededCallback,failedCallback,userContext); },
GetSubscriptionsAllWithImage:function(succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'GetSubscriptionsAllWithImage',false,{},succeededCallback,failedCallback,userContext); },
GetOthersProductsAllWithImageByType:function(strTypeProduct,succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'GetOthersProductsAllWithImageByType',false,{strTypeProduct:strTypeProduct},succeededCallback,failedCallback,userContext); },
GetTypesOthersProducts:function(succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'GetTypesOthersProducts',false,{},succeededCallback,failedCallback,userContext); },
GetUserId:function(succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'GetUserId',false,{},succeededCallback,failedCallback,userContext); },
ValidateStock:function(strId,intQuantity,succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'ValidateStock',false,{strId:strId,intQuantity:intQuantity},succeededCallback,failedCallback,userContext); },
AddProductToCart:function(strId,intQuantity,dbPriceMember,dbPriceNormal,succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'AddProductToCart',false,{strId:strId,intQuantity:intQuantity,dbPriceMember:dbPriceMember,dbPriceNormal:dbPriceNormal},succeededCallback,failedCallback,userContext); },
AddSubscriptionToCart:function(strId,intQuantity,dbPriceMensual,intIdBottle,intIdMonth,succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'AddSubscriptionToCart',false,{strId:strId,intQuantity:intQuantity,dbPriceMensual:dbPriceMensual,intIdBottle:intIdBottle,intIdMonth:intIdMonth},succeededCallback,failedCallback,userContext); },
GetCartLabel:function(succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'GetCartLabel',false,{},succeededCallback,failedCallback,userContext); },
GetCartUser:function(succeededCallback, failedCallback, userContext) {
return this._invoke(StoreService.get_path(), 'GetCartUser',false,{},succeededCallback,failedCallback,userContext); }}
StoreService.registerClass('StoreService',Sys.Net.WebServiceProxy);
StoreService._staticInstance = new StoreService();
StoreService.set_path = function(value) { StoreService._staticInstance._path = value; }
StoreService.get_path = function() { return StoreService._staticInstance._path; }
StoreService.set_timeout = function(value) { StoreService._staticInstance._timeout = value; }
StoreService.get_timeout = function() { return StoreService._staticInstance._timeout; }
StoreService.set_defaultUserContext = function(value) { StoreService._staticInstance._userContext = value; }
StoreService.get_defaultUserContext = function() { return StoreService._staticInstance._userContext; }
StoreService.set_defaultSucceededCallback = function(value) { StoreService._staticInstance._succeeded = value; }
StoreService.get_defaultSucceededCallback = function() { return StoreService._staticInstance._succeeded; }
StoreService.set_defaultFailedCallback = function(value) { StoreService._staticInstance._failed = value; }
StoreService.get_defaultFailedCallback = function() { return StoreService._staticInstance._failed; }
StoreService.set_path("/DesktopModules/Store/FlexStore/StoreService.asmx");
StoreService.GetWinesAllWithImage= function(onSuccess,onFailed,userContext) {StoreService._staticInstance.GetWinesAllWithImage(onSuccess,onFailed,userContext); }
StoreService.GetOthersProductsAllWithImage= function(onSuccess,onFailed,userContext) {StoreService._staticInstance.GetOthersProductsAllWithImage(onSuccess,onFailed,userContext); }
StoreService.GetSubscriptionsAllWithImage= function(onSuccess,onFailed,userContext) {StoreService._staticInstance.GetSubscriptionsAllWithImage(onSuccess,onFailed,userContext); }
StoreService.GetOthersProductsAllWithImageByType= function(strTypeProduct,onSuccess,onFailed,userContext) {StoreService._staticInstance.GetOthersProductsAllWithImageByType(strTypeProduct,onSuccess,onFailed,userContext); }
StoreService.GetTypesOthersProducts= function(onSuccess,onFailed,userContext) {StoreService._staticInstance.GetTypesOthersProducts(onSuccess,onFailed,userContext); }
StoreService.GetUserId= function(onSuccess,onFailed,userContext) {StoreService._staticInstance.GetUserId(onSuccess,onFailed,userContext); }
StoreService.ValidateStock= function(strId,intQuantity,onSuccess,onFailed,userContext) {StoreService._staticInstance.ValidateStock(strId,intQuantity,onSuccess,onFailed,userContext); }
StoreService.AddProductToCart= function(strId,intQuantity,dbPriceMember,dbPriceNormal,onSuccess,onFailed,userContext) {StoreService._staticInstance.AddProductToCart(strId,intQuantity,dbPriceMember,dbPriceNormal,onSuccess,onFailed,userContext); }
StoreService.AddSubscriptionToCart= function(strId,intQuantity,dbPriceMensual,intIdBottle,intIdMonth,onSuccess,onFailed,userContext) {StoreService._staticInstance.AddSubscriptionToCart(strId,intQuantity,dbPriceMensual,intIdBottle,intIdMonth,onSuccess,onFailed,userContext); }
StoreService.GetCartLabel= function(onSuccess,onFailed,userContext) {StoreService._staticInstance.GetCartLabel(onSuccess,onFailed,userContext); }
StoreService.GetCartUser= function(onSuccess,onFailed,userContext) {StoreService._staticInstance.GetCartUser(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Producto) === 'undefined') {
var Producto=gtc("Producto");
Producto.registerClass('Producto');
}
