├── DHL ├── Client │ └── Web.php ├── Datatype │ ├── AM │ │ ├── AWBInfo.php │ │ ├── BarCodes.php │ │ ├── Billing.php │ │ ├── BkgDetailsType.php │ │ ├── ChargeCard.php │ │ ├── Commodity.php │ │ ├── Condition.php │ │ ├── Consignee.php │ │ ├── Contact.php │ │ ├── Customer.php │ │ ├── CustomerLogo.php │ │ ├── DCTDutiable.php │ │ ├── DCTFrom.php │ │ ├── DCTTo.php │ │ ├── DestinationServiceArea.php │ │ ├── DocImage.php │ │ ├── DocImages.php │ │ ├── Dutiable.php │ │ ├── Email.php │ │ ├── ErrorResponse.php │ │ ├── EventRemarks.php │ │ ├── ExportDeclaration.php │ │ ├── ExportLineItem.php │ │ ├── Fault.php │ │ ├── Label.php │ │ ├── LabelImage.php │ │ ├── Note.php │ │ ├── OriginServiceArea.php │ │ ├── Piece.php │ │ ├── PieceDetails.php │ │ ├── PieceEvent.php │ │ ├── PieceFault.php │ │ ├── PieceInfo.php │ │ ├── PieceType.php │ │ ├── Pieces.php │ │ ├── Place.php │ │ ├── QtdSInAdCur.php │ │ ├── QtdShpExChrgType.php │ │ ├── QtdShpType.php │ │ ├── Reference.php │ │ ├── Request.php │ │ ├── Response.php │ │ ├── ServiceArea.php │ │ ├── ServiceEvent.php │ │ ├── ServiceHeader.php │ │ ├── ShipValResponsePiece.php │ │ ├── ShipValResponsePieces.php │ │ ├── Shipment.php │ │ ├── ShipmentDate.php │ │ ├── ShipmentDetails.php │ │ ├── ShipmentEvent.php │ │ ├── ShipmentInfo.php │ │ ├── Shipper.php │ │ ├── SpecialService.php │ │ ├── Status.php │ │ ├── TrackingPieces.php │ │ └── WeightSeg.php │ ├── AP │ │ ├── AWBInfo.php │ │ ├── BarCodes.php │ │ ├── Billing.php │ │ ├── ChargeCard.php │ │ ├── Commodity.php │ │ ├── Condition.php │ │ ├── Consignee.php │ │ ├── Contact.php │ │ ├── Customer.php │ │ ├── CustomerLogo.php │ │ ├── DestinationServiceArea.php │ │ ├── DocImage.php │ │ ├── DocImages.php │ │ ├── Dutiable.php │ │ ├── Email.php │ │ ├── ErrorResponse.php │ │ ├── EventRemarks.php │ │ ├── ExportDeclaration.php │ │ ├── ExportLineItem.php │ │ ├── Fault.php │ │ ├── Label.php │ │ ├── LabelImage.php │ │ ├── Note.php │ │ ├── OriginServiceArea.php │ │ ├── Piece.php │ │ ├── PieceDetails.php │ │ ├── PieceEvent.php │ │ ├── PieceFault.php │ │ ├── PieceInfo.php │ │ ├── Pieces.php │ │ ├── Place.php │ │ ├── QtdSInAdCur.php │ │ ├── Reference.php │ │ ├── Request.php │ │ ├── Response.php │ │ ├── ServiceArea.php │ │ ├── ServiceEvent.php │ │ ├── ServiceHeader.php │ │ ├── ShipValResponsePiece.php │ │ ├── ShipValResponsePieces.php │ │ ├── Shipment.php │ │ ├── ShipmentDate.php │ │ ├── ShipmentDetails.php │ │ ├── ShipmentEvent.php │ │ ├── ShipmentInfo.php │ │ ├── Shipper.php │ │ ├── SpecialService.php │ │ ├── Status.php │ │ ├── TrackingPieces.php │ │ └── WeightSeg.php │ ├── Base.php │ ├── EA │ │ ├── AWBInfo.php │ │ ├── BarCodes.php │ │ ├── Billing.php │ │ ├── ChargeCard.php │ │ ├── Commodity.php │ │ ├── Condition.php │ │ ├── Consignee.php │ │ ├── Contact.php │ │ ├── Customer.php │ │ ├── CustomerLogo.php │ │ ├── DestinationServiceArea.php │ │ ├── DocImage.php │ │ ├── DocImages.php │ │ ├── Dutiable.php │ │ ├── Email.php │ │ ├── ErrorResponse.php │ │ ├── EventRemarks.php │ │ ├── ExportDeclaration.php │ │ ├── ExportLineItem.php │ │ ├── Fault.php │ │ ├── Label.php │ │ ├── LabelImage.php │ │ ├── Note.php │ │ ├── OriginServiceArea.php │ │ ├── Piece.php │ │ ├── PieceDetails.php │ │ ├── PieceEvent.php │ │ ├── PieceFault.php │ │ ├── PieceInfo.php │ │ ├── Pieces.php │ │ ├── Place.php │ │ ├── QtdSInAdCur.php │ │ ├── Reference.php │ │ ├── Request.php │ │ ├── Response.php │ │ ├── ServiceArea.php │ │ ├── ServiceEvent.php │ │ ├── ServiceHeader.php │ │ ├── ShipValResponsePiece.php │ │ ├── ShipValResponsePieces.php │ │ ├── Shipment.php │ │ ├── ShipmentDate.php │ │ ├── ShipmentDetails.php │ │ ├── ShipmentEvent.php │ │ ├── ShipmentInfo.php │ │ ├── Shipper.php │ │ ├── SpecialService.php │ │ ├── Status.php │ │ ├── TrackingPieces.php │ │ └── WeightSeg.php │ └── GB │ │ ├── AWBInfo.php │ │ ├── AdditionalProtection.php │ │ ├── BarCode.php │ │ ├── BarCodes.php │ │ ├── Billing.php │ │ ├── ChargeCard.php │ │ ├── Commodity.php │ │ ├── Condition.php │ │ ├── Consignee.php │ │ ├── Contact.php │ │ ├── Customer.php │ │ ├── CustomerLogo.php │ │ ├── DestinationServiceArea.php │ │ ├── DocImage.php │ │ ├── Dutiable.php │ │ ├── ErrorResponse.php │ │ ├── ExportDeclaration.php │ │ ├── ExportLineItem.php │ │ ├── Fault.php │ │ ├── Filing.php │ │ ├── Label.php │ │ ├── LabelImage.php │ │ ├── Note.php │ │ ├── Notification.php │ │ ├── OriginServiceArea.php │ │ ├── Piece.php │ │ ├── PieceDetails.php │ │ ├── PieceEvent.php │ │ ├── PieceFault.php │ │ ├── PieceInfo.php │ │ ├── Pieces.php │ │ ├── Place.php │ │ ├── QtdSInAdCur.php │ │ ├── Reference.php │ │ ├── Request.php │ │ ├── Requestor.php │ │ ├── Response.php │ │ ├── ResponseServiceHeader.php │ │ ├── ServiceArea.php │ │ ├── ServiceEvent.php │ │ ├── ServiceHeader.php │ │ ├── ShipValResponsePiece.php │ │ ├── ShipValResponsePieces.php │ │ ├── Shipment.php │ │ ├── ShipmentDate.php │ │ ├── ShipmentDetails.php │ │ ├── ShipmentEvent.php │ │ ├── ShipmentInfo.php │ │ ├── Shipper.php │ │ ├── SpecialService.php │ │ ├── Status.php │ │ ├── TrackingPieces.php │ │ └── WeightSeg.php ├── Entity │ ├── AM │ │ ├── BookPickupRequest.php │ │ ├── CancelPickupRequest.php │ │ ├── DCTRequest.php │ │ ├── ErrorResponse.php │ │ ├── GetCapability.php │ │ ├── GetQuote.php │ │ ├── KnownTrackingRequest.php │ │ ├── ModifyPickupRequest.php │ │ ├── PickupErrorResponse.php │ │ ├── PickupResponse.php │ │ ├── RoutingErrorResponse.php │ │ ├── RoutingRequest.php │ │ ├── RoutingResponse.php │ │ ├── ShipmentBookRatingRequest.php │ │ ├── ShipmentCustRatingRequest.php │ │ ├── ShipmentRatingErrorResponse.php │ │ ├── ShipmentRatingResponse.php │ │ ├── ShipmentTrackingErrorResponse.php │ │ ├── ShipmentValidateErrorResponse.php │ │ ├── ShipmentValidateRequest.php │ │ ├── ShipmentValidateResponse.php │ │ ├── TrackingResponse.php │ │ └── UnknownTrackingRequest.php │ ├── AP │ │ ├── BookPickupRequest.php │ │ ├── CancelPickupRequest.php │ │ ├── ErrorResponse.php │ │ ├── KnownTrackingRequest.php │ │ ├── ModifyPickupRequest.php │ │ ├── PickupErrorResponse.php │ │ ├── PickupResponse.php │ │ ├── RoutingErrorResponse.php │ │ ├── RoutingRequest.php │ │ ├── RoutingResponse.php │ │ ├── ShipmentTrackingErrorResponse.php │ │ ├── ShipmentValidateErrorResponse.php │ │ ├── ShipmentValidateRequest.php │ │ ├── ShipmentValidateResponse.php │ │ ├── TrackingResponse.php │ │ └── UnknownTrackingRequest.php │ ├── Base.php │ ├── EA │ │ ├── BookPickupRequest.php │ │ ├── CancelPickupRequest.php │ │ ├── ErrorResponse.php │ │ ├── KnownTrackingRequest.php │ │ ├── PickupErrorResponse.php │ │ ├── PickupResponse.php │ │ ├── RoutingErrorResponse.php │ │ ├── RoutingRequest.php │ │ ├── RoutingResponse.php │ │ ├── ShipmentTrackingErrorResponse.php │ │ ├── ShipmentValidateErrorResponse.php │ │ ├── ShipmentValidateRequest.php │ │ ├── ShipmentValidateResponse.php │ │ ├── TrackingResponse.php │ │ └── UnknownTrackingRequest.php │ └── GB │ │ ├── BookPURequest.php │ │ ├── BookPUResponse.php │ │ ├── CancelPURequest.php │ │ ├── CancelPUResponse.php │ │ ├── KnownTrackingRequest.php │ │ ├── ModifyPURequest.php │ │ ├── ModifyPUResponse.php │ │ ├── RouteRequest.php │ │ ├── RouteResponse.php │ │ ├── ShipmentRequest.php │ │ ├── ShipmentResponse.php │ │ ├── TrackingResponse.php │ │ └── UnknownTrackingRequest.php └── Service.php ├── README.md ├── composer.json ├── conf └── config.sample.php ├── init.php ├── samples ├── AM │ └── GetQuote.php ├── EA │ └── Tracking.php ├── EU │ └── RouteRequest.php └── GB │ ├── Benchmark-ShipmentRequest.php │ ├── RouteRequest.php │ └── ShipmentRequest.php └── vendor └── autoloadManager ├── README.md └── autoloadManager.php /DHL/Datatype/AM/AWBInfo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'AWBNumber', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Airway bill number', 49 | 'maxLength' => '11', 50 | ), 51 | 'Status' => array( 52 | 'type' => 'Status', 53 | 'required' => false, 54 | 'subobject' => true, 55 | ), 56 | 'ShipmentInfo' => array( 57 | 'type' => 'ShipmentInfo', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | 'Pieces' => array( 62 | 'type' => 'TrackingPieces', 63 | 'required' => false, 64 | 'subobject' => true, 65 | ), 66 | ); 67 | } 68 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/BarCodes.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'BarCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => '', 49 | ), 50 | ); 51 | } 52 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Commodity.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'CommodityCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Commodity codes for shipment type', 49 | 'minLength' => '1', 50 | 'maxLength' => '20', 51 | ), 52 | 'CommodityName' => array( 53 | 'type' => 'CommodityName', 54 | 'required' => false, 55 | 'subobject' => false, 56 | 'comment' => 'Commodity name for shipment content', 57 | 'maxLength' => '35', 58 | ), 59 | ); 60 | } 61 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Condition.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'ConditionData' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Customer.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Name' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/CustomerLogo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'LogoImage', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'LogoImage', 49 | 'maxLength' => '1048576', 50 | ), 51 | 'LogoImageFormat' => array( 52 | 'type' => 'LogoImageFormat', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'LogoImage Format', 56 | 'enumeration' => 'PNG,GIF,JPEG,JPG', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/DCTDutiable.php: -------------------------------------------------------------------------------- 1 | array( 51 | 'type' => '', 52 | 'required' => false, 53 | 'subobject' => false, 54 | ), 55 | 'DeclaredValue' => array( 56 | 'type' => '', 57 | 'required' => false, 58 | 'subobject' => false, 59 | ), 60 | ); 61 | } 62 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/DocImages.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'DocImage', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/ErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | 'Status' => array( 50 | 'type' => 'Status', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/EventRemarks.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'FurtherDetails', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'FurtherDetails', 49 | ), 50 | 'NextSteps' => array( 51 | 'type' => 'NextSteps', 52 | 'required' => false, 53 | 'subobject' => false, 54 | 'comment' => 'NextSteps', 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Fault.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceFault', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/LabelImage.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'OutputFormat', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'OutputFormat', 49 | 'enumeration' => 'PDF,PL2,ZPL2,JPG,PNG,EPL2,EPLN,ZPLN', 50 | ), 51 | 'OutputImage' => array( 52 | 'type' => 'OutputImage', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'OutputImage', 56 | ), 57 | 'OutputImageNPC' => array( 58 | 'type' => 'string', 59 | 'required' => false, 60 | 'subobject' => false, 61 | ), 62 | ); 63 | } 64 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Note.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Condition' => array( 50 | 'type' => 'Condition', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/OriginServiceArea.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceAreaCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'DHL service area code', 49 | 'length' => '3', 50 | ), 51 | 'Description' => array( 52 | 'type' => 'string', 53 | 'required' => false, 54 | 'subobject' => false, 55 | ), 56 | 'OutboundSortCode' => array( 57 | 'type' => 'OutboundSortCode', 58 | 'required' => false, 59 | 'subobject' => false, 60 | 'comment' => 'OutBound Sort Code', 61 | 'length' => '4', 62 | ), 63 | ); 64 | } 65 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/PieceFault.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'TrackingPieceID', 46 | 'required' => true, 47 | 'subobject' => false, 48 | 'comment' => 'Piece ID', 49 | 'minLength' => '1', 50 | 'maxLength' => '35', 51 | ), 52 | 'ConditionCode' => array( 53 | 'type' => 'string', 54 | 'required' => true, 55 | 'subobject' => false, 56 | ), 57 | 'ConditionData' => array( 58 | 'type' => 'string', 59 | 'required' => true, 60 | 'subobject' => false, 61 | ), 62 | ); 63 | } 64 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/PieceInfo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceDetails', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | 'PieceEvent' => array( 50 | 'type' => 'PieceEvent', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Pieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Piece', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/QtdShpExChrgType.php: -------------------------------------------------------------------------------- 1 | array( 51 | 'type' => '', 52 | 'required' => false, 53 | 'subobject' => false, 54 | ), 55 | 'LocalSpecialServiceType' => array( 56 | 'type' => '', 57 | 'required' => false, 58 | 'subobject' => false, 59 | ), 60 | ); 61 | } 62 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/QtdShpType.php: -------------------------------------------------------------------------------- 1 | array( 51 | 'type' => '', 52 | 'required' => false, 53 | 'subobject' => false, 54 | ), 55 | 'LocalProductCode' => array( 56 | 'type' => '', 57 | 'required' => false, 58 | 'subobject' => false, 59 | ), 60 | 'QtdShpExChrg' => array( 61 | 'type' => 'QtdShpExChrgType', 62 | 'required' => false, 63 | 'subobject' => true, 64 | ), 65 | ); 66 | } 67 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Reference.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ReferenceID', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Shipper reference ID', 49 | 'maxLength' => '35', 50 | ), 51 | 'ReferenceType' => array( 52 | 'type' => 'ReferenceType', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'Shipment reference type', 56 | 'length' => '2', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Request.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Response.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/ServiceArea.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceAreaCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'DHL service area code', 49 | 'length' => '3', 50 | ), 51 | 'Description' => array( 52 | 'type' => 'string', 53 | 'required' => false, 54 | 'subobject' => false, 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/ServiceEvent.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => '', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Description' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/ShipValResponsePieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ShipValResponsePiece', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/ShipmentDate.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Date', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Date only', 49 | ), 50 | 'ShipmentDateTo' => array( 51 | 'type' => 'Date', 52 | 'required' => false, 53 | 'subobject' => false, 54 | 'comment' => 'Date only', 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/Status.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Condition' => array( 50 | 'type' => 'Condition', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/TrackingPieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceInfo', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AM/WeightSeg.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Weight', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Weight of piece or shipment', 49 | 'fractionDigits' => '1', 50 | 'maxInclusive' => '999999.9', 51 | 'totalDigits' => '7', 52 | ), 53 | 'WeightUnit' => array( 54 | 'type' => 'WeightUnit', 55 | 'required' => false, 56 | 'subobject' => false, 57 | 'comment' => 'Unit of weight measurement (L:Pounds)', 58 | 'length' => '1', 59 | 'enumeration' => 'K,L', 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/AWBInfo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'AWBNumber', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Airway bill number', 49 | 'maxLength' => '11', 50 | ), 51 | 'Status' => array( 52 | 'type' => 'Status', 53 | 'required' => false, 54 | 'subobject' => true, 55 | ), 56 | 'ShipmentInfo' => array( 57 | 'type' => 'ShipmentInfo', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | 'Pieces' => array( 62 | 'type' => 'TrackingPieces', 63 | 'required' => false, 64 | 'subobject' => true, 65 | ), 66 | ); 67 | } 68 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/BarCodes.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'BarCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => '', 49 | ), 50 | ); 51 | } 52 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Commodity.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'CommodityCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Commodity codes for shipment type', 49 | 'minLength' => '1', 50 | 'maxLength' => '20', 51 | ), 52 | 'CommodityName' => array( 53 | 'type' => 'CommodityName', 54 | 'required' => false, 55 | 'subobject' => false, 56 | 'comment' => 'Commodity name for shipment content', 57 | 'maxLength' => '35', 58 | ), 59 | ); 60 | } 61 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Condition.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'ConditionData' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Customer.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Name' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/CustomerLogo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'LogoImage', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'LogoImage', 49 | 'maxLength' => '1048576', 50 | ), 51 | 'LogoImageFormat' => array( 52 | 'type' => 'LogoImageFormat', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'LogoImage Format', 56 | 'enumeration' => 'PNG,GIF,JPEG,JPG', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/DocImages.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'DocImage', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/ErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | 'Status' => array( 50 | 'type' => 'Status', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/EventRemarks.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'FurtherDetails', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'FurtherDetails', 49 | ), 50 | 'NextSteps' => array( 51 | 'type' => 'NextSteps', 52 | 'required' => false, 53 | 'subobject' => false, 54 | 'comment' => 'NextSteps', 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Fault.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceFault', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/LabelImage.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'OutputFormat', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'OutputFormat', 49 | 'enumeration' => 'PDF,PL2,ZPL2,JPG,PNG,EPL2,EPLN,ZPLN', 50 | ), 51 | 'OutputImage' => array( 52 | 'type' => 'OutputImage', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'OutputImage', 56 | ), 57 | 'OutputImageNPC' => array( 58 | 'type' => 'string', 59 | 'required' => false, 60 | 'subobject' => false, 61 | ), 62 | ); 63 | } 64 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Note.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Condition' => array( 50 | 'type' => 'Condition', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/OriginServiceArea.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceAreaCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'DHL service area code', 49 | 'length' => '3', 50 | ), 51 | 'Description' => array( 52 | 'type' => 'string', 53 | 'required' => false, 54 | 'subobject' => false, 55 | ), 56 | 'OutboundSortCode' => array( 57 | 'type' => 'OutboundSortCode', 58 | 'required' => false, 59 | 'subobject' => false, 60 | 'comment' => 'OutBound Sort Code', 61 | 'length' => '4', 62 | ), 63 | ); 64 | } 65 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/PieceFault.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'TrackingPieceID', 46 | 'required' => true, 47 | 'subobject' => false, 48 | 'comment' => 'Piece ID', 49 | 'minLength' => '1', 50 | 'maxLength' => '35', 51 | ), 52 | 'ConditionCode' => array( 53 | 'type' => 'string', 54 | 'required' => true, 55 | 'subobject' => false, 56 | ), 57 | 'ConditionData' => array( 58 | 'type' => 'string', 59 | 'required' => true, 60 | 'subobject' => false, 61 | ), 62 | ); 63 | } 64 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/PieceInfo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceDetails', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | 'PieceEvent' => array( 50 | 'type' => 'PieceEvent', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Pieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Piece', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Reference.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ReferenceID', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Shipper reference ID', 49 | 'maxLength' => '35', 50 | ), 51 | 'ReferenceType' => array( 52 | 'type' => 'ReferenceType', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'Shipment reference type', 56 | 'length' => '2', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Request.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Response.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/ServiceArea.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceAreaCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'DHL service area code', 49 | 'length' => '3', 50 | ), 51 | 'Description' => array( 52 | 'type' => 'string', 53 | 'required' => false, 54 | 'subobject' => false, 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/ServiceEvent.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => '', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Description' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/ShipValResponsePieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ShipValResponsePiece', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/ShipmentDate.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Date', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Date only', 49 | ), 50 | 'ShipmentDateTo' => array( 51 | 'type' => 'Date', 52 | 'required' => false, 53 | 'subobject' => false, 54 | 'comment' => 'Date only', 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/Status.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Condition' => array( 50 | 'type' => 'Condition', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/TrackingPieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceInfo', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/AP/WeightSeg.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Weight', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Weight of piece or shipment', 49 | 'fractionDigits' => '1', 50 | 'maxInclusive' => '999999.9', 51 | 'totalDigits' => '7', 52 | ), 53 | 'WeightUnit' => array( 54 | 'type' => 'WeightUnit', 55 | 'required' => false, 56 | 'subobject' => false, 57 | 'comment' => 'Unit of weight measurement (L:Pounds)', 58 | 'length' => '1', 59 | 'enumeration' => 'K,L', 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/AWBInfo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'AWBNumber', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Airway bill number', 49 | 'maxLength' => '11', 50 | ), 51 | 'Status' => array( 52 | 'type' => 'Status', 53 | 'required' => false, 54 | 'subobject' => true, 55 | ), 56 | 'ShipmentInfo' => array( 57 | 'type' => 'ShipmentInfo', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | 'Pieces' => array( 62 | 'type' => 'TrackingPieces', 63 | 'required' => false, 64 | 'subobject' => true, 65 | ), 66 | ); 67 | } 68 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/BarCodes.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'BarCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => '', 49 | ), 50 | ); 51 | } 52 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Commodity.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'CommodityCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Commodity codes for shipment type', 49 | 'minLength' => '1', 50 | 'maxLength' => '20', 51 | ), 52 | 'CommodityName' => array( 53 | 'type' => 'CommodityName', 54 | 'required' => false, 55 | 'subobject' => false, 56 | 'comment' => 'Commodity name for shipment content', 57 | 'maxLength' => '35', 58 | ), 59 | ); 60 | } 61 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Condition.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'ConditionData' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Customer.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Name' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/CustomerLogo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'LogoImage', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'LogoImage', 49 | 'maxLength' => '1048576', 50 | ), 51 | 'LogoImageFormat' => array( 52 | 'type' => 'LogoImageFormat', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'LogoImage Format', 56 | 'enumeration' => 'PNG,GIF,JPEG,JPG', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/DocImages.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'DocImage', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/ErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | 'Status' => array( 50 | 'type' => 'Status', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/EventRemarks.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'FurtherDetails', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'FurtherDetails', 49 | ), 50 | 'NextSteps' => array( 51 | 'type' => 'NextSteps', 52 | 'required' => false, 53 | 'subobject' => false, 54 | 'comment' => 'NextSteps', 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Fault.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceFault', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/LabelImage.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'OutputFormat', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'OutputFormat', 49 | 'enumeration' => 'PDF,PL2,ZPL2,JPG,PNG,EPL2,EPLN,ZPLN', 50 | ), 51 | 'OutputImage' => array( 52 | 'type' => 'OutputImage', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'OutputImage', 56 | ), 57 | 'OutputImageNPC' => array( 58 | 'type' => 'string', 59 | 'required' => false, 60 | 'subobject' => false, 61 | ), 62 | ); 63 | } 64 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Note.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Condition' => array( 50 | 'type' => 'Condition', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/OriginServiceArea.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceAreaCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'DHL service area code', 49 | 'length' => '3', 50 | ), 51 | 'Description' => array( 52 | 'type' => 'string', 53 | 'required' => false, 54 | 'subobject' => false, 55 | ), 56 | 'OutboundSortCode' => array( 57 | 'type' => 'OutboundSortCode', 58 | 'required' => false, 59 | 'subobject' => false, 60 | 'comment' => 'OutBound Sort Code', 61 | 'length' => '4', 62 | ), 63 | ); 64 | } 65 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/PieceFault.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'TrackingPieceID', 46 | 'required' => true, 47 | 'subobject' => false, 48 | 'comment' => 'Piece ID', 49 | 'minLength' => '1', 50 | 'maxLength' => '35', 51 | ), 52 | 'ConditionCode' => array( 53 | 'type' => 'string', 54 | 'required' => true, 55 | 'subobject' => false, 56 | ), 57 | 'ConditionData' => array( 58 | 'type' => 'string', 59 | 'required' => true, 60 | 'subobject' => false, 61 | ), 62 | ); 63 | } 64 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/PieceInfo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceDetails', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | 'PieceEvent' => array( 50 | 'type' => 'PieceEvent', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Pieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Piece', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Reference.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ReferenceID', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Shipper reference ID', 49 | 'maxLength' => '35', 50 | ), 51 | 'ReferenceType' => array( 52 | 'type' => 'ReferenceType', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'Shipment reference type', 56 | 'length' => '2', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Request.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Response.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/ServiceArea.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceAreaCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'DHL service area code', 49 | 'length' => '3', 50 | ), 51 | 'Description' => array( 52 | 'type' => 'string', 53 | 'required' => false, 54 | 'subobject' => false, 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/ServiceEvent.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => '', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Description' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/ShipValResponsePieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ShipValResponsePiece', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/ShipmentDate.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Date', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Date only', 49 | ), 50 | 'ShipmentDateTo' => array( 51 | 'type' => 'Date', 52 | 'required' => false, 53 | 'subobject' => false, 54 | 'comment' => 'Date only', 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/Status.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Condition' => array( 50 | 'type' => 'Condition', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/TrackingPieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceInfo', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/EA/WeightSeg.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Weight', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Weight of piece or shipment', 49 | 'fractionDigits' => '1', 50 | 'maxInclusive' => '999999.9', 51 | 'totalDigits' => '7', 52 | ), 53 | 'WeightUnit' => array( 54 | 'type' => 'WeightUnit', 55 | 'required' => false, 56 | 'subobject' => false, 57 | 'comment' => 'Unit of weight measurement (L:Pounds)', 58 | 'length' => '1', 59 | 'enumeration' => 'K,L', 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/AWBInfo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'AWBNumber', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Airway bill number', 49 | 'maxLength' => '10', 50 | ), 51 | 'Status' => array( 52 | 'type' => 'Status', 53 | 'required' => false, 54 | 'subobject' => true, 55 | ), 56 | 'ShipmentInfo' => array( 57 | 'type' => 'ShipmentInfo', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | 'PieceInfo' => array( 62 | 'type' => 'PieceInfo', 63 | 'required' => false, 64 | 'subobject' => true, 65 | ), 66 | ); 67 | } 68 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/AdditionalProtection.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Code', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Code', 49 | 'length' => '2', 50 | 'enumeration' => 'AP,NR', 51 | ), 52 | 'Value' => array( 53 | 'type' => 'Value', 54 | 'required' => false, 55 | 'subobject' => false, 56 | 'comment' => 'Value', 57 | 'maxInclusive' => '9999999.99', 58 | ), 59 | ); 60 | } 61 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/BarCode.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => '', 49 | ), 50 | ); 51 | } 52 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Commodity.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'CommodityCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Commodity codes for shipment type', 49 | 'minLength' => '1', 50 | 'maxLength' => '20', 51 | ), 52 | 'CommodityName' => array( 53 | 'type' => 'CommodityName', 54 | 'required' => false, 55 | 'subobject' => false, 56 | 'comment' => 'Commodity name for shipment content', 57 | 'maxLength' => '35', 58 | ), 59 | ); 60 | } 61 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Condition.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'ConditionData' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Customer.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Name' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/CustomerLogo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'LogoImage', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'LogoImage', 49 | 'maxLength' => '1048576', 50 | ), 51 | 'LogoImageFormat' => array( 52 | 'type' => 'LogoImageFormat', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'LogoImage Format', 56 | 'enumeration' => 'PNG,GIF,JPEG,JPG', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/ErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | 'Status' => array( 50 | 'type' => 'Status', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Fault.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceFault', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/LabelImage.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'OutputFormat', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'OutputFormat', 49 | 'enumeration' => 'PDF,PL2,ZPL2,JPG,PNG,EPL2,EPLN,ZPLN', 50 | ), 51 | 'OutputImage' => array( 52 | 'type' => 'OutputImage', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'OutputImage', 56 | ), 57 | 'OutputImageNPC' => array( 58 | 'type' => 'string', 59 | 'required' => false, 60 | 'subobject' => false, 61 | ), 62 | ); 63 | } 64 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Note.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Condition' => array( 50 | 'type' => 'Condition', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Notification.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Message', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Message', 49 | 'maxLength' => '250', 50 | ), 51 | 'Message' => array( 52 | 'type' => 'Message', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'Message', 56 | 'maxLength' => '250', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/OriginServiceArea.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceAreaCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'DHL service area code', 49 | 'length' => '3', 50 | ), 51 | 'Description' => array( 52 | 'type' => 'string', 53 | 'required' => false, 54 | 'subobject' => false, 55 | ), 56 | 'OutboundSortCode' => array( 57 | 'type' => 'OutboundSortCode', 58 | 'required' => false, 59 | 'subobject' => false, 60 | 'comment' => 'OutBound Sort Code', 61 | 'maxLength' => '4', 62 | ), 63 | ); 64 | } 65 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/PieceFault.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'TrackingPieceID', 46 | 'required' => true, 47 | 'subobject' => false, 48 | 'comment' => 'Piece ID', 49 | 'minLength' => '20', 50 | 'maxLength' => '35', 51 | ), 52 | 'ConditionCode' => array( 53 | 'type' => 'string', 54 | 'required' => true, 55 | 'subobject' => false, 56 | ), 57 | 'ConditionData' => array( 58 | 'type' => 'string', 59 | 'required' => true, 60 | 'subobject' => false, 61 | ), 62 | ); 63 | } 64 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/PieceInfo.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceDetails', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | 'PieceEvent' => array( 50 | 'type' => 'PieceEvent', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Pieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Piece', 46 | 'required' => false, 47 | 'subobject' => true, 48 | 'multivalues' => true, 49 | ), 50 | ); 51 | } 52 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Reference.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ReferenceID', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Shipper reference ID', 49 | 'maxLength' => '35', 50 | ), 51 | 'ReferenceType' => array( 52 | 'type' => 'ReferenceType', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'Shipment reference type', 56 | 'length' => '2', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Request.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Response.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ResponseServiceHeader', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/ServiceArea.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ServiceAreaCode', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'DHL service area code', 49 | 'length' => '3', 50 | ), 51 | 'Description' => array( 52 | 'type' => 'string', 53 | 'required' => false, 54 | 'subobject' => false, 55 | ), 56 | ); 57 | } 58 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/ServiceEvent.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => '', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Description' => array( 50 | 'type' => 'string', 51 | 'required' => false, 52 | 'subobject' => false, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/ShipValResponsePieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'ShipValResponsePiece', 46 | 'required' => false, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/ShipmentDate.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Date', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Date only', 49 | 'pattern' => '[0-9][0-9][0-9][0-9](-)[0-9][0-9](-)[0-9][0-9]', 50 | ), 51 | 'ShipmentDateTo' => array( 52 | 'type' => 'Date', 53 | 'required' => false, 54 | 'subobject' => false, 55 | 'comment' => 'Date only', 56 | 'pattern' => '[0-9][0-9][0-9][0-9](-)[0-9][0-9](-)[0-9][0-9]', 57 | ), 58 | ); 59 | } 60 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/Status.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'string', 46 | 'required' => false, 47 | 'subobject' => false, 48 | ), 49 | 'Condition' => array( 50 | 'type' => 'Condition', 51 | 'required' => false, 52 | 'subobject' => true, 53 | ), 54 | ); 55 | } 56 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/TrackingPieces.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'PieceInfo', 46 | 'required' => true, 47 | 'subobject' => true, 48 | ), 49 | ); 50 | } 51 | -------------------------------------------------------------------------------- /DHL/Datatype/GB/WeightSeg.php: -------------------------------------------------------------------------------- 1 | array( 45 | 'type' => 'Weight', 46 | 'required' => false, 47 | 'subobject' => false, 48 | 'comment' => 'Weight of piece or shipment', 49 | 'fractionDigits' => '3', 50 | 'minInclusive' => '0.000', 51 | 'maxInclusive' => '999999.999', 52 | 'totalDigits' => '10', 53 | ), 54 | 'WeightUnit' => array( 55 | 'type' => 'WeightUnit', 56 | 'required' => false, 57 | 'subobject' => false, 58 | 'comment' => 'Unit of weight measurement (K:KiloGram)', 59 | 'minLength' => '0', 60 | 'maxLength' => '1', 61 | 'enumeration' => 'K,L', 62 | ), 63 | ); 64 | } 65 | -------------------------------------------------------------------------------- /DHL/Entity/AM/DCTRequest.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'GetCapability', 58 | 'required' => false, 59 | 'subobject' => true, 60 | 'multivalues' => false, 61 | 'minOccurs' => 0, 62 | ), 63 | ); 64 | } 65 | -------------------------------------------------------------------------------- /DHL/Entity/AM/ErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AM/PickupErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AM/RoutingErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AM/ShipmentRatingErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AM/ShipmentTrackingErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AM/ShipmentValidateErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AP/ErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AP/PickupErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AP/RoutingErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AP/ShipmentTrackingErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/AP/ShipmentValidateErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/EA/ErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/EA/PickupErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/EA/RoutingErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/EA/ShipmentTrackingErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /DHL/Entity/EA/ShipmentValidateErrorResponse.php: -------------------------------------------------------------------------------- 1 | array( 57 | 'type' => 'Response', 58 | 'required' => false, 59 | 'subobject' => true, 60 | ), 61 | ); 62 | } 63 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "alfallouji/dhl_api", 3 | 4 | "description": "PHP library to communicate with the DHL XML Services.", 5 | 6 | "require": { 7 | "php": ">=5.3.0" 8 | }, 9 | 10 | "license": "LGPL-2.1", 11 | 12 | "autoload": { 13 | "classmap" : [ "DHL" ] 14 | }, 15 | 16 | "authors": [ 17 | { 18 | "name": "Bashar Al-Fallouji", 19 | "email": "bashar@alfallouji.com" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /conf/config.sample.php: -------------------------------------------------------------------------------- 1 | array( 19 | 20 | // Only scan once when a class is not found in the class map (this should be set to SCAN_NONE on production environment 21 | 'scanOptions' => autoloadManager::SCAN_ONCE, 22 | 23 | // complete path to autoload file that contains the class map 24 | 'dir' => sys_get_temp_dir() . '/dhl-api-autoload.php', 25 | ), 26 | 27 | // DHL related settings 28 | 'dhl' => array( 29 | // ID to use to connect to DHL 30 | 'id' => 'YOUR_ID', 31 | 32 | // Password to use to connect to DHL 33 | 'pass' => 'YOUR_PASS', 34 | 35 | // Shipper, Billing and Duty Account numbers 36 | 'shipperAccountNumber' => 'YOUR_NUMBER', 37 | 'billingAccountNumber' => 'YOUR_NUMBER', 38 | 'dutyAccountNumber' => 'YOUR_NUMBER', 39 | ), 40 | ); 41 | -------------------------------------------------------------------------------- /samples/EA/Tracking.php: -------------------------------------------------------------------------------- 1 | SiteID = $dhl['id']; 36 | $request->Password = $dhl['pass']; 37 | $request->MessageReference = '1234567890123456789012345678'; 38 | $request->MessageTime = '2002-06-25T11:28:55-08:00'; 39 | $request->LanguageCode = 'en'; 40 | $request->AWBNumber = '8564385550'; 41 | $request->LevelOfDetails = 'ALL_CHECK_POINTS'; 42 | $request->PiecesEnabled = 'S'; 43 | 44 | echo $request->toXML(); 45 | $client = new WebserviceClient(); 46 | $xml = $client->call($request); 47 | 48 | $result = new DHL\Entity\EA\TrackingResponse(); 49 | $result->initFromXML($xml); 50 | echo $result->toXML(); 51 | -------------------------------------------------------------------------------- /samples/EU/RouteRequest.php: -------------------------------------------------------------------------------- 1 | MessageTime = '2013-08-04T11:28:56.000-08:00'; 38 | $sample->MessageReference = '1234567890123456789012345678901'; 39 | $sample->SiteID = $dhl['id']; 40 | $sample->Password = $dhl['pass']; 41 | $sample->RegionCode = 'EU'; 42 | $sample->RequestType = 'O'; 43 | $sample->Address1 = 'Oracle Parkway,'; 44 | $sample->Address2 = 'Thames Valley Park (TVP)'; 45 | $sample->Address3 = 'Berkshire'; 46 | $sample->PostalCode = 'RG6 1RA'; 47 | $sample->City = 'Reading'; 48 | $sample->Division = 'RE'; 49 | $sample->CountryCode = 'GB'; 50 | $sample->CountryName = 'United Kingdom'; 51 | $sample->OriginCountryCode = 'GB'; 52 | 53 | // Call DHL XML API 54 | echo $sample->toXML(); 55 | $client = new WebserviceClient(); 56 | echo $client->call($sample); 57 | -------------------------------------------------------------------------------- /samples/GB/RouteRequest.php: -------------------------------------------------------------------------------- 1 | MessageTime = '2013-08-04T11:28:56.000-08:00'; 38 | $sample->MessageReference = '1234567890123456789012345678901'; 39 | $sample->SiteID = $dhl['id']; 40 | $sample->Password = $dhl['pass']; 41 | $sample->RegionCode = 'AM'; 42 | $sample->RequestType = 'O'; 43 | $sample->Address1 = 'Suit 333'; 44 | $sample->Address2 = '333 Twin'; 45 | $sample->Address3 = ''; 46 | $sample->PostalCode = '94089'; 47 | $sample->City = 'North Dakhota'; 48 | $sample->Division = 'California'; 49 | $sample->CountryCode = 'US'; 50 | $sample->CountryName = 'United States of America'; 51 | $sample->OriginCountryCode = 'US'; 52 | 53 | // Call DHL XML API 54 | echo $sample->toXML(); 55 | $client = new WebserviceClient(); 56 | echo $client->call($sample); 57 | --------------------------------------------------------------------------------