コード例 #1
0
        public static void UpdateCustomerAutoOrderRunDate(int customerID, int autoOrderID, DateTime rundate, FrequencyType frequency)
        {
            // Get the autoorder
            var autoOrder = Exigo.GetCustomerAutoOrder(customerID, autoOrderID);

            if (autoOrder == null)
            {
                return;
            }

            // Re-create the autoorder
            var request = GetCreateOverridenAutoOrderRequest(customerID, autoOrderID);

            request.StartDate = rundate;

            request.Frequency = FrequencyType.Monthly;

            // Update the autoorder
            var response = Exigo.WebService().CreateAutoOrder(request);
        }