Type.registerNamespace('AuGold.WebServices');
AuGold.WebServices.ProductPrices=function() {
AuGold.WebServices.ProductPrices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
AuGold.WebServices.ProductPrices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return AuGold.WebServices.ProductPrices._staticInstance.get_path();},
GetAllToSell: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(), 'GetAllToSell',false,{},succeededCallback,failedCallback,userContext); },
GetAllToSellByCurrency:function(Currency,succeededCallback, failedCallback, userContext) {
/// <param name="Currency" 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(), 'GetAllToSellByCurrency',false,{Currency:Currency},succeededCallback,failedCallback,userContext); },
GetAllToBuy: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(), 'GetAllToBuy',false,{},succeededCallback,failedCallback,userContext); },
GetAllToBuyByCurrency:function(Currency,succeededCallback, failedCallback, userContext) {
/// <param name="Currency" 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(), 'GetAllToBuyByCurrency',false,{Currency:Currency},succeededCallback,failedCallback,userContext); },
GetAll:function(Sell,Currency,succeededCallback, failedCallback, userContext) {
/// <param name="Sell" type="Boolean">System.Boolean</param>
/// <param name="Currency" 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(), 'GetAll',false,{Sell:Sell,Currency:Currency},succeededCallback,failedCallback,userContext); },
GetCurrencyPrice:function(price,succeededCallback, failedCallback, userContext) {
/// <param name="price" type="Number">System.Decimal</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(), 'GetCurrencyPrice',false,{price:price},succeededCallback,failedCallback,userContext); },
GetCurrencyRatio: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(), 'GetCurrencyRatio',false,{},succeededCallback,failedCallback,userContext); }}
AuGold.WebServices.ProductPrices.registerClass('AuGold.WebServices.ProductPrices',Sys.Net.WebServiceProxy);
AuGold.WebServices.ProductPrices._staticInstance = new AuGold.WebServices.ProductPrices();
AuGold.WebServices.ProductPrices.set_path = function(value) {
AuGold.WebServices.ProductPrices._staticInstance.set_path(value); }
AuGold.WebServices.ProductPrices.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return AuGold.WebServices.ProductPrices._staticInstance.get_path();}
AuGold.WebServices.ProductPrices.set_timeout = function(value) {
AuGold.WebServices.ProductPrices._staticInstance.set_timeout(value); }
AuGold.WebServices.ProductPrices.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return AuGold.WebServices.ProductPrices._staticInstance.get_timeout(); }
AuGold.WebServices.ProductPrices.set_defaultUserContext = function(value) { 
AuGold.WebServices.ProductPrices._staticInstance.set_defaultUserContext(value); }
AuGold.WebServices.ProductPrices.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return AuGold.WebServices.ProductPrices._staticInstance.get_defaultUserContext(); }
AuGold.WebServices.ProductPrices.set_defaultSucceededCallback = function(value) { 
 AuGold.WebServices.ProductPrices._staticInstance.set_defaultSucceededCallback(value); }
AuGold.WebServices.ProductPrices.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return AuGold.WebServices.ProductPrices._staticInstance.get_defaultSucceededCallback(); }
AuGold.WebServices.ProductPrices.set_defaultFailedCallback = function(value) { 
AuGold.WebServices.ProductPrices._staticInstance.set_defaultFailedCallback(value); }
AuGold.WebServices.ProductPrices.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return AuGold.WebServices.ProductPrices._staticInstance.get_defaultFailedCallback(); }
AuGold.WebServices.ProductPrices.set_path("/tools/services/product_prices.asmx");
AuGold.WebServices.ProductPrices.GetAllToSell= 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>
AuGold.WebServices.ProductPrices._staticInstance.GetAllToSell(onSuccess,onFailed,userContext); }
AuGold.WebServices.ProductPrices.GetAllToSellByCurrency= function(Currency,onSuccess,onFailed,userContext) {
/// <param name="Currency" 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>
AuGold.WebServices.ProductPrices._staticInstance.GetAllToSellByCurrency(Currency,onSuccess,onFailed,userContext); }
AuGold.WebServices.ProductPrices.GetAllToBuy= 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>
AuGold.WebServices.ProductPrices._staticInstance.GetAllToBuy(onSuccess,onFailed,userContext); }
AuGold.WebServices.ProductPrices.GetAllToBuyByCurrency= function(Currency,onSuccess,onFailed,userContext) {
/// <param name="Currency" 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>
AuGold.WebServices.ProductPrices._staticInstance.GetAllToBuyByCurrency(Currency,onSuccess,onFailed,userContext); }
AuGold.WebServices.ProductPrices.GetAll= function(Sell,Currency,onSuccess,onFailed,userContext) {
/// <param name="Sell" type="Boolean">System.Boolean</param>
/// <param name="Currency" 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>
AuGold.WebServices.ProductPrices._staticInstance.GetAll(Sell,Currency,onSuccess,onFailed,userContext); }
AuGold.WebServices.ProductPrices.GetCurrencyPrice= function(price,onSuccess,onFailed,userContext) {
/// <param name="price" type="Number">System.Decimal</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>
AuGold.WebServices.ProductPrices._staticInstance.GetCurrencyPrice(price,onSuccess,onFailed,userContext); }
AuGold.WebServices.ProductPrices.GetCurrencyRatio= 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>
AuGold.WebServices.ProductPrices._staticInstance.GetCurrencyRatio(onSuccess,onFailed,userContext); }

