Type.registerNamespace('Reportage');
Reportage.BasketController=function() {
Reportage.BasketController.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Reportage.BasketController.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Reportage.BasketController._staticInstance.get_path();},
AddToBasket:function(guid,ref,descriptionNumber,qty,eventType,succeededCallback, failedCallback, userContext) {
/// <param name="guid" type="String">System.String</param>
/// <param name="ref" type="String">System.String</param>
/// <param name="descriptionNumber" type="String">System.String</param>
/// <param name="qty" type="String">System.String</param>
/// <param name="eventType" 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,{guid:guid,ref:ref,descriptionNumber:descriptionNumber,qty:qty,eventType:eventType},succeededCallback,failedCallback,userContext); },
SendOrderToInPress:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'SendOrderToInPress',false,{},succeededCallback,failedCallback,userContext); }}
Reportage.BasketController.registerClass('Reportage.BasketController',Sys.Net.WebServiceProxy);
Reportage.BasketController._staticInstance = new Reportage.BasketController();
Reportage.BasketController.set_path = function(value) {
Reportage.BasketController._staticInstance.set_path(value); }
Reportage.BasketController.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Reportage.BasketController._staticInstance.get_path();}
Reportage.BasketController.set_timeout = function(value) {
Reportage.BasketController._staticInstance.set_timeout(value); }
Reportage.BasketController.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Reportage.BasketController._staticInstance.get_timeout(); }
Reportage.BasketController.set_defaultUserContext = function(value) { 
Reportage.BasketController._staticInstance.set_defaultUserContext(value); }
Reportage.BasketController.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Reportage.BasketController._staticInstance.get_defaultUserContext(); }
Reportage.BasketController.set_defaultSucceededCallback = function(value) { 
 Reportage.BasketController._staticInstance.set_defaultSucceededCallback(value); }
Reportage.BasketController.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Reportage.BasketController._staticInstance.get_defaultSucceededCallback(); }
Reportage.BasketController.set_defaultFailedCallback = function(value) { 
Reportage.BasketController._staticInstance.set_defaultFailedCallback(value); }
Reportage.BasketController.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Reportage.BasketController._staticInstance.get_defaultFailedCallback(); }
Reportage.BasketController.set_path("/BasketController.asmx");
Reportage.BasketController.AddToBasket= function(guid,ref,descriptionNumber,qty,eventType,onSuccess,onFailed,userContext) {
/// <param name="guid" type="String">System.String</param>
/// <param name="ref" type="String">System.String</param>
/// <param name="descriptionNumber" type="String">System.String</param>
/// <param name="qty" type="String">System.String</param>
/// <param name="eventType" 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>
Reportage.BasketController._staticInstance.AddToBasket(guid,ref,descriptionNumber,qty,eventType,onSuccess,onFailed,userContext); }
Reportage.BasketController.SendOrderToInPress= function(onSuccess,onFailed,userContext) {
/// <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>
Reportage.BasketController._staticInstance.SendOrderToInPress(onSuccess,onFailed,userContext); }

