# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

import os
from typing import Any, cast

import pytest

from ali_test_2 import AliTest2, AsyncAliTest2
from tests.utils import assert_matches_type
from ali_test_2.types.api.v2.customers import (
    LotteryEntry,
    LotteryEntryAlohomoraResponse,
    LotteryEntryUpdateBatchResponse,
    LotteryEntryRetrieveLotteryEntriesResponse,
)

base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")


class TestLotteryEntries:
    parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

    @pytest.mark.skip()
    @parametrize
    def test_method_update(self, client: AliTest2) -> None:
        lottery_entry = client.api.v2.customers.lottery_entries.update(
            lottery_entry_id=0,
            customer_id="customerId",
        )
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_method_update_with_all_params(self, client: AliTest2) -> None:
        lottery_entry = client.api.v2.customers.lottery_entries.update(
            lottery_entry_id=0,
            customer_id="customerId",
            email="email",
            pickup_name="pickupName",
            shared_on_facebook=True,
            shared_on_instagram=True,
            shared_on_twitter=True,
            status="LOTTERY_DECLINED",
        )
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_raw_response_update(self, client: AliTest2) -> None:
        response = client.api.v2.customers.lottery_entries.with_raw_response.update(
            lottery_entry_id=0,
            customer_id="customerId",
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = response.parse()
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_streaming_response_update(self, client: AliTest2) -> None:
        with client.api.v2.customers.lottery_entries.with_streaming_response.update(
            lottery_entry_id=0,
            customer_id="customerId",
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = response.parse()
            assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    def test_path_params_update(self, client: AliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            client.api.v2.customers.lottery_entries.with_raw_response.update(
                lottery_entry_id=0,
                customer_id="",
            )

    @pytest.mark.skip()
    @parametrize
    def test_method_alohomora(self, client: AliTest2) -> None:
        lottery_entry = client.api.v2.customers.lottery_entries.alohomora(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_ids=[0],
        )
        assert_matches_type(LotteryEntryAlohomoraResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_raw_response_alohomora(self, client: AliTest2) -> None:
        response = client.api.v2.customers.lottery_entries.with_raw_response.alohomora(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_ids=[0],
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = response.parse()
        assert_matches_type(LotteryEntryAlohomoraResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_streaming_response_alohomora(self, client: AliTest2) -> None:
        with client.api.v2.customers.lottery_entries.with_streaming_response.alohomora(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_ids=[0],
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = response.parse()
            assert_matches_type(LotteryEntryAlohomoraResponse, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    def test_path_params_alohomora(self, client: AliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            client.api.v2.customers.lottery_entries.with_raw_response.alohomora(
                customer_id="",
                country_code="1",
                email="email",
                num_seats=0,
                phone="+1 (333) 333-3333",
                pickup_name="John Doe",
                showtime_ids=[0],
            )

    @pytest.mark.skip()
    @parametrize
    def test_method_lottery_entries(self, client: AliTest2) -> None:
        lottery_entry = client.api.v2.customers.lottery_entries.lottery_entries(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_id=0,
        )
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_raw_response_lottery_entries(self, client: AliTest2) -> None:
        response = client.api.v2.customers.lottery_entries.with_raw_response.lottery_entries(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_id=0,
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = response.parse()
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_streaming_response_lottery_entries(self, client: AliTest2) -> None:
        with client.api.v2.customers.lottery_entries.with_streaming_response.lottery_entries(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_id=0,
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = response.parse()
            assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    def test_path_params_lottery_entries(self, client: AliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            client.api.v2.customers.lottery_entries.with_raw_response.lottery_entries(
                customer_id="",
                country_code="1",
                email="email",
                num_seats=0,
                phone="+1 (333) 333-3333",
                pickup_name="John Doe",
                showtime_id=0,
            )

    @pytest.mark.skip()
    @parametrize
    def test_method_resend_confirmation_email(self, client: AliTest2) -> None:
        lottery_entry = client.api.v2.customers.lottery_entries.resend_confirmation_email(
            lottery_entry_id=0,
            customer_id="customerId",
        )
        assert lottery_entry is None

    @pytest.mark.skip()
    @parametrize
    def test_raw_response_resend_confirmation_email(self, client: AliTest2) -> None:
        response = client.api.v2.customers.lottery_entries.with_raw_response.resend_confirmation_email(
            lottery_entry_id=0,
            customer_id="customerId",
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = response.parse()
        assert lottery_entry is None

    @pytest.mark.skip()
    @parametrize
    def test_streaming_response_resend_confirmation_email(self, client: AliTest2) -> None:
        with client.api.v2.customers.lottery_entries.with_streaming_response.resend_confirmation_email(
            lottery_entry_id=0,
            customer_id="customerId",
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = response.parse()
            assert lottery_entry is None

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    def test_path_params_resend_confirmation_email(self, client: AliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            client.api.v2.customers.lottery_entries.with_raw_response.resend_confirmation_email(
                lottery_entry_id=0,
                customer_id="",
            )

    @pytest.mark.skip()
    @parametrize
    def test_method_retrieve_lottery_entries(self, client: AliTest2) -> None:
        lottery_entry = client.api.v2.customers.lottery_entries.retrieve_lottery_entries(
            "customerId",
        )
        assert_matches_type(LotteryEntryRetrieveLotteryEntriesResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_raw_response_retrieve_lottery_entries(self, client: AliTest2) -> None:
        response = client.api.v2.customers.lottery_entries.with_raw_response.retrieve_lottery_entries(
            "customerId",
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = response.parse()
        assert_matches_type(LotteryEntryRetrieveLotteryEntriesResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_streaming_response_retrieve_lottery_entries(self, client: AliTest2) -> None:
        with client.api.v2.customers.lottery_entries.with_streaming_response.retrieve_lottery_entries(
            "customerId",
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = response.parse()
            assert_matches_type(LotteryEntryRetrieveLotteryEntriesResponse, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    def test_path_params_retrieve_lottery_entries(self, client: AliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            client.api.v2.customers.lottery_entries.with_raw_response.retrieve_lottery_entries(
                "",
            )

    @pytest.mark.skip()
    @parametrize
    def test_method_update_batch(self, client: AliTest2) -> None:
        lottery_entry = client.api.v2.customers.lottery_entries.update_batch(
            customer_id="customerId",
            ids=[0],
        )
        assert_matches_type(LotteryEntryUpdateBatchResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_method_update_batch_with_all_params(self, client: AliTest2) -> None:
        lottery_entry = client.api.v2.customers.lottery_entries.update_batch(
            customer_id="customerId",
            ids=[0],
            shared_on_facebook=True,
            shared_on_instagram=True,
            shared_on_twitter=True,
        )
        assert_matches_type(LotteryEntryUpdateBatchResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_raw_response_update_batch(self, client: AliTest2) -> None:
        response = client.api.v2.customers.lottery_entries.with_raw_response.update_batch(
            customer_id="customerId",
            ids=[0],
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = response.parse()
        assert_matches_type(LotteryEntryUpdateBatchResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    def test_streaming_response_update_batch(self, client: AliTest2) -> None:
        with client.api.v2.customers.lottery_entries.with_streaming_response.update_batch(
            customer_id="customerId",
            ids=[0],
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = response.parse()
            assert_matches_type(LotteryEntryUpdateBatchResponse, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    def test_path_params_update_batch(self, client: AliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            client.api.v2.customers.lottery_entries.with_raw_response.update_batch(
                customer_id="",
                ids=[0],
            )


class TestAsyncLotteryEntries:
    parametrize = pytest.mark.parametrize(
        "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
    )

    @pytest.mark.skip()
    @parametrize
    async def test_method_update(self, async_client: AsyncAliTest2) -> None:
        lottery_entry = await async_client.api.v2.customers.lottery_entries.update(
            lottery_entry_id=0,
            customer_id="customerId",
        )
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_method_update_with_all_params(self, async_client: AsyncAliTest2) -> None:
        lottery_entry = await async_client.api.v2.customers.lottery_entries.update(
            lottery_entry_id=0,
            customer_id="customerId",
            email="email",
            pickup_name="pickupName",
            shared_on_facebook=True,
            shared_on_instagram=True,
            shared_on_twitter=True,
            status="LOTTERY_DECLINED",
        )
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_raw_response_update(self, async_client: AsyncAliTest2) -> None:
        response = await async_client.api.v2.customers.lottery_entries.with_raw_response.update(
            lottery_entry_id=0,
            customer_id="customerId",
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = await response.parse()
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_streaming_response_update(self, async_client: AsyncAliTest2) -> None:
        async with async_client.api.v2.customers.lottery_entries.with_streaming_response.update(
            lottery_entry_id=0,
            customer_id="customerId",
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = await response.parse()
            assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    async def test_path_params_update(self, async_client: AsyncAliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            await async_client.api.v2.customers.lottery_entries.with_raw_response.update(
                lottery_entry_id=0,
                customer_id="",
            )

    @pytest.mark.skip()
    @parametrize
    async def test_method_alohomora(self, async_client: AsyncAliTest2) -> None:
        lottery_entry = await async_client.api.v2.customers.lottery_entries.alohomora(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_ids=[0],
        )
        assert_matches_type(LotteryEntryAlohomoraResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_raw_response_alohomora(self, async_client: AsyncAliTest2) -> None:
        response = await async_client.api.v2.customers.lottery_entries.with_raw_response.alohomora(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_ids=[0],
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = await response.parse()
        assert_matches_type(LotteryEntryAlohomoraResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_streaming_response_alohomora(self, async_client: AsyncAliTest2) -> None:
        async with async_client.api.v2.customers.lottery_entries.with_streaming_response.alohomora(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_ids=[0],
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = await response.parse()
            assert_matches_type(LotteryEntryAlohomoraResponse, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    async def test_path_params_alohomora(self, async_client: AsyncAliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            await async_client.api.v2.customers.lottery_entries.with_raw_response.alohomora(
                customer_id="",
                country_code="1",
                email="email",
                num_seats=0,
                phone="+1 (333) 333-3333",
                pickup_name="John Doe",
                showtime_ids=[0],
            )

    @pytest.mark.skip()
    @parametrize
    async def test_method_lottery_entries(self, async_client: AsyncAliTest2) -> None:
        lottery_entry = await async_client.api.v2.customers.lottery_entries.lottery_entries(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_id=0,
        )
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_raw_response_lottery_entries(self, async_client: AsyncAliTest2) -> None:
        response = await async_client.api.v2.customers.lottery_entries.with_raw_response.lottery_entries(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_id=0,
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = await response.parse()
        assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_streaming_response_lottery_entries(self, async_client: AsyncAliTest2) -> None:
        async with async_client.api.v2.customers.lottery_entries.with_streaming_response.lottery_entries(
            customer_id="customerId",
            country_code="1",
            email="email",
            num_seats=0,
            phone="+1 (333) 333-3333",
            pickup_name="John Doe",
            showtime_id=0,
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = await response.parse()
            assert_matches_type(LotteryEntry, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    async def test_path_params_lottery_entries(self, async_client: AsyncAliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            await async_client.api.v2.customers.lottery_entries.with_raw_response.lottery_entries(
                customer_id="",
                country_code="1",
                email="email",
                num_seats=0,
                phone="+1 (333) 333-3333",
                pickup_name="John Doe",
                showtime_id=0,
            )

    @pytest.mark.skip()
    @parametrize
    async def test_method_resend_confirmation_email(self, async_client: AsyncAliTest2) -> None:
        lottery_entry = await async_client.api.v2.customers.lottery_entries.resend_confirmation_email(
            lottery_entry_id=0,
            customer_id="customerId",
        )
        assert lottery_entry is None

    @pytest.mark.skip()
    @parametrize
    async def test_raw_response_resend_confirmation_email(self, async_client: AsyncAliTest2) -> None:
        response = await async_client.api.v2.customers.lottery_entries.with_raw_response.resend_confirmation_email(
            lottery_entry_id=0,
            customer_id="customerId",
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = await response.parse()
        assert lottery_entry is None

    @pytest.mark.skip()
    @parametrize
    async def test_streaming_response_resend_confirmation_email(self, async_client: AsyncAliTest2) -> None:
        async with async_client.api.v2.customers.lottery_entries.with_streaming_response.resend_confirmation_email(
            lottery_entry_id=0,
            customer_id="customerId",
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = await response.parse()
            assert lottery_entry is None

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    async def test_path_params_resend_confirmation_email(self, async_client: AsyncAliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            await async_client.api.v2.customers.lottery_entries.with_raw_response.resend_confirmation_email(
                lottery_entry_id=0,
                customer_id="",
            )

    @pytest.mark.skip()
    @parametrize
    async def test_method_retrieve_lottery_entries(self, async_client: AsyncAliTest2) -> None:
        lottery_entry = await async_client.api.v2.customers.lottery_entries.retrieve_lottery_entries(
            "customerId",
        )
        assert_matches_type(LotteryEntryRetrieveLotteryEntriesResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_raw_response_retrieve_lottery_entries(self, async_client: AsyncAliTest2) -> None:
        response = await async_client.api.v2.customers.lottery_entries.with_raw_response.retrieve_lottery_entries(
            "customerId",
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = await response.parse()
        assert_matches_type(LotteryEntryRetrieveLotteryEntriesResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_streaming_response_retrieve_lottery_entries(self, async_client: AsyncAliTest2) -> None:
        async with async_client.api.v2.customers.lottery_entries.with_streaming_response.retrieve_lottery_entries(
            "customerId",
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = await response.parse()
            assert_matches_type(LotteryEntryRetrieveLotteryEntriesResponse, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    async def test_path_params_retrieve_lottery_entries(self, async_client: AsyncAliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            await async_client.api.v2.customers.lottery_entries.with_raw_response.retrieve_lottery_entries(
                "",
            )

    @pytest.mark.skip()
    @parametrize
    async def test_method_update_batch(self, async_client: AsyncAliTest2) -> None:
        lottery_entry = await async_client.api.v2.customers.lottery_entries.update_batch(
            customer_id="customerId",
            ids=[0],
        )
        assert_matches_type(LotteryEntryUpdateBatchResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_method_update_batch_with_all_params(self, async_client: AsyncAliTest2) -> None:
        lottery_entry = await async_client.api.v2.customers.lottery_entries.update_batch(
            customer_id="customerId",
            ids=[0],
            shared_on_facebook=True,
            shared_on_instagram=True,
            shared_on_twitter=True,
        )
        assert_matches_type(LotteryEntryUpdateBatchResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_raw_response_update_batch(self, async_client: AsyncAliTest2) -> None:
        response = await async_client.api.v2.customers.lottery_entries.with_raw_response.update_batch(
            customer_id="customerId",
            ids=[0],
        )

        assert response.is_closed is True
        assert response.http_request.headers.get("X-Stainless-Lang") == "python"
        lottery_entry = await response.parse()
        assert_matches_type(LotteryEntryUpdateBatchResponse, lottery_entry, path=["response"])

    @pytest.mark.skip()
    @parametrize
    async def test_streaming_response_update_batch(self, async_client: AsyncAliTest2) -> None:
        async with async_client.api.v2.customers.lottery_entries.with_streaming_response.update_batch(
            customer_id="customerId",
            ids=[0],
        ) as response:
            assert not response.is_closed
            assert response.http_request.headers.get("X-Stainless-Lang") == "python"

            lottery_entry = await response.parse()
            assert_matches_type(LotteryEntryUpdateBatchResponse, lottery_entry, path=["response"])

        assert cast(Any, response.is_closed) is True

    @pytest.mark.skip()
    @parametrize
    async def test_path_params_update_batch(self, async_client: AsyncAliTest2) -> None:
        with pytest.raises(ValueError, match=r"Expected a non-empty value for `customer_id` but received ''"):
            await async_client.api.v2.customers.lottery_entries.with_raw_response.update_batch(
                customer_id="",
                ids=[0],
            )
