Skip to content

Commit 90163b2

Browse files
chore(api): correctly support ExternalCustomerID array filter on Subscriptions.List (#589)
1 parent 55cc8c8 commit 90163b2

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎.stats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-979330185e8fda7b2bc2440075fe81c66132fc87ff3c548e93dd05db35ba3172.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e3aeba4569f0d304b27804cc2cdd9888f3f58628fe426e206ab49e164e5417bd.yml

‎src/orb/resources/subscriptions.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def list(
594594
created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
595595
cursor: Optional[str] | NotGiven = NOT_GIVEN,
596596
customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN,
597-
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
597+
external_customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN,
598598
limit: int | NotGiven = NOT_GIVEN,
599599
status: Optional[Literal["active", "ended", "upcoming"]] | NotGiven = NOT_GIVEN,
600600
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -2608,7 +2608,7 @@ def list(
26082608
created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
26092609
cursor: Optional[str] | NotGiven = NOT_GIVEN,
26102610
customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN,
2611-
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
2611+
external_customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN,
26122612
limit: int | NotGiven = NOT_GIVEN,
26132613
status: Optional[Literal["active", "ended", "upcoming"]] | NotGiven = NOT_GIVEN,
26142614
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

‎src/orb/types/subscription_list_params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SubscriptionListParams(TypedDict, total=False):
2929

3030
customer_id: Optional[List[str]]
3131

32-
external_customer_id: Optional[str]
32+
external_customer_id: Optional[List[str]]
3333

3434
limit: int
3535
"""The number of items to fetch. Defaults to 20."""

‎tests/api_resources/test_subscriptions.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def test_method_list_with_all_params(self, client: Orb) -> None:
286286
created_at_lte=parse_datetime("2019-12-27T18:11:19.117Z"),
287287
cursor="cursor",
288288
customer_id=["string"],
289-
external_customer_id="external_customer_id",
289+
external_customer_id=["string"],
290290
limit=1,
291291
status="active",
292292
)
@@ -1432,7 +1432,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOrb) -> None
14321432
created_at_lte=parse_datetime("2019-12-27T18:11:19.117Z"),
14331433
cursor="cursor",
14341434
customer_id=["string"],
1435-
external_customer_id="external_customer_id",
1435+
external_customer_id=["string"],
14361436
limit=1,
14371437
status="active",
14381438
)

0 commit comments

Comments
 (0)