Type.registerNamespace('MicrosoftFrance.MCS.Commerce.WS.AJAXProject');
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService=function() {
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.prototype={
Login:function(customerId,login,password,succeededCallback, failedCallback, userContext) {
return this._invoke(MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.get_path(), 'Login',false,{customerId:customerId,login:login,password:password},succeededCallback,failedCallback,userContext); },
Register:function(customerId,firstName,lastName,email,password,succeededCallback, failedCallback, userContext) {
return this._invoke(MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.get_path(), 'Register',false,{customerId:customerId,firstName:firstName,lastName:lastName,email:email,password:password},succeededCallback,failedCallback,userContext); },
ProductStockNotificationSave:function(customerEmail,productCode,succeededCallback, failedCallback, userContext) {
return this._invoke(MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.get_path(), 'ProductStockNotificationSave',false,{customerEmail:customerEmail,productCode:productCode},succeededCallback,failedCallback,userContext); }}
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.registerClass('MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService',Sys.Net.WebServiceProxy);
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance = new MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService();
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.set_path = function(value) { MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._path = value; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.get_path = function() { return MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._path; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.set_timeout = function(value) { MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._timeout = value; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.get_timeout = function() { return MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._timeout; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.set_defaultUserContext = function(value) { MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._userContext = value; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.get_defaultUserContext = function() { return MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._userContext; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.set_defaultSucceededCallback = function(value) { MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._succeeded = value; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.get_defaultSucceededCallback = function() { return MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._succeeded; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.set_defaultFailedCallback = function(value) { MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._failed = value; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.get_defaultFailedCallback = function() { return MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance._failed; }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.set_path("/ws/ajax/Customer.asmx");
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.Login= function(customerId,login,password,onSuccess,onFailed,userContext) {MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance.Login(customerId,login,password,onSuccess,onFailed,userContext); }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.Register= function(customerId,firstName,lastName,email,password,onSuccess,onFailed,userContext) {MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance.Register(customerId,firstName,lastName,email,password,onSuccess,onFailed,userContext); }
MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService.ProductStockNotificationSave= function(customerEmail,productCode,onSuccess,onFailed,userContext) {MicrosoftFrance.MCS.Commerce.WS.AJAXProject.CustomerWebService._staticInstance.ProductStockNotificationSave(customerEmail,productCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('MicrosoftFrance.MCS.Commerce.AJAXProject');
if (typeof(MicrosoftFrance.MCS.Commerce.AJAXProject.Customer) === 'undefined') {
MicrosoftFrance.MCS.Commerce.AJAXProject.Customer=gtc("MicrosoftFrance.MCS.Commerce.AJAXProject.Customer");
MicrosoftFrance.MCS.Commerce.AJAXProject.Customer.registerClass('MicrosoftFrance.MCS.Commerce.AJAXProject.Customer');
}
if (typeof(MicrosoftFrance.MCS.Commerce.AJAXProject.Status) === 'undefined') {
MicrosoftFrance.MCS.Commerce.AJAXProject.Status=gtc("MicrosoftFrance.MCS.Commerce.AJAXProject.Status");
MicrosoftFrance.MCS.Commerce.AJAXProject.Status.registerClass('MicrosoftFrance.MCS.Commerce.AJAXProject.Status');
}
