InactiveCustomerException example

return new self(
            Response::HTTP_NOT_FOUND,
            self::WISHLIST_PRODUCT_NOT_FOUND,
            'Wishlist product with id {{ productId }} not found',
            ['productId' => $productId]
        );
    }

    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
    {
Home | Imprint | This part of the site doesn't use cookies.