src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/RefundExampleCLI.php
private function _waitUntilRefundProcessingIsCompleted($amazonRefundReferenceId)
    {
        $response = $this->callStepAndCheckForException(
            'waitUntilRefundProcessingIsCompleted',
            array($amazonRefundReferenceId)
        );
       
        printGetRefundDetailsResponse($response);
        validateThatRefundIsCompleted($response->getGetRefundDetailsResult()->getRefundDetails());
    }
private function _waitUntilRefundProcessingIsCompleted($amazonRefundReferenceId)
    {
        $response = $this->callStepAndCheckForException(
            'waitUntilRefundProcessingIsCompleted',
            array($amazonRefundReferenceId)
        );
       
        printGetRefundDetailsResponse($response);
        validateThatRefundIsCompleted($response->getGetRefundDetailsResult()->getRefundDetails());
    }
private function _waitUntilRefundProcessingIsCompleted ( $ amazonRefundReferenceId ) { $ response = $ this -> callStepAndCheckForException ( 'waitUntilRefundProcessingIsCompleted' , array ( $ amazonRefundReferenceId ) ) ; printGetRefundDetailsResponse ( $ response ) ; validateThatRefundIsCompleted ( $ response -> getGetRefundDetailsResult ( ) -> getRefundDetails ( ) ) ; }
Poll the API for the status of the Refund Request, and continue
once the status has been updated
Throw an error if the status is not equal to OPEN

@param string $amazonRefundReferenceId refund transaction to query

@return No value
Poll the API for the status of the Refund Request and continue once the status has been updated Throw an error if the status is not equal to OPEN