var Discounts=function() {
Discounts.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Discounts.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Discounts._staticInstance.get_path();},
GetDiscount:function(DiscountCode,succeededCallback, failedCallback, userContext) {
/// <param name="DiscountCode" 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(), 'GetDiscount',false,{DiscountCode:DiscountCode},succeededCallback,failedCallback,userContext); }}
Discounts.registerClass('Discounts',Sys.Net.WebServiceProxy);
Discounts._staticInstance = new Discounts();
Discounts.set_path = function(value) {
Discounts._staticInstance.set_path(value); }
Discounts.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Discounts._staticInstance.get_path();}
Discounts.set_timeout = function(value) {
Discounts._staticInstance.set_timeout(value); }
Discounts.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Discounts._staticInstance.get_timeout(); }
Discounts.set_defaultUserContext = function(value) { 
Discounts._staticInstance.set_defaultUserContext(value); }
Discounts.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Discounts._staticInstance.get_defaultUserContext(); }
Discounts.set_defaultSucceededCallback = function(value) { 
 Discounts._staticInstance.set_defaultSucceededCallback(value); }
Discounts.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Discounts._staticInstance.get_defaultSucceededCallback(); }
Discounts.set_defaultFailedCallback = function(value) { 
Discounts._staticInstance.set_defaultFailedCallback(value); }
Discounts.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Discounts._staticInstance.get_defaultFailedCallback(); }
Discounts.set_path("/WebServices/Discounts.asmx");
Discounts.GetDiscount= function(DiscountCode,onSuccess,onFailed,userContext) {
/// <param name="DiscountCode" 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>
Discounts._staticInstance.GetDiscount(DiscountCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Discount) === 'undefined') {
var Discount=gtc("Discount");
Discount.registerClass('Discount');
}

