/// <summary>
        /// Creates an Approval/Denial request.
        /// </summary>
        /// <param name="queryDateSpan">The queryDateSpan string.</param>
        /// <param name="personNumber">The Kronos Person Number.</param>
        /// <param name="approved">Whether the request needs to be approved or denied.</param>
        /// <param name="id">The Kronos id of the request.</param>
        /// <returns>XML request string.</returns>
        private string CreateApproveOrDeclineRequest(
            string queryDateSpan,
            string personNumber,
            bool approved,
            string id)
        {
            var request =
                new OpenShiftApproveDecline.RequestManagementApproveDecline.Request
            {
                Action      = approved ? ApiConstants.ApproveRequests : ApiConstants.RefuseRequests,
                RequestMgmt = new OpenShiftApproveDecline.RequestManagementApproveDecline.RequestMgmt
                {
                    Employees = new OpenShiftApproveDecline.RequestManagementApproveDecline.Employee
                    {
                        PersonIdentity = new OpenShiftApproveDecline.RequestManagementApproveDecline.PersonIdentity
                        {
                            PersonNumber = personNumber
                        }
                    },
                    QueryDateSpan = queryDateSpan,
                    RequestIds    = new OpenShiftApproveDecline.RequestManagementApproveDecline.RequestIds
                    {
                        RequestId = new OpenShiftApproveDecline.RequestManagementApproveDecline.RequestId[1]
                        {
                            new OpenShiftApproveDecline.RequestManagementApproveDecline.RequestId()
                            {
                                Id = id
                            }
                        }
                    }
                }
            };

            return(request.XmlSerialize());
        }
        /// <summary>
        /// Fetch TimeOff request.
        /// </summary>
        /// <param name="queryDateSpan">The queryDateSpan string.</param>
        /// <param name="personNumber">The Kronos Person Number.</param>
        /// <returns>XML request string.</returns>
        private string CreateOpenShiftsApprovedDeclinedRequest(
            string queryDateSpan,
            string personNumber)
        {
            OpenShiftApproveDecline.RequestManagementApproveDecline.Request request =
                new OpenShiftApproveDecline.RequestManagementApproveDecline.Request
            {
                Action      = ApiConstants.Retrieve,
                RequestMgmt = new OpenShiftApproveDecline.RequestManagementApproveDecline.RequestMgmt
                {
                    Employees = new OpenShiftApproveDecline.RequestManagementApproveDecline.Employee
                    {
                        PersonIdentity = new OpenShiftApproveDecline.RequestManagementApproveDecline.PersonIdentity
                        {
                            PersonNumber = personNumber,
                        },
                    },
                    QueryDateSpan = queryDateSpan,
                    RequestFor    = ApiConstants.OpenShiftRequest,
                },
            };

            return(request.XmlSerialize());
        }