Observer/Sales/SaveStatusSmsAutomation.php
private function resetContact($contact)
    {
        if ($contact->getCustomerId() && $contact->getEmailImported()) {
            $contact->setEmailImported(\Dotdigitalgroup\Email\Model\Contact::EMAIL_CONTACT_NOT_IMPORTED);
            $this->contactResource->save($contact);
        } elseif (! $contact->getCustomerId() && $contact->getIsSubscriber() && $contact->getSubscriberImported()) {
            $contact->setSubscriberImported(\Dotdigitalgroup\Email\Model\Contact::EMAIL_CONTACT_NOT_IMPORTED);
            $this->contactResource->save($contact);
        }
    }
private function resetContact($contact)
    {
        if ($contact->getCustomerId() && $contact->getEmailImported()) {
            $contact->setEmailImported(\Dotdigitalgroup\Email\Model\Contact::EMAIL_CONTACT_NOT_IMPORTED);
            $this->contactResource->save($contact);
        } elseif (! $contact->getCustomerId() && $contact->getIsSubscriber() && $contact->getSubscriberImported()) {
            $contact->setSubscriberImported(\Dotdigitalgroup\Email\Model\Contact::EMAIL_CONTACT_NOT_IMPORTED);
            $this->contactResource->save($contact);
        }
    }
private function resetContact ( $ contact ) { if ( $ contact -> getCustomerId ( ) && $ contact -> getEmailImported ( ) ) { $ contact -> setEmailImported ( \ Dotdigitalgroup \ Email \ Model \ Contact :: EMAIL_CONTACT_NOT_IMPORTED ) ; $ this -> contactResource -> save ( $ contact ) ; } elseif ( ! $ contact -> getCustomerId ( ) && $ contact -> getIsSubscriber ( ) && $ contact -> getSubscriberImported ( ) ) { $ contact -> setSubscriberImported ( \ Dotdigitalgroup \ Email \ Model \ Contact :: EMAIL_CONTACT_NOT_IMPORTED ) ; $ this -> contactResource -> save ( $ contact ) ; } }
Reset contact based on type and status

@param \Dotdigitalgroup\Email\Model\Contact $contact
Reset contact based on type and status