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) {
/// <param name="itemID" type="String">System.String</param>
/// <param name="productOptions" type="String">System.String</param>
/// <param name="quantity" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
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) {
/// <param name="loginID" type="String">System.String</param>
/// <param name="trackingIDs" type="String">System.String</param>
/// <param name="basketIDs" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'DespatchOrder',false,{loginID:loginID,trackingIDs:trackingIDs,basketIDs:basketIDs},succeededCallback,failedCallback,userContext); },
GetMiniBasket:function(basketID,succeededCallback, failedCallback, userContext) {
/// <param name="basketID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetMiniBasket',false,{basketID:basketID},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() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Baskets._staticInstance.get_path();}
Baskets.set_timeout = function(value) {
Baskets._staticInstance.set_timeout(value); }
Baskets.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Baskets._staticInstance.get_timeout(); }
Baskets.set_defaultUserContext = function(value) { 
Baskets._staticInstance.set_defaultUserContext(value); }
Baskets.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Baskets._staticInstance.get_defaultUserContext(); }
Baskets.set_defaultSucceededCallback = function(value) { 
 Baskets._staticInstance.set_defaultSucceededCallback(value); }
Baskets.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Baskets._staticInstance.get_defaultSucceededCallback(); }
Baskets.set_defaultFailedCallback = function(value) { 
Baskets._staticInstance.set_defaultFailedCallback(value); }
Baskets.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Baskets._staticInstance.get_defaultFailedCallback(); }
Baskets.set_path("/Services/Baskets.asmx");
Baskets.AddToBasket= function(itemID,productOptions,quantity,onSuccess,onFailed,userContext) {
/// <param name="itemID" type="String">System.String</param>
/// <param name="productOptions" type="String">System.String</param>
/// <param name="quantity" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Baskets._staticInstance.AddToBasket(itemID,productOptions,quantity,onSuccess,onFailed,userContext); }
Baskets.DespatchOrder= function(loginID,trackingIDs,basketIDs,onSuccess,onFailed,userContext) {
/// <param name="loginID" type="String">System.String</param>
/// <param name="trackingIDs" type="String">System.String</param>
/// <param name="basketIDs" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Baskets._staticInstance.DespatchOrder(loginID,trackingIDs,basketIDs,onSuccess,onFailed,userContext); }
Baskets.GetMiniBasket= function(basketID,onSuccess,onFailed,userContext) {
/// <param name="basketID" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Baskets._staticInstance.GetMiniBasket(basketID,onSuccess,onFailed,userContext); }

