/** * Get the shipping address for the request * * @param OnePica_AvaTax_Model_Sales_Quote_Address $address * @return OnePica\AvaTax16\Document\Part\Location\Address */ protected function _getDestinationAddress($address) { $street1 = $address->getStreet(1); $street2 = $address->getStreet(2); $city = (string) $address->getCity(); $zip = $address->getPostcode(); $state = Mage::getModel('directory/region')->load($address->getRegionId())->getCode(); $country = $address->getCountry(); $address = $this->_newAddress($street1, $street2, $city, $state, $zip, $country); return $address; }