Type.registerNamespace('Valassis.RedPlum.Web.FrameComponents.Web.Services');
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService=function() {
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.get_path();},
RemoveUserLoyaltyProgramOffer:function(offerId,loyaltyProgramId,succeededCallback, failedCallback, userContext) {
/// <param name="offerId" type="Number">System.Int32</param>
/// <param name="loyaltyProgramId" type="Number">System.Int32</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(), 'RemoveUserLoyaltyProgramOffer',false,{offerId:offerId,loyaltyProgramId:loyaltyProgramId},succeededCallback,failedCallback,userContext); },
AddUserLoyaltyProgramOffer:function(offerId,loyaltyProgramId,succeededCallback, failedCallback, userContext) {
/// <param name="offerId" type="Number">System.Int32</param>
/// <param name="loyaltyProgramId" type="Number">System.Int32</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(), 'AddUserLoyaltyProgramOffer',false,{offerId:offerId,loyaltyProgramId:loyaltyProgramId},succeededCallback,failedCallback,userContext); }}
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.registerClass('Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService',Sys.Net.WebServiceProxy);
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance = new Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService();
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.set_path = function(value) {
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.set_path(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.get_path();}
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.set_timeout = function(value) {
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.set_timeout(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.get_timeout(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.set_defaultUserContext = function(value) { 
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.set_defaultUserContext(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.get_defaultUserContext(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.set_defaultSucceededCallback = function(value) { 
 Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.set_defaultSucceededCallback(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.get_defaultSucceededCallback(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.set_defaultFailedCallback = function(value) { 
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.set_defaultFailedCallback(value); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.get_defaultFailedCallback(); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.set_path("/RedplumWidget/services/LoyaltyService.asmx");
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.RemoveUserLoyaltyProgramOffer= function(offerId,loyaltyProgramId,onSuccess,onFailed,userContext) {
/// <param name="offerId" type="Number">System.Int32</param>
/// <param name="loyaltyProgramId" type="Number">System.Int32</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>
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.RemoveUserLoyaltyProgramOffer(offerId,loyaltyProgramId,onSuccess,onFailed,userContext); }
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService.AddUserLoyaltyProgramOffer= function(offerId,loyaltyProgramId,onSuccess,onFailed,userContext) {
/// <param name="offerId" type="Number">System.Int32</param>
/// <param name="loyaltyProgramId" type="Number">System.Int32</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>
Valassis.RedPlum.Web.FrameComponents.Web.Services.LoyaltyService._staticInstance.AddUserLoyaltyProgramOffer(offerId,loyaltyProgramId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Valassis.RedPlum.Web.FrameComponents.Web.Services.Response');
if (typeof(Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LoyaltyProgramOfferScalarResponse) === 'undefined') {
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LoyaltyProgramOfferScalarResponse=gtc("Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LoyaltyProgramOfferScalarResponse");
Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LoyaltyProgramOfferScalarResponse.registerClass('Valassis.RedPlum.Web.FrameComponents.Web.Services.Response.LoyaltyProgramOfferScalarResponse');
}

