CustomerOptinNotCompletedException example

public static function inactiveCustomer(string $id): ShopwareHttpException
    {
        if (!Feature::isActive('v6.6.0.0')) {
            return new InactiveCustomerException($id);
        }

        return self::customerOptinNotCompleted($id);
    }

    public static function customerOptinNotCompleted(string $id, ?string $message = null): CustomerOptinNotCompletedException
    {
        return new CustomerOptinNotCompletedException($id$message);
    }

    public static function customerAuthThrottledException(int $waitTime, ?\Throwable $e = null): CustomerAuthThrottledException
    {
        return new CustomerAuthThrottledException(
            $waitTime,
            $e
        );
    }
}
Home | Imprint | This part of the site doesn't use cookies.