application/controllers/bestitamazoncron.php
protected function _updateRefundDetails()
    {
        $sQuery = "SELECT BESTITAMAZONREFUNDID
            FROM bestitamazonrefunds
            WHERE STATE = 'Pending'
              AND BESTITAMAZONREFUNDID != ''";

        $aResult = $this->_getContainer()->getDatabase()->getAll($sQuery);

        foreach ($aResult as $aRow) {
            $oData = $this->_getContainer()->getClient()->getRefundDetails($aRow['BESTITAMAZONREFUNDID']);

            if (isset($oData->GetRefundDetailsResult->RefundDetails->RefundStatus->State)) {
                $this->_addToMessages(
                    "Refund ID: {$oData->GetRefundDetailsResult->RefundDetails->RefundReferenceId} - "
                    ."Status: {$oData->GetRefundDetailsResult->RefundDetails->RefundStatus->State}<br/>"
                );
            }
        }
    }
protected function _updateRefundDetails()
    {
        $sQuery = "SELECT BESTITAMAZONREFUNDID
            FROM bestitamazonrefunds
            WHERE STATE = 'Pending'
              AND BESTITAMAZONREFUNDID != ''";

        $aResult = $this->_getContainer()->getDatabase()->getAll($sQuery);

        foreach ($aResult as $aRow) {
            $oData = $this->_getContainer()->getClient()->getRefundDetails($aRow['BESTITAMAZONREFUNDID']);

            if (isset($oData->GetRefundDetailsResult->RefundDetails->RefundStatus->State)) {
                $this->_addToMessages(
                    "Refund ID: {$oData->GetRefundDetailsResult->RefundDetails->RefundReferenceId} - "
                    ."Status: {$oData->GetRefundDetailsResult->RefundDetails->RefundStatus->State}<br/>"
                );
            }
        }
    }
protected function _updateRefundDetails ( ) { $ sQuery = "SELECT BESTITAMAZONREFUNDID
            FROM bestitamazonrefunds
            WHERE STATE = 'Pending'
              AND BESTITAMAZONREFUNDID != ''" ; $ aResult = $ this -> _getContainer ( ) -> getDatabase ( ) -> getAll ( $ sQuery ) ; foreach ( $ aResult as $ aRow ) { $ oData = $ this -> _getContainer ( ) -> getClient ( ) -> getRefundDetails ( $ aRow [ 'BESTITAMAZONREFUNDID' ] ) ; if ( isset ( $ oData -> GetRefundDetailsResult -> RefundDetails -> RefundStatus -> State ) ) { $ this -> _addToMessages ( "Refund ID: {$oData->GetRefundDetailsResult->RefundDetails->RefundReferenceId} - " . "Status: {$oData->GetRefundDetailsResult->RefundDetails->RefundStatus->State}<br/>" ) ; } } }
Check and update refund details for made refunds
@throws Exception
Check and update refund details for made refunds