Type.registerNamespace('EastAmulet.SRV'); EastAmulet.SRV.SendCoupon=function() { EastAmulet.SRV.SendCoupon.initializeBase(this); this._timeout = 0; this._userContext = null; this._succeeded = null; this._failed = null; } EastAmulet.SRV.SendCoupon.prototype={ EmailCoupon:function(code,value,email,succeededCallback, failedCallback, userContext) { return this._invoke(EastAmulet.SRV.SendCoupon.get_path(), 'EmailCoupon',false,{code:code,value:value,email:email},succeededCallback,failedCallback,userContext); }} EastAmulet.SRV.SendCoupon.registerClass('EastAmulet.SRV.SendCoupon',Sys.Net.WebServiceProxy); EastAmulet.SRV.SendCoupon._staticInstance = new EastAmulet.SRV.SendCoupon(); EastAmulet.SRV.SendCoupon.set_path = function(value) { var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; EastAmulet.SRV.SendCoupon._staticInstance._path = value; } EastAmulet.SRV.SendCoupon.get_path = function() { return EastAmulet.SRV.SendCoupon._staticInstance._path; } EastAmulet.SRV.SendCoupon.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); } EastAmulet.SRV.SendCoupon._staticInstance._timeout = value; } EastAmulet.SRV.SendCoupon.get_timeout = function() { return EastAmulet.SRV.SendCoupon._staticInstance._timeout; } EastAmulet.SRV.SendCoupon.set_defaultUserContext = function(value) { EastAmulet.SRV.SendCoupon._staticInstance._userContext = value; } EastAmulet.SRV.SendCoupon.get_defaultUserContext = function() { return EastAmulet.SRV.SendCoupon._staticInstance._userContext; } EastAmulet.SRV.SendCoupon.set_defaultSucceededCallback = function(value) { var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; EastAmulet.SRV.SendCoupon._staticInstance._succeeded = value; } EastAmulet.SRV.SendCoupon.get_defaultSucceededCallback = function() { return EastAmulet.SRV.SendCoupon._staticInstance._succeeded; } EastAmulet.SRV.SendCoupon.set_defaultFailedCallback = function(value) { var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; EastAmulet.SRV.SendCoupon._staticInstance._failed = value; } EastAmulet.SRV.SendCoupon.get_defaultFailedCallback = function() { return EastAmulet.SRV.SendCoupon._staticInstance._failed; } EastAmulet.SRV.SendCoupon.set_path("/Srv/SendCoupon.asmx"); EastAmulet.SRV.SendCoupon.EmailCoupon= function(code,value,email,onSuccess,onFailed,userContext) {EastAmulet.SRV.SendCoupon._staticInstance.EmailCoupon(code,value,email,onSuccess,onFailed,userContext); }