Type.registerNamespace('Softchoice.Web.WebServices');
Softchoice.Web.WebServices.Leasing=function() {
Softchoice.Web.WebServices.Leasing.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Softchoice.Web.WebServices.Leasing.prototype={
ImportFromCart:function(id,culture,succeededCallback, failedCallback, userContext) {
return this._invoke(Softchoice.Web.WebServices.Leasing.get_path(), 'ImportFromCart',false,{id:id,culture:culture},succeededCallback,failedCallback,userContext); },
DeleteItem:function(s,succeededCallback, failedCallback, userContext) {
return this._invoke(Softchoice.Web.WebServices.Leasing.get_path(), 'DeleteItem',false,{s:s},succeededCallback,failedCallback,userContext); },
AddItem:function(sku,quantity,culture,succeededCallback, failedCallback, userContext) {
return this._invoke(Softchoice.Web.WebServices.Leasing.get_path(), 'AddItem',false,{sku:sku,quantity:quantity,culture:culture},succeededCallback,failedCallback,userContext); },
UpdateAndCalculate:function(s,code,succeededCallback, failedCallback, userContext) {
return this._invoke(Softchoice.Web.WebServices.Leasing.get_path(), 'UpdateAndCalculate',false,{s:s,code:code},succeededCallback,failedCallback,userContext); },
Calculate:function(tott,code,succeededCallback, failedCallback, userContext) {
return this._invoke(Softchoice.Web.WebServices.Leasing.get_path(), 'Calculate',false,{tott:tott,code:code},succeededCallback,failedCallback,userContext); }}
Softchoice.Web.WebServices.Leasing.registerClass('Softchoice.Web.WebServices.Leasing',Sys.Net.WebServiceProxy);
Softchoice.Web.WebServices.Leasing._staticInstance = new Softchoice.Web.WebServices.Leasing();
Softchoice.Web.WebServices.Leasing.set_path = function(value) { Softchoice.Web.WebServices.Leasing._staticInstance._path = value; }
Softchoice.Web.WebServices.Leasing.get_path = function() { return Softchoice.Web.WebServices.Leasing._staticInstance._path; }
Softchoice.Web.WebServices.Leasing.set_timeout = function(value) { Softchoice.Web.WebServices.Leasing._staticInstance._timeout = value; }
Softchoice.Web.WebServices.Leasing.get_timeout = function() { return Softchoice.Web.WebServices.Leasing._staticInstance._timeout; }
Softchoice.Web.WebServices.Leasing.set_defaultUserContext = function(value) { Softchoice.Web.WebServices.Leasing._staticInstance._userContext = value; }
Softchoice.Web.WebServices.Leasing.get_defaultUserContext = function() { return Softchoice.Web.WebServices.Leasing._staticInstance._userContext; }
Softchoice.Web.WebServices.Leasing.set_defaultSucceededCallback = function(value) { Softchoice.Web.WebServices.Leasing._staticInstance._succeeded = value; }
Softchoice.Web.WebServices.Leasing.get_defaultSucceededCallback = function() { return Softchoice.Web.WebServices.Leasing._staticInstance._succeeded; }
Softchoice.Web.WebServices.Leasing.set_defaultFailedCallback = function(value) { Softchoice.Web.WebServices.Leasing._staticInstance._failed = value; }
Softchoice.Web.WebServices.Leasing.get_defaultFailedCallback = function() { return Softchoice.Web.WebServices.Leasing._staticInstance._failed; }
Softchoice.Web.WebServices.Leasing.set_path("/WebServices/Leasing.asmx");
Softchoice.Web.WebServices.Leasing.ImportFromCart= function(id,culture,onSuccess,onFailed,userContext) {Softchoice.Web.WebServices.Leasing._staticInstance.ImportFromCart(id,culture,onSuccess,onFailed,userContext); }
Softchoice.Web.WebServices.Leasing.DeleteItem= function(s,onSuccess,onFailed,userContext) {Softchoice.Web.WebServices.Leasing._staticInstance.DeleteItem(s,onSuccess,onFailed,userContext); }
Softchoice.Web.WebServices.Leasing.AddItem= function(sku,quantity,culture,onSuccess,onFailed,userContext) {Softchoice.Web.WebServices.Leasing._staticInstance.AddItem(sku,quantity,culture,onSuccess,onFailed,userContext); }
Softchoice.Web.WebServices.Leasing.UpdateAndCalculate= function(s,code,onSuccess,onFailed,userContext) {Softchoice.Web.WebServices.Leasing._staticInstance.UpdateAndCalculate(s,code,onSuccess,onFailed,userContext); }
Softchoice.Web.WebServices.Leasing.Calculate= function(tott,code,onSuccess,onFailed,userContext) {Softchoice.Web.WebServices.Leasing._staticInstance.Calculate(tott,code,onSuccess,onFailed,userContext); }
