Example #1
0
 public static LoyaltyTierResponse CreateResponseError(
     string inMessage,
     string inDescription,
     LoyaltyResponseCode inResponseCode,
     TierLevelInfo inTierInfo)
 {
     return(CreateResponse(false, inMessage, inDescription, inResponseCode, inTierInfo));
 }
Example #2
0
 internal LoyaltyTierResponse(
     bool inSuccesful,
     string inMessage,
     string inDescription,
     LoyaltyResponseCode inResponseCode,
     TierLevelInfo inTierInfo)
     : base(inSuccesful, inMessage, inDescription)
 {
     _responseCode = inResponseCode;
     _tierInfo     = CreateTierInfo(inTierInfo);
 }
Example #3
0
 public static LoyaltyTierResponse CreateResponse(
     bool inSuccesful,
     string inMessage,
     string inDescription,
     LoyaltyResponseCode inResponseCode,
     TierLevelInfo inTierInfo)
 {
     return(new LoyaltyTierResponse(
                inSuccesful,
                inMessage,
                inDescription,
                inResponseCode,
                inTierInfo));
 }
Example #4
0
        TierLevelInfo CreateTierInfo(TierLevelInfo tierInfo)
        {
            var result = new TierLevelInfo();

            result.TierId                  = tierInfo.TierId;
            result.Name                    = tierInfo.Name;
            result.Level                   = tierInfo.Level;
            result.BirthdayBonus           = tierInfo.BirthdayBonus;
            result.PointsRequired          = tierInfo.PointsRequired;
            result.PricedRedemptionRate    = tierInfo.PricedRedemptionRate;
            result.WeighedRedemptionPoints = tierInfo.WeighedRedemptionPoints;
            result.WeighedRedemptionWeight = tierInfo.WeighedRedemptionWeight;
            result.SendMailToHeadOffice    = tierInfo.SendMailToHeadOffice;
            result.SendMailToMember        = tierInfo.SendMailToMember;
            result.ChangeCard              = tierInfo.ChangeCard;
            return(result);
        }
Example #5
0
 public static LoyaltyTierResponse CreateResponseNoError(TierLevelInfo inTierInfo)
 {
     return(CreateResponse(true, "", "", LoyaltyResponseCode.Successful, inTierInfo));
 }