|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Any, Dict, List, Union, Iterable, Optional, cast |
| 5 | +from typing import Any, Dict, Union, Iterable, Optional, cast |
6 | 6 | from datetime import date, datetime |
7 | 7 | from typing_extensions import Literal |
8 | 8 |
|
|
25 | 25 | subscription_update_fixed_fee_quantity_params, |
26 | 26 | subscription_unschedule_fixed_fee_quantity_updates_params, |
27 | 27 | ) |
28 | | -from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 28 | +from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr |
29 | 29 | from .._utils import maybe_transform, async_maybe_transform |
30 | 30 | from .._compat import cached_property |
31 | 31 | from .._resource import SyncAPIResource, AsyncAPIResource |
@@ -97,7 +97,7 @@ def create( |
97 | 97 | replace_prices: Optional[Iterable[subscription_create_params.ReplacePrice]] | NotGiven = NOT_GIVEN, |
98 | 98 | start_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
99 | 99 | trial_duration_days: Optional[int] | NotGiven = NOT_GIVEN, |
100 | | - usage_customer_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 100 | + usage_customer_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
101 | 101 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
102 | 102 | # The extra values given here take precedence over values defined on the client or passed to this method. |
103 | 103 | extra_headers: Headers | None = None, |
@@ -588,8 +588,8 @@ def list( |
588 | 588 | created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
589 | 589 | created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
590 | 590 | cursor: Optional[str] | NotGiven = NOT_GIVEN, |
591 | | - customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN, |
592 | | - external_customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 591 | + customer_id: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
| 592 | + external_customer_id: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
593 | 593 | limit: int | NotGiven = NOT_GIVEN, |
594 | 594 | status: Optional[Literal["active", "ended", "upcoming"]] | NotGiven = NOT_GIVEN, |
595 | 595 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -1449,7 +1449,7 @@ def schedule_plan_change( |
1449 | 1449 | replace_prices: Optional[Iterable[subscription_schedule_plan_change_params.ReplacePrice]] |
1450 | 1450 | | NotGiven = NOT_GIVEN, |
1451 | 1451 | trial_duration_days: Optional[int] | NotGiven = NOT_GIVEN, |
1452 | | - usage_customer_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 1452 | + usage_customer_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
1453 | 1453 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
1454 | 1454 | # The extra values given here take precedence over values defined on the client or passed to this method. |
1455 | 1455 | extra_headers: Headers | None = None, |
@@ -2183,7 +2183,7 @@ async def create( |
2183 | 2183 | replace_prices: Optional[Iterable[subscription_create_params.ReplacePrice]] | NotGiven = NOT_GIVEN, |
2184 | 2184 | start_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
2185 | 2185 | trial_duration_days: Optional[int] | NotGiven = NOT_GIVEN, |
2186 | | - usage_customer_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 2186 | + usage_customer_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
2187 | 2187 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
2188 | 2188 | # The extra values given here take precedence over values defined on the client or passed to this method. |
2189 | 2189 | extra_headers: Headers | None = None, |
@@ -2674,8 +2674,8 @@ def list( |
2674 | 2674 | created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
2675 | 2675 | created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN, |
2676 | 2676 | cursor: Optional[str] | NotGiven = NOT_GIVEN, |
2677 | | - customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN, |
2678 | | - external_customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 2677 | + customer_id: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
| 2678 | + external_customer_id: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
2679 | 2679 | limit: int | NotGiven = NOT_GIVEN, |
2680 | 2680 | status: Optional[Literal["active", "ended", "upcoming"]] | NotGiven = NOT_GIVEN, |
2681 | 2681 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
@@ -3535,7 +3535,7 @@ async def schedule_plan_change( |
3535 | 3535 | replace_prices: Optional[Iterable[subscription_schedule_plan_change_params.ReplacePrice]] |
3536 | 3536 | | NotGiven = NOT_GIVEN, |
3537 | 3537 | trial_duration_days: Optional[int] | NotGiven = NOT_GIVEN, |
3538 | | - usage_customer_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 3538 | + usage_customer_ids: Optional[SequenceNotStr[str]] | NotGiven = NOT_GIVEN, |
3539 | 3539 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
3540 | 3540 | # The extra values given here take precedence over values defined on the client or passed to this method. |
3541 | 3541 | extra_headers: Headers | None = None, |
|
0 commit comments