src/authnet/AuthnetWebhooksResponse.php
public function getEventTypes()
    {
        $events = [];
        if (isset($this->response->eventTypes)) {
            foreach ($this->response->eventTypes as $event) {
                $events[] = $event;
            }
        } else {
            $events = array_column($this->response, 'name');
        }
        return $events;
    }
public function getEventTypes()
    {
        $events = [];
        if (isset($this->response->eventTypes)) {
            foreach ($this->response->eventTypes as $event) {
                $events[] = $event;
            }
        } else {
            $events = array_column($this->response, 'name');
        }
        return $events;
    }
public function getEventTypes ( ) { $ events = [ ] ; if ( isset ( $ this -> response -> eventTypes ) ) { foreach ( $ this -> response -> eventTypes as $ event ) { $ events [ ] = $ event ; } } else { $ events = array_column ( $ this -> response , 'name' ) ; } return $ events ; }
Gets a response variable from the API response

net.authorize.customer.created
net.authorize.customer.deleted
net.authorize.customer.updated
net.authorize.customer.paymentProfile.created
net.authorize.customer.paymentProfile.deleted
net.authorize.customer.paymentProfile.updated
net.authorize.customer.subscription.cancelled
net.authorize.customer.subscription.created
net.authorize.customer.subscription.expiring
net.authorize.customer.subscription.suspended
net.authorize.customer.subscription.terminated
net.authorize.customer.subscription.updated
net.authorize.payment.authcapture.created
net.authorize.payment.authorization.created
net.authorize.payment.capture.created
net.authorize.payment.fraud.approved
net.authorize.payment.fraud.declined
net.authorize.payment.fraud.held
net.authorize.payment.priorAuthCapture.created
net.authorize.payment.refund.created
net.authorize.payment.void.created

@return  array   Array of event types supported by Webhooks API
Gets a response variable from the API response