Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit b240ba0

Browse files
committed
Added alias for DHL-Request function (more DHL like)
1 parent b8a1760 commit b240ba0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

includes/BusinessShipment.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,11 +1196,22 @@ private function sendCreateRequest($data) {
11961196
}
11971197

11981198
/**
1199+
* Alias for createShipmentOrder
1200+
*
11991201
* Creates the Shipment-Request
12001202
*
12011203
* @return bool|Response - false on error or DHL-Response Object
12021204
*/
12031205
public function createShipment() {
1206+
return $this->createShipmentOrder();
1207+
}
1208+
1209+
/**
1210+
* Creates the Shipment-Request
1211+
*
1212+
* @return bool|Response - false on error or DHL-Response Object
1213+
*/
1214+
public function createShipmentOrder() {
12041215
switch($this->getMayor()) {
12051216
case 1:
12061217
$data = $this->createShipmentClass_v1();
@@ -1361,12 +1372,24 @@ private function sendDeleteRequest($data) {
13611372
}
13621373

13631374
/**
1375+
* Alias for deleteShipmentOrder
1376+
*
13641377
* Deletes a Shipment
13651378
*
13661379
* @param string|string[] $shipmentNumbers - Shipment-Number(s) of the Shipment(s) to delete (up to 30 Numbers)
13671380
* @return bool|Response - Response
13681381
*/
13691382
public function deleteShipment($shipmentNumbers) {
1383+
return $this->deleteShipmentOrder($shipmentNumbers);
1384+
}
1385+
1386+
/**
1387+
* Deletes a Shipment
1388+
*
1389+
* @param string|string[] $shipmentNumbers - Shipment-Number(s) of the Shipment(s) to delete (up to 30 Numbers)
1390+
* @return bool|Response - Response
1391+
*/
1392+
public function deleteShipmentOrder($shipmentNumbers) {
13701393
switch($this->getMayor()) {
13711394
case 1:
13721395
$data = $this->createDeleteClass_v1($shipmentNumbers);

0 commit comments

Comments
 (0)