public function buildRequest($addReq = null) {
    	// Build Authentication
    	$this->request['WebAuthenticationDetail'] = array(
			'UserCredential'=> array(
				'Key' 		=> $this->key, 
				'Password'	=> $this->password
			)
		);

		//Build Client Detail
		$this->request['ClientDetail'] = array(
			'AccountNumber' => $this->acct_num, 
			'MeterNumber' 	=> $this->meter_num
		);

		// Build Customer Transaction Id
		$this->request['TransactionDetail'] = array(
			'CustomerTransactionId' => $this->customerTransactionId
		);
		
		// Build API Version info
		$this->request['Version'] = array(
			'ServiceId' 	=> $this->service_id, 
			'Major' 		=> $this->major, 
			'Intermediate'	=> $this->intermediate, 
			'Minor' 		=> $this->minor
		);

		// Enable detailed scans
		$this->request['ProcessingOptions'] = 'INCLUDE_DETAILED_SCANS';

		if(!is_null($addReq))
			$this->request = array_merge($this->request, $addReq);

		return $this->request;
    }
public function buildRequest($addReq = null) {
    	// Build Authentication
    	$this->request['WebAuthenticationDetail'] = array(
			'UserCredential'=> array(
				'Key' 		=> $this->key, 
				'Password'	=> $this->password
			)
		);

		//Build Client Detail
		$this->request['ClientDetail'] = array(
			'AccountNumber' => $this->acct_num, 
			'MeterNumber' 	=> $this->meter_num
		);

		// Build Customer Transaction Id
		$this->request['TransactionDetail'] = array(
			'CustomerTransactionId' => $this->customerTransactionId
		);
		
		// Build API Version info
		$this->request['Version'] = array(
			'ServiceId' 	=> $this->service_id, 
			'Major' 		=> $this->major, 
			'Intermediate'	=> $this->intermediate, 
			'Minor' 		=> $this->minor
		);

		// Enable detailed scans
		$this->request['ProcessingOptions'] = 'INCLUDE_DETAILED_SCANS';

		if(!is_null($addReq))
			$this->request = array_merge($this->request, $addReq);

		return $this->request;
    }
public function buildRequest ( $ addReq = null ) { // Build Authentication $ this -> request [ 'WebAuthenticationDetail' ] = array ( 'UserCredential' => array ( 'Key' => $ this -> key , 'Password' => $ this -> password ) ) ; //Build Client Detail $ this -> request [ 'ClientDetail' ] = array ( 'AccountNumber' => $ this -> acct_num , 'MeterNumber' => $ this -> meter_num ) ; // Build Customer Transaction Id $ this -> request [ 'TransactionDetail' ] = array ( 'CustomerTransactionId' => $ this -> customerTransactionId ) ; // Build API Version info $ this -> request [ 'Version' ] = array ( 'ServiceId' => $ this -> service_id , 'Major' => $ this -> major , 'Intermediate' => $ this -> intermediate , 'Minor' => $ this -> minor ) ; // Enable detailed scans $ this -> request [ 'ProcessingOptions' ] = 'INCLUDE_DETAILED_SCANS' ; if ( ! is_null ( $ addReq ) ) $ this -> request = array_merge ( $ this -> request , $ addReq ) ; return $ this -> request ; }
Builds and returns the basic request array to be sent
with each request to the FedEx API. This assumes the
setVersion method has already been called by an extended class.

Takes an optional parameter, $addReq. This parameter is
used to set the additonal request details. These details
are determined by the particular service being called and
are passed by the extended service classes.

@param array 	// Additonal request details
Builds and returns the basic request array to be sent with each request to the FedEx API . This assumes the setVersion method has already been called by an extended class .