/// <summary>
        /// Demonstrate submitting a basket and reviewing any missed promotions returned.
        /// </summary>
        private static string Sample_SubmitBasketForMissedPromotions(string companyKey)
        {
            // Create the basket service manager - targeting the evaluation services.
            var basketServiceManager = new BasketServiceManager(ServiceTarget.EvaluationServices);

            // Get the basket request details.
            var basketRequest = SampleRequests.GetBasketRequest(companyKey, true);

            // Submit the request, and get the response.
            var basketResponse = basketServiceManager.SubmitBasket(basketRequest);

            // Now look at the response and display some information in the console.
            if (basketResponse.Summary.ProcessingResult != true)
            {
                // Something went wrong with the validation of the basket, so show the message.
                return(basketResponse.Summary.GetErrorDisplayText());
            }
            else
            {
                // Response received...  Use the LOCAL GetDisplayText and GetMissedPromotionsDisplayText methods to output some details to the console.
                string message = basketResponse.GetDisplayText();
                message += basketResponse.GetMissedPromotionsDisplayText();
                return(message);
            }
        }
        private static string Sample_ValidateCouponCode(string companyKey)
        {
            // Create the basket service manager - targeting the evaluation services.
            var basketService = new BasketServiceManager(ServiceTarget.EvaluationServices);

            // We need to pass the coupon code which is to be validated.
            string couponCodeToValidate = "2EPoy3Rv_0WTjRjkt0V24g";

            // Submit the coupon code validation and get the response.
            var validationResult = basketService.ValidateCouponCode(companyKey, couponCodeToValidate);

            // Now look at the response and display some information in the console.
            if (validationResult.Summary.ProcessingResult != true)
            {
                // Something went wrong, so show the message.
                return(validationResult.Summary.GetErrorDisplayText());
            }
            else
            {
                // Display the coupon code details.
                return(validationResult.Coupon.GetDisplayText());
            }
        }