This repository was archived by the owner on Sep 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1196,11 +1196,22 @@ private function sendCreateRequest($data) {
1196
1196
}
1197
1197
1198
1198
/**
1199
+ * Alias for createShipmentOrder
1200
+ *
1199
1201
* Creates the Shipment-Request
1200
1202
*
1201
1203
* @return bool|Response - false on error or DHL-Response Object
1202
1204
*/
1203
1205
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 () {
1204
1215
switch ($ this ->getMayor ()) {
1205
1216
case 1 :
1206
1217
$ data = $ this ->createShipmentClass_v1 ();
@@ -1361,12 +1372,24 @@ private function sendDeleteRequest($data) {
1361
1372
}
1362
1373
1363
1374
/**
1375
+ * Alias for deleteShipmentOrder
1376
+ *
1364
1377
* Deletes a Shipment
1365
1378
*
1366
1379
* @param string|string[] $shipmentNumbers - Shipment-Number(s) of the Shipment(s) to delete (up to 30 Numbers)
1367
1380
* @return bool|Response - Response
1368
1381
*/
1369
1382
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 ) {
1370
1393
switch ($ this ->getMayor ()) {
1371
1394
case 1 :
1372
1395
$ data = $ this ->createDeleteClass_v1 ($ shipmentNumbers );
You can’t perform that action at this time.
0 commit comments