PointOfSalePaymentClientOfferRedemption Method |
Submit an Offer Redemption. An Offer Redemption can be used to purchase an offer on behalf of a member.
public Result OfferRedemption( RequestOfPointOfSaleOfferRedemption request )
using (var svc = new PointOfSalePayment.PointOfSalePaymentClient()) { var request = new PointOfSalePayment.RequestOfPointOfSaleOfferRedemption(); request.Token = "Token";//Required - Token returned from PointOfSaleService.Authenticate var offerRedemption = new PointOfSalePayment.PointOfSaleOfferRedemption(); offerRedemption.Member_RSN = new Guid("2e062505-d8af-42f9-9919-8d26d99808b9");; //Required - RSN of member offerRedemption.CampaignOffer_RSN = new Guid("34ed4cd0-54b3-459b-b31b-9951d9ec3068");; //Required - RSN of campaign offer offerRedemption.Quantity = 1; //Required offerRedemption.PointsPaymentType = "LOYALTY"; //Required - Valid values are : 'LOYALTY', 'SHARE' or 'SOCIAL' offerRedemption.Colour = null; //Optional - If provided must be an available colour offerRedemption.Size = null; //Optional - If provided must be an available size //add offer redemption to request request.Value = offerRedemption;//Required PointOfSalePayment.Result result = svc.OfferRedemption(request); if (result.FaultCode == 0) { //Request succeded } else { //Request failed throw new Exception(result.FaultDescription); } }