/** * @param $store * @param $address * @param \Magento\Customer\Api\Data\CustomerInterface|null $customer * @return null */ protected function getBusinessIdentificationNumber($store, $address, $customer) { if ($customer && $customer->getTaxvat()) { return $customer->getTaxvat(); } if ($this->config->getUseBusinessIdentificationNumber($store)) { return $address->getVatId(); } return null; }