83 private $product = self::PRODUCT_TYPE_NATIONAL_PACKAGE;
99 private $accountNumber;
111 private $customerReference = null;
123 private $shipmentDate = null;
135 private $returnAccountNumber = null;
147 private $returnReference = null;
154 private $weight = 5.0;
163 private $length = null;
172 private $width = null;
181 private $height = null;
190 private $service = null;
205 private $packageType = self::PACKAGE;
214 private $notificationEmail = null;
223 private $bank = null;
231 $this->setAccountNumber($accountNumber);
238 unset($this->product);
239 unset($this->accountNumber);
240 unset($this->customerReference);
241 unset($this->shipmentDate);
242 unset($this->returnAccountNumber);
243 unset($this->returnReference);
244 unset($this->weight);
245 unset($this->length);
247 unset($this->height);
248 unset($this->service);
249 unset($this->packageType);
250 unset($this->notificationEmail);
273 return $this->product;
295 $this->product = $product;
307 private function getAccountNumber() {
308 return $this->accountNumber;
320 private function setAccountNumber($accountNumber) {
321 $this->accountNumber = $accountNumber;
330 return $this->customerReference;
339 $this->customerReference = $customerReference;
348 if($this->shipmentDate === null)
351 return $this->shipmentDate;
363 $shipmentDate = date(
'Y-m-d', $shipmentDate);
365 if($shipmentDate ===
false)
366 $shipmentDate = null;
369 $this->shipmentDate = $shipmentDate;
378 return $this->returnAccountNumber;
387 $this->returnAccountNumber = $returnAccountNumber;
396 return $this->returnReference;
405 $this->returnReference = $returnReference;
414 return $this->weight;
423 $this->weight = $weight;
432 return $this->length;
441 $this->length = $length;
459 $this->width = $width;
468 return $this->height;
477 $this->height = $height;
486 return $this->service;
495 $this->service = $service;
510 trigger_error(
'[DHL-PHP-SDK]: Version 1 Methods are deprecated and will removed soon (Called method ' . __METHOD__ .
')!', E_USER_DEPRECATED);
512 return $this->packageType;
527 trigger_error(
'[DHL-PHP-SDK]: Version 1 Methods are deprecated and will removed soon (Called method ' . __METHOD__ .
')!', E_USER_DEPRECATED);
529 $this->packageType = $packageType;
538 return $this->notificationEmail;
547 $this->notificationEmail = $notificationEmail;
573 private function createDefaultShipmentDate() {
575 $weekDay = date(
'w', $now);
580 return date(
'Y-m-d', $now);
591 trigger_error(
'[DHL-PHP-SDK]: Version 1 Methods are deprecated and will removed soon (Called method ' . __METHOD__ .
')!', E_USER_DEPRECATED);
592 trigger_error(
'[DHL-PHP-SDK]: Called Version 1 Method: ' . __METHOD__ .
' is incomplete (does nothing)!', E_USER_WARNING);
603 $class =
new StdClass;
606 $class->accountNumber = $this->getAccountNumber();
615 $class->ShipmentItem =
new StdClass;
616 $class->ShipmentItem->weightInKG = $this->
getWeight();
618 $class->ShipmentItem->lengthInCM = $this->
getLength();
620 $class->ShipmentItem->widthInCM = $this->
getWidth();
622 $class->ShipmentItem->heightInCM = $this->
getHeight();
628 $class->Notification =
new StdClass;
633 $class->BankData = $this->
getBank()->getBankClass_v2();
const PRODUCT_TYPE_NATIONAL_PACKAGE_PRIO
setCustomerReference($customerReference)
setReturnReference($returnReference)
const PRODUCT_TYPE_EUROPA_PACKAGE
setReturnAccountNumber($returnAccountNumber)
const PRODUCT_TYPE_PACKED_CONNECT
const PRODUCT_TYPE_SAME_DAY_PACKAGE
const PRODUCT_TYPE_INTERNATIONAL_PACKAGE
const PRODUCT_TYPE_WISH_TIME_MESSENGER
setShipmentDate($shipmentDate, $useIntTime=false)
getShipmentDetailsClass_v2()
getShipmentDetailsClass_v1()
const PRODUCT_TYPE_CONNECT_PACKAGE
__construct($accountNumber)
const PRODUCT_TYPE_SAME_DAY_MESSENGER
setNotificationEmail($notificationEmail)
setPackageType($packageType)
const PRODUCT_TYPE_AUSTRIA_PACKAGE
const PRODUCT_TYPE_AUSTRIA_INTERNATIONAL_PACKAGE
const PRODUCT_TYPE_NATIONAL_PACKAGE