/// <summary>
            /// Voids gift card.
            /// </summary>
            /// <param name="request">The <see cref="VoidGiftCardRealtimeRequest"/> request.</param>
            /// <returns>The <see cref="NullResponse"/> response.</returns>
            private static NullResponse VoidGiftCard(VoidGiftCardRealtimeRequest request)
            {
                var transactionClient = new TransactionService.TransactionServiceClient(request.RequestContext);

                transactionClient.VoidGiftCard(request.GiftCardId);

                return(new NullResponse());
            }
            /// <summary>
            /// Voids the gift card.
            /// </summary>
            /// <param name="request">The request.</param>
            /// <returns>A response.</returns>
            private static NullResponse VoidGiftCard(VoidGiftCardServiceRequest request)
            {
                if (request == null)
                {
                    throw new ArgumentNullException("request");
                }

                if (string.IsNullOrWhiteSpace(request.GiftCardId))
                {
                    throw new ArgumentException("request.Id is null or empty.", "request");
                }

                var voidGiftCardRequest = new VoidGiftCardRealtimeRequest(request.GiftCardId);

                request.RequestContext.Execute <NullResponse>(voidGiftCardRequest);

                return(new NullResponse());
            }