var Baskets=function() {
Baskets.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Baskets.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Baskets._staticInstance.get_path();},
AddToBasket:function(itemID,productOptions,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToBasket',false,{itemID:itemID,productOptions:productOptions,quantity:quantity},succeededCallback,failedCallback,userContext); },
DespatchOrder:function(loginID,trackingIDs,basketIDs,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DespatchOrder',false,{loginID:loginID,trackingIDs:trackingIDs,basketIDs:basketIDs},succeededCallback,failedCallback,userContext); },
GetMiniBasket:function(basketID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMiniBasket',false,{basketID:basketID},succeededCallback,failedCallback,userContext); },
UpdateGiftwrap:function(basketItemID,giftwrapID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateGiftwrap',false,{basketItemID:basketItemID,giftwrapID:giftwrapID},succeededCallback,failedCallback,userContext); },
UpdateGiftwrapMessage:function(basketItemID,giftwrapMessage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateGiftwrapMessage',false,{basketItemID:basketItemID,giftwrapMessage:giftwrapMessage},succeededCallback,failedCallback,userContext); }}
Baskets.registerClass('Baskets',Sys.Net.WebServiceProxy);
Baskets._staticInstance = new Baskets();
Baskets.set_path = function(value) { Baskets._staticInstance.set_path(value); }
Baskets.get_path = function() { return Baskets._staticInstance.get_path(); }
Baskets.set_timeout = function(value) { Baskets._staticInstance.set_timeout(value); }
Baskets.get_timeout = function() { return Baskets._staticInstance.get_timeout(); }
Baskets.set_defaultUserContext = function(value) { Baskets._staticInstance.set_defaultUserContext(value); }
Baskets.get_defaultUserContext = function() { return Baskets._staticInstance.get_defaultUserContext(); }
Baskets.set_defaultSucceededCallback = function(value) { Baskets._staticInstance.set_defaultSucceededCallback(value); }
Baskets.get_defaultSucceededCallback = function() { return Baskets._staticInstance.get_defaultSucceededCallback(); }
Baskets.set_defaultFailedCallback = function(value) { Baskets._staticInstance.set_defaultFailedCallback(value); }
Baskets.get_defaultFailedCallback = function() { return Baskets._staticInstance.get_defaultFailedCallback(); }
Baskets.set_path("/Services/Baskets.asmx");
Baskets.AddToBasket= function(itemID,productOptions,quantity,onSuccess,onFailed,userContext) {Baskets._staticInstance.AddToBasket(itemID,productOptions,quantity,onSuccess,onFailed,userContext); }
Baskets.DespatchOrder= function(loginID,trackingIDs,basketIDs,onSuccess,onFailed,userContext) {Baskets._staticInstance.DespatchOrder(loginID,trackingIDs,basketIDs,onSuccess,onFailed,userContext); }
Baskets.GetMiniBasket= function(basketID,onSuccess,onFailed,userContext) {Baskets._staticInstance.GetMiniBasket(basketID,onSuccess,onFailed,userContext); }
Baskets.UpdateGiftwrap= function(basketItemID,giftwrapID,onSuccess,onFailed,userContext) {Baskets._staticInstance.UpdateGiftwrap(basketItemID,giftwrapID,onSuccess,onFailed,userContext); }
Baskets.UpdateGiftwrapMessage= function(basketItemID,giftwrapMessage,onSuccess,onFailed,userContext) {Baskets._staticInstance.UpdateGiftwrapMessage(basketItemID,giftwrapMessage,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Estreet');
if (typeof(Estreet.Basket) === 'undefined') {
Estreet.Basket=gtc("Estreet.Basket");
Estreet.Basket.registerClass('Estreet.Basket');
}

