public function getShipmentDetailsClass_v2() {
		$class = new StdClass;

		$class->product = $this->getProduct();
		$class->accountNumber = $this->getAccountNumber();
		if($this->getCustomerReference() !== null)
			$class->customerReference = $this->getCustomerReference();
		$class->shipmentDate = $this->getShipmentDate();
		if($this->getReturnAccountNumber() !== null)
			$class->returnShipmentAccountNumber = $this->getReturnAccountNumber();
		if($this->getReturnReference() !== null)
			$class->returnShipmentReference = $this->getReturnReference();

		$class->ShipmentItem = new StdClass;
		$class->ShipmentItem->weightInKG = $this->getWeight();
		if($this->getLength() !== null)
			$class->ShipmentItem->lengthInCM = $this->getLength();
		if($this->getWidth() !== null)
			$class->ShipmentItem->widthInCM = $this->getWidth();
		if($this->getHeight() !== null)
			$class->ShipmentItem->heightInCM = $this->getHeight();

		if($this->getService() !== null)
			$class->Service = $this->getService()->getServiceClass_v2($this->getProduct());

		if($this->getNotificationEmail() !== null) {
			$class->Notification = new StdClass;
			$class->Notification->recipientEmailAddress = $this->getNotificationEmail();
		}

		if($this->getBank() !== null)
			$class->BankData = $this->getBank()->getBankClass_v2();

		return $class;
	}
public function getShipmentDetailsClass_v2() {
		$class = new StdClass;

		$class->product = $this->getProduct();
		$class->accountNumber = $this->getAccountNumber();
		if($this->getCustomerReference() !== null)
			$class->customerReference = $this->getCustomerReference();
		$class->shipmentDate = $this->getShipmentDate();
		if($this->getReturnAccountNumber() !== null)
			$class->returnShipmentAccountNumber = $this->getReturnAccountNumber();
		if($this->getReturnReference() !== null)
			$class->returnShipmentReference = $this->getReturnReference();

		$class->ShipmentItem = new StdClass;
		$class->ShipmentItem->weightInKG = $this->getWeight();
		if($this->getLength() !== null)
			$class->ShipmentItem->lengthInCM = $this->getLength();
		if($this->getWidth() !== null)
			$class->ShipmentItem->widthInCM = $this->getWidth();
		if($this->getHeight() !== null)
			$class->ShipmentItem->heightInCM = $this->getHeight();

		if($this->getService() !== null)
			$class->Service = $this->getService()->getServiceClass_v2($this->getProduct());

		if($this->getNotificationEmail() !== null) {
			$class->Notification = new StdClass;
			$class->Notification->recipientEmailAddress = $this->getNotificationEmail();
		}

		if($this->getBank() !== null)
			$class->BankData = $this->getBank()->getBankClass_v2();

		return $class;
	}
public function getShipmentDetailsClass_v2 ( ) { $ class = new StdClass ; $ class -> product = $ this -> getProduct ( ) ; $ class -> accountNumber = $ this -> getAccountNumber ( ) ; if ( $ this -> getCustomerReference ( ) !== null ) $ class -> customerReference = $ this -> getCustomerReference ( ) ; $ class -> shipmentDate = $ this -> getShipmentDate ( ) ; if ( $ this -> getReturnAccountNumber ( ) !== null ) $ class -> returnShipmentAccountNumber = $ this -> getReturnAccountNumber ( ) ; if ( $ this -> getReturnReference ( ) !== null ) $ class -> returnShipmentReference = $ this -> getReturnReference ( ) ; $ class -> ShipmentItem = new StdClass ; $ class -> ShipmentItem -> weightInKG = $ this -> getWeight ( ) ; if ( $ this -> getLength ( ) !== null ) $ class -> ShipmentItem -> lengthInCM = $ this -> getLength ( ) ; if ( $ this -> getWidth ( ) !== null ) $ class -> ShipmentItem -> widthInCM = $ this -> getWidth ( ) ; if ( $ this -> getHeight ( ) !== null ) $ class -> ShipmentItem -> heightInCM = $ this -> getHeight ( ) ; if ( $ this -> getService ( ) !== null ) $ class -> Service = $ this -> getService ( ) -> getServiceClass_v2 ( $ this -> getProduct ( ) ) ; if ( $ this -> getNotificationEmail ( ) !== null ) { $ class -> Notification = new StdClass ; $ class -> Notification -> recipientEmailAddress = $ this -> getNotificationEmail ( ) ; } if ( $ this -> getBank ( ) !== null ) $ class -> BankData = $ this -> getBank ( ) -> getBankClass_v2 ( ) ; return $ class ; }
Returns an DHL-Class of this Object for DHL-Shipment Details

@return StdClass - DHL-ShipmentDetails-Class
Returns an DHL - Class of this Object for DHL - Shipment Details