Type.registerNamespace('MightyPlace.WebServices');
MightyPlace.WebServices.ShoppingService=function() {
MightyPlace.WebServices.ShoppingService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MightyPlace.WebServices.ShoppingService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MightyPlace.WebServices.ShoppingService._staticInstance.get_path();},
SearchTransactions:function(Criteria,succeededCallback, failedCallback, userContext) {
/// <param name="Criteria" type="Array">System.Object[]</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(), 'SearchTransactions',false,{Criteria:Criteria},succeededCallback,failedCallback,userContext); },
SearchMerchants:function(Criteria,succeededCallback, failedCallback, userContext) {
/// <param name="Criteria" type="Array">System.Object[]</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(), 'SearchMerchants',false,{Criteria:Criteria},succeededCallback,failedCallback,userContext); },
GetMerchant:function(Merchant_ID,succeededCallback, failedCallback, userContext) {
/// <param name="Merchant_ID" 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(), 'GetMerchant',false,{Merchant_ID:Merchant_ID},succeededCallback,failedCallback,userContext); },
SaveReward:function(reward,succeededCallback, failedCallback, userContext) {
/// <param name="reward" type="Array">System.Object[]</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(), 'SaveReward',false,{reward:reward},succeededCallback,failedCallback,userContext); },
GetLatestMerchants: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(), 'GetLatestMerchants',false,{},succeededCallback,failedCallback,userContext); },
GetCouponSource: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(), 'GetCouponSource',false,{},succeededCallback,failedCallback,userContext); }}
MightyPlace.WebServices.ShoppingService.registerClass('MightyPlace.WebServices.ShoppingService',Sys.Net.WebServiceProxy);
MightyPlace.WebServices.ShoppingService._staticInstance = new MightyPlace.WebServices.ShoppingService();
MightyPlace.WebServices.ShoppingService.set_path = function(value) {
MightyPlace.WebServices.ShoppingService._staticInstance.set_path(value); }
MightyPlace.WebServices.ShoppingService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return MightyPlace.WebServices.ShoppingService._staticInstance.get_path();}
MightyPlace.WebServices.ShoppingService.set_timeout = function(value) {
MightyPlace.WebServices.ShoppingService._staticInstance.set_timeout(value); }
MightyPlace.WebServices.ShoppingService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return MightyPlace.WebServices.ShoppingService._staticInstance.get_timeout(); }
MightyPlace.WebServices.ShoppingService.set_defaultUserContext = function(value) { 
MightyPlace.WebServices.ShoppingService._staticInstance.set_defaultUserContext(value); }
MightyPlace.WebServices.ShoppingService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return MightyPlace.WebServices.ShoppingService._staticInstance.get_defaultUserContext(); }
MightyPlace.WebServices.ShoppingService.set_defaultSucceededCallback = function(value) { 
 MightyPlace.WebServices.ShoppingService._staticInstance.set_defaultSucceededCallback(value); }
MightyPlace.WebServices.ShoppingService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return MightyPlace.WebServices.ShoppingService._staticInstance.get_defaultSucceededCallback(); }
MightyPlace.WebServices.ShoppingService.set_defaultFailedCallback = function(value) { 
MightyPlace.WebServices.ShoppingService._staticInstance.set_defaultFailedCallback(value); }
MightyPlace.WebServices.ShoppingService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return MightyPlace.WebServices.ShoppingService._staticInstance.get_defaultFailedCallback(); }
MightyPlace.WebServices.ShoppingService.set_enableJsonp = function(value) { MightyPlace.WebServices.ShoppingService._staticInstance.set_enableJsonp(value); }
MightyPlace.WebServices.ShoppingService.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return MightyPlace.WebServices.ShoppingService._staticInstance.get_enableJsonp(); }
MightyPlace.WebServices.ShoppingService.set_jsonpCallbackParameter = function(value) { MightyPlace.WebServices.ShoppingService._staticInstance.set_jsonpCallbackParameter(value); }
MightyPlace.WebServices.ShoppingService.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return MightyPlace.WebServices.ShoppingService._staticInstance.get_jsonpCallbackParameter(); }
MightyPlace.WebServices.ShoppingService.set_path("/WebServices/ShoppingService.asmx");
MightyPlace.WebServices.ShoppingService.SearchTransactions= function(Criteria,onSuccess,onFailed,userContext) {
/// <param name="Criteria" type="Array">System.Object[]</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>
MightyPlace.WebServices.ShoppingService._staticInstance.SearchTransactions(Criteria,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.ShoppingService.SearchMerchants= function(Criteria,onSuccess,onFailed,userContext) {
/// <param name="Criteria" type="Array">System.Object[]</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>
MightyPlace.WebServices.ShoppingService._staticInstance.SearchMerchants(Criteria,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.ShoppingService.GetMerchant= function(Merchant_ID,onSuccess,onFailed,userContext) {
/// <param name="Merchant_ID" 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>
MightyPlace.WebServices.ShoppingService._staticInstance.GetMerchant(Merchant_ID,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.ShoppingService.SaveReward= function(reward,onSuccess,onFailed,userContext) {
/// <param name="reward" type="Array">System.Object[]</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>
MightyPlace.WebServices.ShoppingService._staticInstance.SaveReward(reward,onSuccess,onFailed,userContext); }
MightyPlace.WebServices.ShoppingService.GetLatestMerchants= 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>
MightyPlace.WebServices.ShoppingService._staticInstance.GetLatestMerchants(onSuccess,onFailed,userContext); }
MightyPlace.WebServices.ShoppingService.GetCouponSource= 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>
MightyPlace.WebServices.ShoppingService._staticInstance.GetCouponSource(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('MightyPlace.Common');
if (typeof(MightyPlace.Common.Merchant) === 'undefined') {
MightyPlace.Common.Merchant=gtc("MightyPlace.Common.Merchant");
MightyPlace.Common.Merchant.registerClass('MightyPlace.Common.Merchant');
}

