From b240ba0020374ec2267f4d5937baa084a1de6c43 Mon Sep 17 00:00:00 2001 From: Petschko Date: Fri, 7 Sep 2018 19:30:25 +0200 Subject: [PATCH] Added alias for DHL-Request function (more DHL like) --- includes/BusinessShipment.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/includes/BusinessShipment.php b/includes/BusinessShipment.php index 75f4155..7d372b1 100644 --- a/includes/BusinessShipment.php +++ b/includes/BusinessShipment.php @@ -1196,11 +1196,22 @@ private function sendCreateRequest($data) { } /** + * Alias for createShipmentOrder + * * Creates the Shipment-Request * * @return bool|Response - false on error or DHL-Response Object */ public function createShipment() { + return $this->createShipmentOrder(); + } + + /** + * Creates the Shipment-Request + * + * @return bool|Response - false on error or DHL-Response Object + */ + public function createShipmentOrder() { switch($this->getMayor()) { case 1: $data = $this->createShipmentClass_v1(); @@ -1361,12 +1372,24 @@ private function sendDeleteRequest($data) { } /** + * Alias for deleteShipmentOrder + * * Deletes a Shipment * * @param string|string[] $shipmentNumbers - Shipment-Number(s) of the Shipment(s) to delete (up to 30 Numbers) * @return bool|Response - Response */ public function deleteShipment($shipmentNumbers) { + return $this->deleteShipmentOrder($shipmentNumbers); + } + + /** + * Deletes a Shipment + * + * @param string|string[] $shipmentNumbers - Shipment-Number(s) of the Shipment(s) to delete (up to 30 Numbers) + * @return bool|Response - Response + */ + public function deleteShipmentOrder($shipmentNumbers) { switch($this->getMayor()) { case 1: $data = $this->createDeleteClass_v1($shipmentNumbers);