/** * Extract duties from the item payload. * * There will only ever be one duty record for an item but returns an array * to remain consistent with interfaces of other response parsers and tax * record sets. * * @return EbayEnterprise_Tax_Model_Duty[] */ protected function _extractDuties() { $dutyPricing = $this->_orderItem->getDutyPricing(); $duties = []; if ($dutyPricing) { $duties[] = $this->_taxFactory->createTaxDuty($dutyPricing, $this->_itemId, $this->_addressId); } return $duties; }