private function prepareShipping()
    {
        $shipping = array();
        if(!empty($this->_detailsTransactionByCode->getShipping())){
            $shipping = array(
                'addres' => array(
                    'street'    => $this->_detailsTransactionByCode->getShipping()->getAddress()->getStreet(),
                    'number'    => $this->_detailsTransactionByCode->getShipping()->getAddress()->getNumber(),
                    'complement' => $this->_detailsTransactionByCode->getShipping()->getAddress()->getComplement(),
                    'district'  => $this->_detailsTransactionByCode->getShipping()->getAddress()->getDistrict(),
                    'postalCode' => $this->_detailsTransactionByCode->getShipping()->getAddress()->getPostalCode(),
                    'city'      => $this->_detailsTransactionByCode->getShipping()->getAddress()->getCity(),
                    'state'     => $this->_detailsTransactionByCode->getShipping()->getAddress()->getState(),
                    'country'   => $this->_detailsTransactionByCode->getShipping()->getAddress()->getCountry()
                ),
                'type' => $this->_detailsTransactionByCode->getShipping()->getType()->getType(),
                'cost' => $this->_detailsTransactionByCode->getShipping()->getCost()->getCost()
            );
        }
        return $shipping;
    }
private function prepareShipping()
    {
        $shipping = array();
        if(!empty($this->_detailsTransactionByCode->getShipping())){
            $shipping = array(
                'addres' => array(
                    'street'    => $this->_detailsTransactionByCode->getShipping()->getAddress()->getStreet(),
                    'number'    => $this->_detailsTransactionByCode->getShipping()->getAddress()->getNumber(),
                    'complement' => $this->_detailsTransactionByCode->getShipping()->getAddress()->getComplement(),
                    'district'  => $this->_detailsTransactionByCode->getShipping()->getAddress()->getDistrict(),
                    'postalCode' => $this->_detailsTransactionByCode->getShipping()->getAddress()->getPostalCode(),
                    'city'      => $this->_detailsTransactionByCode->getShipping()->getAddress()->getCity(),
                    'state'     => $this->_detailsTransactionByCode->getShipping()->getAddress()->getState(),
                    'country'   => $this->_detailsTransactionByCode->getShipping()->getAddress()->getCountry()
                ),
                'type' => $this->_detailsTransactionByCode->getShipping()->getType()->getType(),
                'cost' => $this->_detailsTransactionByCode->getShipping()->getCost()->getCost()
            );
        }
        return $shipping;
    }
private function prepareShipping ( ) { $ shipping = array ( ) ; if ( ! empty ( $ this -> _detailsTransactionByCode -> getShipping ( ) ) ) { $ shipping = array ( 'addres' => array ( 'street' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getAddress ( ) -> getStreet ( ) , 'number' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getAddress ( ) -> getNumber ( ) , 'complement' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getAddress ( ) -> getComplement ( ) , 'district' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getAddress ( ) -> getDistrict ( ) , 'postalCode' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getAddress ( ) -> getPostalCode ( ) , 'city' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getAddress ( ) -> getCity ( ) , 'state' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getAddress ( ) -> getState ( ) , 'country' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getAddress ( ) -> getCountry ( ) ) , 'type' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getType ( ) -> getType ( ) , 'cost' => $ this -> _detailsTransactionByCode -> getShipping ( ) -> getCost ( ) -> getCost ( ) ) ; } return $ shipping ; }
Format transaction Shipping
@return array
Format transaction Shipping