var BasketMgt=function() {
BasketMgt.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BasketMgt.prototype={
AddProduct:function(productId,succeededCallback, failedCallback, userContext) {
return this._invoke(BasketMgt.get_path(), 'AddProduct',false,{productId:productId},succeededCallback,failedCallback,userContext); },
AddPackage:function(packId,succeededCallback, failedCallback, userContext) {
return this._invoke(BasketMgt.get_path(), 'AddPackage',false,{packId:packId},succeededCallback,failedCallback,userContext); },
RemoveProduct:function(numPoste,succeededCallback, failedCallback, userContext) {
return this._invoke(BasketMgt.get_path(), 'RemoveProduct',false,{numPoste:numPoste},succeededCallback,failedCallback,userContext); },
AddPromoCode:function(promoCode,succeededCallback, failedCallback, userContext) {
return this._invoke(BasketMgt.get_path(), 'AddPromoCode',false,{promoCode:promoCode},succeededCallback,failedCallback,userContext); },
GetBasketHeader:function(succeededCallback, failedCallback, userContext) {
return this._invoke(BasketMgt.get_path(), 'GetBasketHeader',false,{},succeededCallback,failedCallback,userContext); }}
BasketMgt.registerClass('BasketMgt',Sys.Net.WebServiceProxy);
BasketMgt._staticInstance = new BasketMgt();
BasketMgt.set_path = function(value) { BasketMgt._staticInstance._path = value; }
BasketMgt.get_path = function() { return BasketMgt._staticInstance._path; }
BasketMgt.set_timeout = function(value) { BasketMgt._staticInstance._timeout = value; }
BasketMgt.get_timeout = function() { return BasketMgt._staticInstance._timeout; }
BasketMgt.set_defaultUserContext = function(value) { BasketMgt._staticInstance._userContext = value; }
BasketMgt.get_defaultUserContext = function() { return BasketMgt._staticInstance._userContext; }
BasketMgt.set_defaultSucceededCallback = function(value) { BasketMgt._staticInstance._succeeded = value; }
BasketMgt.get_defaultSucceededCallback = function() { return BasketMgt._staticInstance._succeeded; }
BasketMgt.set_defaultFailedCallback = function(value) { BasketMgt._staticInstance._failed = value; }
BasketMgt.get_defaultFailedCallback = function() { return BasketMgt._staticInstance._failed; }
BasketMgt.set_path("/WebServices/BasketMgt.asmx");
BasketMgt.AddProduct= function(productId,onSuccess,onFailed,userContext) {BasketMgt._staticInstance.AddProduct(productId,onSuccess,onFailed,userContext); }
BasketMgt.AddPackage= function(packId,onSuccess,onFailed,userContext) {BasketMgt._staticInstance.AddPackage(packId,onSuccess,onFailed,userContext); }
BasketMgt.RemoveProduct= function(numPoste,onSuccess,onFailed,userContext) {BasketMgt._staticInstance.RemoveProduct(numPoste,onSuccess,onFailed,userContext); }
BasketMgt.AddPromoCode= function(promoCode,onSuccess,onFailed,userContext) {BasketMgt._staticInstance.AddPromoCode(promoCode,onSuccess,onFailed,userContext); }
BasketMgt.GetBasketHeader= function(onSuccess,onFailed,userContext) {BasketMgt._staticInstance.GetBasketHeader(onSuccess,onFailed,userContext); }
