LoyaltyClientSelectProgramPointsRequiredToNextTier Method |
Returns the progress for the number of points required for the Member to progress to the next Membership Tier. Progress is expressed in Points required for the submitted Card Number.
Parameters are available to optionally return the pro rata points based on the next Program Membershop Anniversary Date.
public ResultOfdecimal SelectProgramPointsRequiredToNextTier( ManagementGroupRequestOfCardProgramTierSearch request )
using (var svc = new LoyaltyService.LoyaltyClient()) { var request = new LoyaltyService.ManagementGroupRequestOfCardProgramTierSearch(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin var search = new LoyaltyService.CardProgramTierSearch(); search.Card_Number = "21000005";//Required search.ProRata = true;//Optional - get pro-rata value if true. Otherwise get standard value search.ProRataPeriod = 90;//Optional - days that membership duration must be equal to or greater than to qualify for pro-rata //add search to request request.Value = search; LoyaltyService.ResultOfdecimal result = svc.SelectProgramPointsRequiredToNextTier(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }