LoyaltyPartnerClientUpdatePartnerCategory Method |
Update a Partner Category, from the submitted values.
public Result UpdatePartnerCategory( ManagementGroupRequestOfPartnerCategory request )
using (var svc = new LoyaltyService.LoyaltyPartnerClient()) { var request = new LoyaltyService.ManagementGroupRequestOfPartnerCategory(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin var partnerCategory = new LoyaltyService.PartnerCategory(); partnerCategory.RSN = new Guid("14537fe3-fdde-4cfb-bd82-ad0036365592");;//Required - RSN of the partner category partnerCategory.DisplayValue = "Retail";//Required partnerCategory.CategoryName = "Retail";//Required //add partnerCategory to request request.Value = partnerCategory; LoyaltyService.Result result = svc.UpdatePartnerCategory(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }