Model/Sync/Automation.php
private function updateDatafieldsByType($type, $email, $websiteId)
    {
        switch ($type) {
            case self::AUTOMATION_TYPE_NEW_ORDER:
            case self::AUTOMATION_TYPE_NEW_GUEST_ORDER:
            case self::ORDER_STATUS_AUTOMATION:
            case self::AUTOMATION_TYPE_CUSTOMER_FIRST_ORDER:
                $this->updateNewOrderDatafields($websiteId);
                break;
            case self::AUTOMATION_TYPE_ABANDONED_CART_PROGRAM_ENROLMENT:
                $this->updateAbandoned->updateAbandonedCartDatafields($email, $websiteId, $this->typeId, $this->storeName);
            default:
                $this->updateDefaultDatafields($email, $websiteId);
                break;
        }
    }
private function updateDatafieldsByType($type, $email, $websiteId)
    {
        switch ($type) {
            case self::AUTOMATION_TYPE_NEW_ORDER:
            case self::AUTOMATION_TYPE_NEW_GUEST_ORDER:
            case self::ORDER_STATUS_AUTOMATION:
            case self::AUTOMATION_TYPE_CUSTOMER_FIRST_ORDER:
                $this->updateNewOrderDatafields($websiteId);
                break;
            case self::AUTOMATION_TYPE_ABANDONED_CART_PROGRAM_ENROLMENT:
                $this->updateAbandoned->updateAbandonedCartDatafields($email, $websiteId, $this->typeId, $this->storeName);
            default:
                $this->updateDefaultDatafields($email, $websiteId);
                break;
        }
    }
private function updateDatafieldsByType ( $ type , $ email , $ websiteId ) { switch ( $ type ) { case self :: AUTOMATION_TYPE_NEW_ORDER : case self :: AUTOMATION_TYPE_NEW_GUEST_ORDER : case self :: ORDER_STATUS_AUTOMATION : case self :: AUTOMATION_TYPE_CUSTOMER_FIRST_ORDER : $ this -> updateNewOrderDatafields ( $ websiteId ) ; break ; case self :: AUTOMATION_TYPE_ABANDONED_CART_PROGRAM_ENROLMENT : $ this -> updateAbandoned -> updateAbandonedCartDatafields ( $ email , $ websiteId , $ this -> typeId , $ this -> storeName ) ; default : $ this -> updateDefaultDatafields ( $ email , $ websiteId ) ; break ; } }
Update single contact datafields for this automation type.

@param string $type
@param string $email
@param int $websiteId

@return null
@throws \Magento\Framework\Exception\LocalizedException
Update single contact datafields for this automation type .