Skip to content

release: 3.17.0 #588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.16.0"
".": "3.17.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-979330185e8fda7b2bc2440075fe81c66132fc87ff3c548e93dd05db35ba3172.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-aeb94d91af916dbff0132ee7c4501df9223609b19fef0398a1a495e7a432ee36.yml
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 3.17.0 (2025-03-14)

Full Changelog: [v3.16.0...v3.17.0](https://github.com/orbcorp/orb-python/compare/v3.16.0...v3.17.0)

### Features

* **api:** api update ([#590](https://github.com/orbcorp/orb-python/issues/590)) ([1848cf8](https://github.com/orbcorp/orb-python/commit/1848cf80341718b42dd0917d6a4fb06dca89f287))


### Chores

* **api:** correctly support ExternalCustomerID array filter on Subscriptions.List ([#589](https://github.com/orbcorp/orb-python/issues/589)) ([90163b2](https://github.com/orbcorp/orb-python/commit/90163b24a6491e3681238288a19fe29a319cb7e0))
* **internal:** remove extra empty newlines ([#587](https://github.com/orbcorp/orb-python/issues/587)) ([55cc8c8](https://github.com/orbcorp/orb-python/commit/55cc8c80728bb3ed890ba6755a3668bbc473e10b))

## 3.16.0 (2025-03-11)

Full Changelog: [v3.15.0...v3.16.0](https://github.com/orbcorp/orb-python/compare/v3.15.0...v3.16.0)
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "orb-billing"
version = "3.16.0"
version = "3.17.0"
description = "The official Python library for the orb API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -38,7 +38,6 @@ Homepage = "https://github.com/orbcorp/orb-python"
Repository = "https://github.com/orbcorp/orb-python"



[tool.rye]
managed = true
# version pins are in requirements-dev.lock
Expand Down Expand Up @@ -152,7 +151,6 @@ reportImplicitOverride = true
reportImportCycles = false
reportPrivateUsage = false


[tool.ruff]
line-length = 120
output-format = "grouped"
Expand Down
2 changes: 1 addition & 1 deletion src/orb/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "orb"
__version__ = "3.16.0" # x-release-please-version
__version__ = "3.17.0" # x-release-please-version
19 changes: 18 additions & 1 deletion src/orb/resources/credit_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from __future__ import annotations

from typing import Iterable, Optional
from typing import Union, Iterable, Optional
from datetime import datetime
from typing_extensions import Literal

import httpx
Expand Down Expand Up @@ -101,6 +102,10 @@ def create(
def list(
self,
*,
created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
cursor: Optional[str] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -140,6 +145,10 @@ def list(
timeout=timeout,
query=maybe_transform(
{
"created_at_gt": created_at_gt,
"created_at_gte": created_at_gte,
"created_at_lt": created_at_lt,
"created_at_lte": created_at_lte,
"cursor": cursor,
"limit": limit,
},
Expand Down Expand Up @@ -261,6 +270,10 @@ async def create(
def list(
self,
*,
created_at_gt: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
created_at_gte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
created_at_lt: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
cursor: Optional[str] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -300,6 +313,10 @@ def list(
timeout=timeout,
query=maybe_transform(
{
"created_at_gt": created_at_gt,
"created_at_gte": created_at_gte,
"created_at_lt": created_at_lt,
"created_at_lte": created_at_lte,
"cursor": cursor,
"limit": limit,
},
Expand Down
4 changes: 2 additions & 2 deletions src/orb/resources/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def list(
created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
cursor: Optional[str] | NotGiven = NOT_GIVEN,
customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN,
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
external_customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: Optional[Literal["active", "ended", "upcoming"]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -2608,7 +2608,7 @@ def list(
created_at_lte: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
cursor: Optional[str] | NotGiven = NOT_GIVEN,
customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN,
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
external_customer_id: Optional[List[str]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
status: Optional[Literal["active", "ended", "upcoming"]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down
15 changes: 13 additions & 2 deletions src/orb/types/credit_note_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,24 @@

from __future__ import annotations

from typing import Optional
from typing_extensions import TypedDict
from typing import Union, Optional
from datetime import datetime
from typing_extensions import Annotated, TypedDict

from .._utils import PropertyInfo

__all__ = ["CreditNoteListParams"]


class CreditNoteListParams(TypedDict, total=False):
created_at_gt: Annotated[Union[str, datetime, None], PropertyInfo(alias="created_at[gt]", format="iso8601")]

created_at_gte: Annotated[Union[str, datetime, None], PropertyInfo(alias="created_at[gte]", format="iso8601")]

created_at_lt: Annotated[Union[str, datetime, None], PropertyInfo(alias="created_at[lt]", format="iso8601")]

created_at_lte: Annotated[Union[str, datetime, None], PropertyInfo(alias="created_at[lte]", format="iso8601")]

cursor: Optional[str]
"""Cursor for pagination.

Expand Down
2 changes: 1 addition & 1 deletion src/orb/types/subscription_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SubscriptionListParams(TypedDict, total=False):

customer_id: Optional[List[str]]

external_customer_id: Optional[str]
external_customer_id: Optional[List[str]]

limit: int
"""The number of items to fetch. Defaults to 20."""
Expand Down
9 changes: 9 additions & 0 deletions tests/api_resources/test_credit_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from orb import Orb, AsyncOrb
from orb.types import CreditNote
from orb._utils import parse_datetime
from tests.utils import assert_matches_type
from orb.pagination import SyncPage, AsyncPage

Expand Down Expand Up @@ -86,6 +87,10 @@ def test_method_list(self, client: Orb) -> None:
@parametrize
def test_method_list_with_all_params(self, client: Orb) -> None:
credit_note = client.credit_notes.list(
created_at_gt=parse_datetime("2019-12-27T18:11:19.117Z"),
created_at_gte=parse_datetime("2019-12-27T18:11:19.117Z"),
created_at_lt=parse_datetime("2019-12-27T18:11:19.117Z"),
created_at_lte=parse_datetime("2019-12-27T18:11:19.117Z"),
cursor="cursor",
limit=1,
)
Expand Down Expand Up @@ -221,6 +226,10 @@ async def test_method_list(self, async_client: AsyncOrb) -> None:
@parametrize
async def test_method_list_with_all_params(self, async_client: AsyncOrb) -> None:
credit_note = await async_client.credit_notes.list(
created_at_gt=parse_datetime("2019-12-27T18:11:19.117Z"),
created_at_gte=parse_datetime("2019-12-27T18:11:19.117Z"),
created_at_lt=parse_datetime("2019-12-27T18:11:19.117Z"),
created_at_lte=parse_datetime("2019-12-27T18:11:19.117Z"),
cursor="cursor",
limit=1,
)
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_method_list_with_all_params(self, client: Orb) -> None:
created_at_lte=parse_datetime("2019-12-27T18:11:19.117Z"),
cursor="cursor",
customer_id=["string"],
external_customer_id="external_customer_id",
external_customer_id=["string"],
limit=1,
status="active",
)
Expand Down Expand Up @@ -1432,7 +1432,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOrb) -> None
created_at_lte=parse_datetime("2019-12-27T18:11:19.117Z"),
cursor="cursor",
customer_id=["string"],
external_customer_id="external_customer_id",
external_customer_id=["string"],
limit=1,
status="active",
)
Expand Down