/** * @param SimpleXMLElement $detailXml * @param EntryTransactionDetail $detail */ private function addAdditionalTransactionInformation(SimpleXMLElement $detailXml, EntryTransactionDetail $detail) { if (isset($detailXml->AddtlTxInf)) { $additionalInformation = new AdditionalTransactionInformation((string) $detailXml->AddtlTxInf); $detail->setAdditionalTransactionInformation($additionalInformation); } }
/** * @param SimpleXMLElement $detailXml * @param EntryTransactionDetail $detail */ private function addReturnInformationToTransactionDetails(SimpleXMLElement $detailXml, EntryTransactionDetail $detail) { if (isset($detailXml->RtrInf)) { if (isset($detailXml->RtrInf->Rsn->Cd)) { $remittanceInformation = ReturnInformation::fromUnstructured((string) $detailXml->RtrInf->Rsn->Cd, (string) $detailXml->RtrInf->AddtlInf); $detail->setReturnInformation($remittanceInformation); } } }