get_status_code(), array( 'APPROVED', 'COMPLETED', 'PENDING' ), true ) ); } /** * Gets the transaction ID. * * @since 2.0.0 * * @return string */ public function get_transaction_id() { return $this->get_data() && $this->get_data()->getRefund() ? $this->get_data()->getRefund()->getId() : ''; } /** * Gets the response status code. * * @since 2.0.0 * * @return string */ public function get_status_code() { if ( ! $this->has_errors() && $this->get_data() ) { $code = $this->get_data()->getRefund()->getStatus(); } else { $code = parent::get_status_code(); } return $code; } }