LoyaltyCampaignOfferClientUpdateCampaignOfferCategory Method |
Update a Campaign Offer Category Detail, from the submitted values.
public Result UpdateCampaignOfferCategory( ManagementGroupRequestOfCampaignOfferCategory request )
using (var svc = new LoyaltyService.LoyaltyCampaignOfferClient()) { var request = new LoyaltyService.ManagementGroupRequestOfCampaignOfferCategory(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin var campaignOfferCategory = new LoyaltyService.CampaignOfferCategory(); campaignOfferCategory.RSN = new Guid("dfb5403d-4041-422d-86b0-d930b00bda25");;//Required campaignOfferCategory.DisplayValue = "Bags";//Required campaignOfferCategory.FeatureCategory = false;//Optional campaignOfferCategory.HomeCategory = false;//Optional campaignOfferCategory.MaximumMemberOrders = 0;//Optional campaignOfferCategory.MaximumStockOrders = 0;//Optional campaignOfferCategory.Parent_RSN = new Guid("629f6fd2-e264-42af-aa90-a6a742ec4dd8");;//Optional - RSN of parent campaign offer category //add campaignOfferCategory to request request.Value = campaignOfferCategory; LoyaltyService.Result result = svc.UpdateCampaignOfferCategory(request); if (result.FaultCode == 0) { //Request succeeded. } else { //Request failed throw new Exception(result.FaultDescription); } }