public function fetchShipment(){
        if (!array_key_exists('ShipmentId',$this->options)){
            $this->log("Shipment ID must be set in order to fetch it!",'Warning');
            return false;
        }

        $this->options['Action'] = 'GetShipment';

        $url = $this->urlbase.$this->urlbranch;

        $query = $this->genQuery();

        $path = $this->options['Action'].'Result';
        if ($this->mockMode){
            $xml = $this->fetchMockFile();
        } else {
            $response = $this->sendRequest($url, array('Post'=>$query));

            if (!$this->checkResponse($response)){
                return false;
            }

            $xml = simplexml_load_string($response['body']);
        }

        $this->parseXML($xml->$path);
    }
public function fetchShipment(){
        if (!array_key_exists('ShipmentId',$this->options)){
            $this->log("Shipment ID must be set in order to fetch it!",'Warning');
            return false;
        }

        $this->options['Action'] = 'GetShipment';

        $url = $this->urlbase.$this->urlbranch;

        $query = $this->genQuery();

        $path = $this->options['Action'].'Result';
        if ($this->mockMode){
            $xml = $this->fetchMockFile();
        } else {
            $response = $this->sendRequest($url, array('Post'=>$query));

            if (!$this->checkResponse($response)){
                return false;
            }

            $xml = simplexml_load_string($response['body']);
        }

        $this->parseXML($xml->$path);
    }
public function fetchShipment ( ) { if ( ! array_key_exists ( 'ShipmentId' , $ this -> options ) ) { $ this -> log ( "Shipment ID must be set in order to fetch it!" , 'Warning' ) ; return false ; } $ this -> options [ 'Action' ] = 'GetShipment' ; $ url = $ this -> urlbase . $ this -> urlbranch ; $ query = $ this -> genQuery ( ) ; $ path = $ this -> options [ 'Action' ] . 'Result' ; if ( $ this -> mockMode ) { $ xml = $ this -> fetchMockFile ( ) ; } else { $ response = $ this -> sendRequest ( $ url , array ( 'Post' => $ query ) ) ; if ( ! $ this -> checkResponse ( $ response ) ) { return false ; } $ xml = simplexml_load_string ( $ response [ 'body' ] ) ; } $ this -> parseXML ( $ xml -> $ path ) ; }
Fetches the specified merchant-fulfilled shipment from Amazon.

Submits a <i>GetShipment</i> request to Amazon. In order to do this,
a shipment ID is required. Amazon will send
the data back as a response, which can be retrieved using <i>getShipment</i>.
Other methods are available for fetching specific values from the shipment.
@return boolean <b>FALSE</b> if something goes wrong
Fetches the specified merchant - fulfilled shipment from Amazon .