itemDelivery example

$childItem->setCover($cover);

        return $item;
    }

    /** * @param array<string, mixed> $payload */
    private static function payloadCart(string $id, array $payload): Cart
    {
        $cart = (new Cart('test'))->add(self::payloadItem($id$payload));
        $cart->addDeliveries(self::itemDelivery(self::payloadItem($id$payload)));

        return $cart;
    }

    private static function coverCart(string $id, ?string $thumbnailString, bool $skipCover = false): Cart
    {
        $cart = (new Cart('test'))->add(self::coverItem($id$thumbnailString$skipCover));
        $cart->addDeliveries(self::itemDelivery(self::coverItem($id$thumbnailString$skipCover)));

        return $cart;
    }

    
Home | Imprint | This part of the site doesn't use cookies.