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 @@
{
".": "3.23.0"
".": "3.24.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: 115
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-028b94908fa562ed9c31c1137078f958f859e79b33b8fddbd64934e1bb4ffd32.yml
openapi_spec_hash: e9a8403fd1da4edf627451a88ba27a55
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-fee4c7438579fd72ae7c08ad11cc502da279ad3cccfe2235b18afcacc91ad0d9.yml
openapi_spec_hash: dc9d553a388715ba22d873aee54a3ed1
config_hash: 1e2186b09e57d7d27b6ab5c8e6410b31
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 3.24.0 (2025-06-04)

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

### Features

* **api:** api update ([4e8a240](https://github.com/orbcorp/orb-python/commit/4e8a2406e262ffcb459d2b1bbac33c40f2a785a6))
* **api:** api update ([46147bc](https://github.com/orbcorp/orb-python/commit/46147bca3aac31572571312652965f1c84cd07ee))

## 3.23.0 (2025-06-03)

Full Changelog: [v3.22.0...v3.23.0](https://github.com/orbcorp/orb-python/compare/v3.22.0...v3.23.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 = "3.23.0"
version = "3.24.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__ = "3.23.0" # x-release-please-version
__version__ = "3.24.0" # x-release-please-version
24 changes: 16 additions & 8 deletions src/orb/resources/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,9 +1368,10 @@ def redeem_coupon(
subscription_id: str,
*,
change_option: Literal["requested_date", "end_of_subscription_term", "immediate"],
coupon_id: str,
allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN,
change_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
coupon_id: Optional[str] | NotGiven = NOT_GIVEN,
coupon_redemption_code: Optional[str] | NotGiven = NOT_GIVEN,
# 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.
extra_headers: Headers | None = None,
Expand All @@ -1383,15 +1384,17 @@ def redeem_coupon(
Redeem a coupon effective at a given time.

Args:
coupon_id: Coupon ID to be redeemed for this subscription.

allow_invoice_credit_or_void: If false, this request will fail if it would void an issued invoice or create a
credit note. Consider using this as a safety mechanism if you do not expect
existing invoices to be changed.

change_date: The date that the coupon discount should take effect. This parameter can only be
passed if the `change_option` is `requested_date`.

coupon_id: Coupon ID to be redeemed for this subscription.

coupon_redemption_code: Redemption code of the coupon to be redeemed for this subscription.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -1409,9 +1412,10 @@ def redeem_coupon(
body=maybe_transform(
{
"change_option": change_option,
"coupon_id": coupon_id,
"allow_invoice_credit_or_void": allow_invoice_credit_or_void,
"change_date": change_date,
"coupon_id": coupon_id,
"coupon_redemption_code": coupon_redemption_code,
},
subscription_redeem_coupon_params.SubscriptionRedeemCouponParams,
),
Expand Down Expand Up @@ -3454,9 +3458,10 @@ async def redeem_coupon(
subscription_id: str,
*,
change_option: Literal["requested_date", "end_of_subscription_term", "immediate"],
coupon_id: str,
allow_invoice_credit_or_void: Optional[bool] | NotGiven = NOT_GIVEN,
change_date: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
coupon_id: Optional[str] | NotGiven = NOT_GIVEN,
coupon_redemption_code: Optional[str] | NotGiven = NOT_GIVEN,
# 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.
extra_headers: Headers | None = None,
Expand All @@ -3469,15 +3474,17 @@ async def redeem_coupon(
Redeem a coupon effective at a given time.

Args:
coupon_id: Coupon ID to be redeemed for this subscription.

allow_invoice_credit_or_void: If false, this request will fail if it would void an issued invoice or create a
credit note. Consider using this as a safety mechanism if you do not expect
existing invoices to be changed.

change_date: The date that the coupon discount should take effect. This parameter can only be
passed if the `change_option` is `requested_date`.

coupon_id: Coupon ID to be redeemed for this subscription.

coupon_redemption_code: Redemption code of the coupon to be redeemed for this subscription.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -3495,9 +3502,10 @@ async def redeem_coupon(
body=await async_maybe_transform(
{
"change_option": change_option,
"coupon_id": coupon_id,
"allow_invoice_credit_or_void": allow_invoice_credit_or_void,
"change_date": change_date,
"coupon_id": coupon_id,
"coupon_redemption_code": coupon_redemption_code,
},
subscription_redeem_coupon_params.SubscriptionRedeemCouponParams,
),
Expand Down
Loading