DHL-PHP-SDK
v0.4
A wrapper for the DHL-XML-API Version 2
|
Public Member Functions | |
__construct ($accountNumber) | |
__destruct () | |
getProduct () | |
setProduct ($product) | |
getCustomerReference () | |
setCustomerReference ($customerReference) | |
getShipmentDate () | |
setShipmentDate ($shipmentDate, $useIntTime=false) | |
getReturnAccountNumber () | |
setReturnAccountNumber ($returnAccountNumber) | |
getReturnReference () | |
setReturnReference ($returnReference) | |
getWeight () | |
setWeight ($weight) | |
getLength () | |
setLength ($length) | |
getWidth () | |
setWidth ($width) | |
getHeight () | |
setHeight ($height) | |
getService () | |
setService ($service) | |
getPackageType () | |
setPackageType ($packageType) | |
getNotificationEmail () | |
setNotificationEmail ($notificationEmail) | |
getBank () | |
setBank ($bank) | |
getShipmentDetailsClass_v1 () | |
getShipmentDetailsClass_v2 () | |
Data Fields | |
const | PALETTE = 'PL' |
const | PACKAGE = 'PK' |
const | PRODUCT_TYPE_NATIONAL_PACKAGE = 'V01PAK' |
const | PRODUCT_TYPE_NATIONAL_PACKAGE_PRIO = 'V01PRIO' |
const | PRODUCT_TYPE_INTERNATIONAL_PACKAGE = 'V53WPAK' |
const | PRODUCT_TYPE_EUROPA_PACKAGE = 'V54EPAK' |
const | PRODUCT_TYPE_PACKED_CONNECT = 'V55PAK' |
const | PRODUCT_TYPE_SAME_DAY_PACKAGE = 'V06PAK' |
const | PRODUCT_TYPE_SAME_DAY_MESSENGER = 'V06TG' |
const | PRODUCT_TYPE_WISH_TIME_MESSENGER = 'V06WZ' |
const | PRODUCT_TYPE_AUSTRIA_PACKAGE = 'V86PARCEL' |
const | PRODUCT_TYPE_AUSTRIA_INTERNATIONAL_PACKAGE = 'V82PARCEL' |
const | PRODUCT_TYPE_CONNECT_PACKAGE = 'V87PARCEL' |
Definition at line 23 of file ShipmentDetails.php.
__construct | ( | $accountNumber | ) |
ShipmentDetails constructor.
string | $accountNumber | - Account-Number |
Definition at line 230 of file ShipmentDetails.php.
__destruct | ( | ) |
Clears the Memory
Definition at line 237 of file ShipmentDetails.php.
getBank | ( | ) |
Get the Bank-Object
Definition at line 555 of file ShipmentDetails.php.
getCustomerReference | ( | ) |
Get the Customer-Reference
Definition at line 329 of file ShipmentDetails.php.
getHeight | ( | ) |
Get the Height
Definition at line 467 of file ShipmentDetails.php.
getLength | ( | ) |
Get the Length
Definition at line 431 of file ShipmentDetails.php.
getNotificationEmail | ( | ) |
Get the Notification E-Mail
Definition at line 537 of file ShipmentDetails.php.
getPackageType | ( | ) |
Get the Type of the Package
Return values: 'PK' or ShipmentDetails::PACKAGE -> DHL-Package-Type "Package" 'PL' or ShipmentDetails::PALETTE -> DHL-Package-Type "Palette"
Definition at line 509 of file ShipmentDetails.php.
getProduct | ( | ) |
Get which Product is used
Return values: (Use PRODUCT_TYPE_* constants - See above) 'V01PAK' or ShipmentDetails::PRODUCT_TYPE_NATIONAL_PACKAGE -> National-Package 'V01PRIO' or ShipmentDetails::PRODUCT_TYPE_NATIONAL_PACKAGE_PRIO -> National-Package-Prio 'V53WPAK' or ShipmentDetails::PRODUCT_TYPE_INTERNATIONAL_PACKAGE -> International-Package 'V54EPAK' or ShipmentDetails::PRODUCT_TYPE_EUROPA_PACKAGE -> Europa-Package 'V55PAK' or ShipmentDetails::PRODUCT_TYPE_PACKED_CONNECT -> Packed Connect 'V06PAK' or ShipmentDetails::PRODUCT_TYPE_SAME_DAY_PACKAGE -> Same-Day Package 'V06TG' or ShipmentDetails::PRODUCT_TYPE_SAME_DAY_MESSENGER -> Same Day Messenger 'V06WZ' or ShipmentDetails::PRODUCT_TYPE_WISH_TIME_MESSENGER -> Wish Time Messenger 'V86PARCEL' or ShipmentDetails::PRODUCT_TYPE_AUSTRIA_PACKAGE -> Austria Package 'V82PARCEL' or ShipmentDetails::PRODUCT_TYPE_AUSTRIA_INTERNATIONAL_PACKAGE -> Austria International Package 'V87PARCEL' or ShipmentDetails::PRODUCT_TYPE_CONNECT_PACKAGE -> Connect Package
Definition at line 272 of file ShipmentDetails.php.
getReturnAccountNumber | ( | ) |
Get the Return-Account-Number (EKP)
Definition at line 377 of file ShipmentDetails.php.
getReturnReference | ( | ) |
Get the Return-Reference
Definition at line 395 of file ShipmentDetails.php.
getService | ( | ) |
Get the Service-Object
Definition at line 485 of file ShipmentDetails.php.
getShipmentDate | ( | ) |
Get the Shipment-Date (and set the default one -today- if none was set)
Definition at line 347 of file ShipmentDetails.php.
getShipmentDetailsClass_v1 | ( | ) |
Returns an DHL-Class of this Object for DHL-Shipment Details
Definition at line 590 of file ShipmentDetails.php.
getShipmentDetailsClass_v2 | ( | ) |
Returns an DHL-Class of this Object for DHL-Shipment Details
Definition at line 602 of file ShipmentDetails.php.
getWeight | ( | ) |
getWidth | ( | ) |
Get the Width
Definition at line 449 of file ShipmentDetails.php.
setBank | ( | $bank | ) |
Set the Bank-Object
BankData | null | $bank | - Bank-Object or null for none |
Definition at line 564 of file ShipmentDetails.php.
setCustomerReference | ( | $customerReference | ) |
Set the Customer-Reference
null | string | $customerReference | - Customer Reference or null for none |
Definition at line 338 of file ShipmentDetails.php.
setHeight | ( | $height | ) |
Set the Height
int | null | $height | - Height in CM or null for none |
Definition at line 476 of file ShipmentDetails.php.
setLength | ( | $length | ) |
Set the Length
int | null | $length | - Length in CM or null for none |
Definition at line 440 of file ShipmentDetails.php.
setNotificationEmail | ( | $notificationEmail | ) |
Set the Notification E-Mail
string | null | $notificationEmail | - Notification E-Mail or null for none |
Definition at line 546 of file ShipmentDetails.php.
setPackageType | ( | $packageType | ) |
Set the Type of the Package
Allowed values: 'PK' or ShipmentDetails::PACKAGE -> DHL-Package-Type "Package" 'PL' or ShipmentDetails::PALETTE -> DHL-Package-Type "Palette"
string | $packageType | - Type of the Package |
Definition at line 526 of file ShipmentDetails.php.
setProduct | ( | $product | ) |
Set which Product is used
Allowed values: (Use PRODUCT_TYPE_* constants - See above) 'V01PAK' or ShipmentDetails::PRODUCT_TYPE_NATIONAL_PACKAGE -> National-Package 'V01PRIO' or ShipmentDetails::PRODUCT_TYPE_NATIONAL_PACKAGE_PRIO -> National-Package-Prio 'V53WPAK' or ShipmentDetails::PRODUCT_TYPE_INTERNATIONAL_PACKAGE -> International-Package 'V54EPAK' or ShipmentDetails::PRODUCT_TYPE_EUROPA_PACKAGE -> Europa-Package 'V55PAK' or ShipmentDetails::PRODUCT_TYPE_PACKED_CONNECT -> Packed Connect 'V06PAK' or ShipmentDetails::PRODUCT_TYPE_SAME_DAY_PACKAGE -> Same-Day Package 'V06TG' or ShipmentDetails::PRODUCT_TYPE_SAME_DAY_MESSENGER -> Same Day Messenger 'V06WZ' or ShipmentDetails::PRODUCT_TYPE_WISH_TIME_MESSENGER -> Wish Time Messenger 'V86PARCEL' or ShipmentDetails::PRODUCT_TYPE_AUSTRIA_PACKAGE -> Austria Package 'V82PARCEL' or ShipmentDetails::PRODUCT_TYPE_AUSTRIA_INTERNATIONAL_PACKAGE -> Austria International Package 'V87PARCEL' or ShipmentDetails::PRODUCT_TYPE_CONNECT_PACKAGE -> Connect Package
string | $product | - Product, which should be used |
Definition at line 294 of file ShipmentDetails.php.
setReturnAccountNumber | ( | $returnAccountNumber | ) |
Set the Return-Account-Number (EKP)
null | string | $returnAccountNumber | - Return-Account-Number or null for none |
Definition at line 386 of file ShipmentDetails.php.
setReturnReference | ( | $returnReference | ) |
Set the Return-Reference
null | string | $returnReference | - Return-Reference or null for none |
Definition at line 404 of file ShipmentDetails.php.
setService | ( | $service | ) |
Set the Service-Object
Service | null | $service | - Service-Object or null for none |
Definition at line 494 of file ShipmentDetails.php.
setShipmentDate | ( | $shipmentDate, | |
$useIntTime = false |
|||
) |
Set the Shipment-Date
string | int | null | $shipmentDate | - Shipment-Date as String YYYY-MM-DD or the int value time() of the date | null for today (+1 Day on Sunday) |
bool | $useIntTime | - Use the int Time Value instead of a String |
Definition at line 360 of file ShipmentDetails.php.
setWeight | ( | $weight | ) |
Set the Weight
float | $weight | - Weight in KG |
Definition at line 422 of file ShipmentDetails.php.
setWidth | ( | $width | ) |
Set the Width
int | null | $width | - Width in CM or null for none |
Definition at line 458 of file ShipmentDetails.php.
const PACKAGE = 'PK' |
DHL-Package-Type "Package"
Definition at line 36 of file ShipmentDetails.php.
const PALETTE = 'PL' |
DHL-Package-Type "Palette"
Definition at line 29 of file ShipmentDetails.php.
const PRODUCT_TYPE_AUSTRIA_INTERNATIONAL_PACKAGE = 'V82PARCEL' |
Definition at line 62 of file ShipmentDetails.php.
const PRODUCT_TYPE_AUSTRIA_PACKAGE = 'V86PARCEL' |
Definition at line 61 of file ShipmentDetails.php.
const PRODUCT_TYPE_CONNECT_PACKAGE = 'V87PARCEL' |
Definition at line 63 of file ShipmentDetails.php.
const PRODUCT_TYPE_EUROPA_PACKAGE = 'V54EPAK' |
Definition at line 56 of file ShipmentDetails.php.
const PRODUCT_TYPE_INTERNATIONAL_PACKAGE = 'V53WPAK' |
Definition at line 55 of file ShipmentDetails.php.
const PRODUCT_TYPE_NATIONAL_PACKAGE = 'V01PAK' |
Product-Type Values:
Definition at line 53 of file ShipmentDetails.php.
const PRODUCT_TYPE_NATIONAL_PACKAGE_PRIO = 'V01PRIO' |
Definition at line 54 of file ShipmentDetails.php.
const PRODUCT_TYPE_PACKED_CONNECT = 'V55PAK' |
Definition at line 57 of file ShipmentDetails.php.
const PRODUCT_TYPE_SAME_DAY_MESSENGER = 'V06TG' |
Definition at line 59 of file ShipmentDetails.php.
const PRODUCT_TYPE_SAME_DAY_PACKAGE = 'V06PAK' |
Definition at line 58 of file ShipmentDetails.php.
const PRODUCT_TYPE_WISH_TIME_MESSENGER = 'V06WZ' |
Definition at line 60 of file ShipmentDetails.php.