/**
  * @param string $orderId
  * @param boolean $autoMarkDelivered
  * @return \DateTime
  */
 public function markEnRoute($orderId, $autoMarkDelivered)
 {
     TypeValidator::checkString($orderId);
     TypeValidator::checkBoolean($autoMarkDelivered);
     $endpoint = $this->getEndpoint($orderId, 'mark-en-route');
     $body = ['autoMarkDelivered' => $autoMarkDelivered];
     $response = $this->requestMaker->sendPostRequest($endpoint, $body);
     $this->responseValidator->validateResponse($response);
     return $this->responseValidator->getExpectedDeliveryDate($response);
 }
 /**
  * @param string $orderId
  * @param boolean $autoMarkDelivered
  */
 public function markReadyForPickup($orderId, $autoMarkDelivered = false)
 {
     TypeValidator::checkString($orderId);
     TypeValidator::checkBoolean($autoMarkDelivered);
     $endpoint = $this->getEndpoint($orderId, 'mark-ready-for-pickup');
     $body = ['autoMarkDelivered' => $autoMarkDelivered];
     $response = $this->requestMaker->sendPostRequest($endpoint, $body);
     $this->responseValidator->validateResponse($response);
 }