src/EB/SDK/Webhook/PayloadFactory.php
public static function createSoftBounce(
        $recipientEmailAddress,
        $listExternalId,
        $recipientExternalId = null,
        $ipAddress = '127.0.0.1'
    ) {
        if ($recipientExternalId == null) {
            $recipientExternalId = rand(1, 99999);
        }

        return (new Payload())->setIpAddress($ipAddress)
            ->setAction(Type::SOFT_BOUNCE)
            ->setCampaignId(rand(1, 99999))
            ->setListExternalId($listExternalId)
            ->setReason(Type::REASON_SYSTEM_AUTOMATIC)
            ->setRecipientEmailAddress($recipientEmailAddress)
            ->setHash(md5($recipientEmailAddress))
            ->setRecipientExternalId($recipientExternalId)
            ->setTriggerDate(new \DateTime())
            ->setType(Type::SOFT_BOUNCE);
    }
public static function createSoftBounce(
        $recipientEmailAddress,
        $listExternalId,
        $recipientExternalId = null,
        $ipAddress = '127.0.0.1'
    ) {
        if ($recipientExternalId == null) {
            $recipientExternalId = rand(1, 99999);
        }

        return (new Payload())->setIpAddress($ipAddress)
            ->setAction(Type::SOFT_BOUNCE)
            ->setCampaignId(rand(1, 99999))
            ->setListExternalId($listExternalId)
            ->setReason(Type::REASON_SYSTEM_AUTOMATIC)
            ->setRecipientEmailAddress($recipientEmailAddress)
            ->setHash(md5($recipientEmailAddress))
            ->setRecipientExternalId($recipientExternalId)
            ->setTriggerDate(new \DateTime())
            ->setType(Type::SOFT_BOUNCE);
    }
public static function createSoftBounce ( $ recipientEmailAddress , $ listExternalId , $ recipientExternalId = null , $ ipAddress = '127.0.0.1' ) { if ( $ recipientExternalId == null ) { $ recipientExternalId = rand ( 1 , 99999 ) ; } return ( new Payload ( ) ) -> setIpAddress ( $ ipAddress ) -> setAction ( Type :: SOFT_BOUNCE ) -> setCampaignId ( rand ( 1 , 99999 ) ) -> setListExternalId ( $ listExternalId ) -> setReason ( Type :: REASON_SYSTEM_AUTOMATIC ) -> setRecipientEmailAddress ( $ recipientEmailAddress ) -> setHash ( md5 ( $ recipientEmailAddress ) ) -> setRecipientExternalId ( $ recipientExternalId ) -> setTriggerDate ( new \ DateTime ( ) ) -> setType ( Type :: SOFT_BOUNCE ) ; }
Creates a new Emailbidding webhook payload of soft bounce type

@param string $recipientEmailAddress
@param string $recipientExternalId
@param string $listExternalId
@param string $ipAddress

@return Payload
Creates a new Emailbidding webhook payload of soft bounce type