Skip to content
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 @@
{
".": "4.18.0"
".": "4.19.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 118
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-42aa43f3893eef31a351e066bf0cf8c56da8c857ccbb45eb7dd58739ad43bd86.yml
openapi_spec_hash: e6b8c1e707036539d88a7b79af864a49
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c075f748a7de8ecdccf11a8f2374682b0efd84f1318147274a838bf2fdd73b58.yml
openapi_spec_hash: ae918b8f348f1b7d3252a59dac36c453
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.19.0 (2025-09-29)

Full Changelog: [v4.18.0...v4.19.0](https://github.com/orbcorp/orb-python/compare/v4.18.0...v4.19.0)

### Features

* **api:** api update ([366b8ed](https://github.com/orbcorp/orb-python/commit/366b8edb91b4f8a8b897b22d2110ddd496fc5aa9))

## 4.18.0 (2025-09-19)

Full Changelog: [v4.17.0...v4.18.0](https://github.com/orbcorp/orb-python/compare/v4.17.0...v4.18.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "orb-billing"
version = "4.18.0"
version = "4.19.0"
description = "The official Python library for the orb API"
dynamic = ["readme"]
license = "Apache-2.0"
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__ = "4.18.0" # x-release-please-version
__version__ = "4.19.0" # x-release-please-version
16 changes: 14 additions & 2 deletions src/orb/resources/subscription_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def apply(
subscription_change_id: str,
*,
description: Optional[str] | Omit = omit,
mark_as_paid: Optional[bool] | Omit = omit,
previously_collected_amount: Optional[str] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -107,7 +108,11 @@ def apply(
Args:
description: Description to apply to the balance transaction representing this credit.

previously_collected_amount: Amount already collected to apply to the customer's balance.
mark_as_paid: Mark all pending invoices that are payable as paid. If amount is also provided,
mark as paid and credit the difference to the customer's balance.

previously_collected_amount: Amount already collected to apply to the customer's balance. If mark_as_paid is
also provided, credit the difference to the customer's balance.

extra_headers: Send extra headers

Expand All @@ -128,6 +133,7 @@ def apply(
body=maybe_transform(
{
"description": description,
"mark_as_paid": mark_as_paid,
"previously_collected_amount": previously_collected_amount,
},
subscription_change_apply_params.SubscriptionChangeApplyParams,
Expand Down Expand Up @@ -256,6 +262,7 @@ async def apply(
subscription_change_id: str,
*,
description: Optional[str] | Omit = omit,
mark_as_paid: Optional[bool] | Omit = omit,
previously_collected_amount: Optional[str] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -274,7 +281,11 @@ async def apply(
Args:
description: Description to apply to the balance transaction representing this credit.

previously_collected_amount: Amount already collected to apply to the customer's balance.
mark_as_paid: Mark all pending invoices that are payable as paid. If amount is also provided,
mark as paid and credit the difference to the customer's balance.

previously_collected_amount: Amount already collected to apply to the customer's balance. If mark_as_paid is
also provided, credit the difference to the customer's balance.

extra_headers: Send extra headers

Expand All @@ -295,6 +306,7 @@ async def apply(
body=await async_maybe_transform(
{
"description": description,
"mark_as_paid": mark_as_paid,
"previously_collected_amount": previously_collected_amount,
},
subscription_change_apply_params.SubscriptionChangeApplyParams,
Expand Down
13 changes: 12 additions & 1 deletion src/orb/types/subscription_change_apply_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,16 @@ class SubscriptionChangeApplyParams(TypedDict, total=False):
description: Optional[str]
"""Description to apply to the balance transaction representing this credit."""

mark_as_paid: Optional[bool]
"""Mark all pending invoices that are payable as paid.

If amount is also provided, mark as paid and credit the difference to the
customer's balance.
"""

previously_collected_amount: Optional[str]
"""Amount already collected to apply to the customer's balance."""
"""Amount already collected to apply to the customer's balance.

If mark_as_paid is also provided, credit the difference to the customer's
balance.
"""
2 changes: 2 additions & 0 deletions tests/api_resources/test_subscription_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def test_method_apply_with_all_params(self, client: Orb) -> None:
subscription_change = client.subscription_changes.apply(
subscription_change_id="subscription_change_id",
description="description",
mark_as_paid=True,
previously_collected_amount="previously_collected_amount",
)
assert_matches_type(SubscriptionChangeApplyResponse, subscription_change, path=["response"])
Expand Down Expand Up @@ -208,6 +209,7 @@ async def test_method_apply_with_all_params(self, async_client: AsyncOrb) -> Non
subscription_change = await async_client.subscription_changes.apply(
subscription_change_id="subscription_change_id",
description="description",
mark_as_paid=True,
previously_collected_amount="previously_collected_amount",
)
assert_matches_type(SubscriptionChangeApplyResponse, subscription_change, path=["response"])
Expand Down