public function getShipmentOrderClass_v2() {
		$class = new StdClass;
		$class->sequenceNumber = $this->getSequenceNumber();

		// Shipment
		$class->Shipment = new StdClass;
		$class->Shipment->ShipmentDetails = $this->getShipmentDetails()->getShipmentDetailsClass_v2();

		// Shipper
		$class->Shipment->Shipper = $this->getSender()->getClass_v2();

		// Receiver
		$class->Shipment->Receiver = $this->getReceiver()->getClass_v2();

		// Return-Receiver
		if($this->getReturnReceiver() !== null)
			$class->Shipment->ReturnReceiver = $this->getReturnReceiver()->getClass_v2();

		// Export-Document
		if($this->getExportDocument() !== null) {
			try {
				$class->Shipment->ExportDocument = $this->getExportDocument()->getExportDocumentClass_v2();
			} catch(Exception $e) {
				trigger_error('[DHL-PHP-SDK]: Exception in method ' . __METHOD__ . ':' . $e->getMessage(), E_USER_WARNING);
			}
		}

		// Other Settings
		if($this->getPrintOnlyIfReceiverIsValid() !== null) {
			$class->PrintOnlyIfCodeable = new StdClass;
			$class->PrintOnlyIfCodeable->active = (int) $this->getPrintOnlyIfReceiverIsValid();
		}
		if($this->getLabelResponseType() !== null)
			$class->labelResponseType = $this->getLabelResponseType();

		return $class;
	}
public function getShipmentOrderClass_v2() {
		$class = new StdClass;
		$class->sequenceNumber = $this->getSequenceNumber();

		// Shipment
		$class->Shipment = new StdClass;
		$class->Shipment->ShipmentDetails = $this->getShipmentDetails()->getShipmentDetailsClass_v2();

		// Shipper
		$class->Shipment->Shipper = $this->getSender()->getClass_v2();

		// Receiver
		$class->Shipment->Receiver = $this->getReceiver()->getClass_v2();

		// Return-Receiver
		if($this->getReturnReceiver() !== null)
			$class->Shipment->ReturnReceiver = $this->getReturnReceiver()->getClass_v2();

		// Export-Document
		if($this->getExportDocument() !== null) {
			try {
				$class->Shipment->ExportDocument = $this->getExportDocument()->getExportDocumentClass_v2();
			} catch(Exception $e) {
				trigger_error('[DHL-PHP-SDK]: Exception in method ' . __METHOD__ . ':' . $e->getMessage(), E_USER_WARNING);
			}
		}

		// Other Settings
		if($this->getPrintOnlyIfReceiverIsValid() !== null) {
			$class->PrintOnlyIfCodeable = new StdClass;
			$class->PrintOnlyIfCodeable->active = (int) $this->getPrintOnlyIfReceiverIsValid();
		}
		if($this->getLabelResponseType() !== null)
			$class->labelResponseType = $this->getLabelResponseType();

		return $class;
	}
public function getShipmentOrderClass_v2 ( ) { $ class = new StdClass ; $ class -> sequenceNumber = $ this -> getSequenceNumber ( ) ; // Shipment $ class -> Shipment = new StdClass ; $ class -> Shipment -> ShipmentDetails = $ this -> getShipmentDetails ( ) -> getShipmentDetailsClass_v2 ( ) ; // Shipper $ class -> Shipment -> Shipper = $ this -> getSender ( ) -> getClass_v2 ( ) ; // Receiver $ class -> Shipment -> Receiver = $ this -> getReceiver ( ) -> getClass_v2 ( ) ; // Return-Receiver if ( $ this -> getReturnReceiver ( ) !== null ) $ class -> Shipment -> ReturnReceiver = $ this -> getReturnReceiver ( ) -> getClass_v2 ( ) ; // Export-Document if ( $ this -> getExportDocument ( ) !== null ) { try { $ class -> Shipment -> ExportDocument = $ this -> getExportDocument ( ) -> getExportDocumentClass_v2 ( ) ; } catch ( Exception $ e ) { trigger_error ( '[DHL-PHP-SDK]: Exception in method ' . __METHOD__ . ':' . $ e -> getMessage ( ) , E_USER_WARNING ) ; } } // Other Settings if ( $ this -> getPrintOnlyIfReceiverIsValid ( ) !== null ) { $ class -> PrintOnlyIfCodeable = new StdClass ; $ class -> PrintOnlyIfCodeable -> active = ( int ) $ this -> getPrintOnlyIfReceiverIsValid ( ) ; } if ( $ this -> getLabelResponseType ( ) !== null ) $ class -> labelResponseType = $ this -> getLabelResponseType ( ) ; return $ class ; }
Returns an DHL-Class of this Object for DHL-Shipment Order

@return stdClass - DHL-ShipmentOrder-Class
Returns an DHL - Class of this Object for DHL - Shipment Order