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.33.1"
".": "4.34.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-d1abf71a1a70a43bdcc4da7104dabcbd67aa7e2d3e6cf21e33f50904b6997bb2.yml
openapi_spec_hash: 28b0b31a997588cf3692458889321e1b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d74790c0b5540235e8387ccad7b806c11bcbb968fbdf99ea7dfbfc004bceb9dc.yml
openapi_spec_hash: eae212fa0114d8c3b4293c35f6ed7f7f
config_hash: dd4343ce95871032ef6e0735a4ca038c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.34.0 (2025-11-03)

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

### Features

* **api:** api update ([5859f81](https://github.com/orbcorp/orb-python/commit/5859f81b67cbdedc0911548f06121b5171bb924f))

## 4.33.1 (2025-11-03)

Full Changelog: [v4.33.0...v4.33.1](https://github.com/orbcorp/orb-python/compare/v4.33.0...v4.33.1)
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.33.1"
version = "4.34.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.33.1" # x-release-please-version
__version__ = "4.34.0" # x-release-please-version
26 changes: 6 additions & 20 deletions src/orb/resources/beta/beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,9 @@ def fetch_plan_version(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PlanVersion:
"""This API endpoint is in beta and its interface may change.
"""This endpoint is used to fetch a plan version.

It is recommended for
use only in test mode.

This endpoint is used to fetch a plan version. It returns the phases, prices,
It returns the phases, prices,
and adjustments present on this version of the plan.

Args:
Expand Down Expand Up @@ -183,11 +180,7 @@ def set_default_plan_version(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> Plan:
"""This API endpoint is in beta and its interface may change.

It is recommended for
use only in test mode.

"""
This endpoint allows setting the default version of a plan.

Args:
Expand Down Expand Up @@ -334,12 +327,9 @@ async def fetch_plan_version(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PlanVersion:
"""This API endpoint is in beta and its interface may change.
"""This endpoint is used to fetch a plan version.

It is recommended for
use only in test mode.

This endpoint is used to fetch a plan version. It returns the phases, prices,
It returns the phases, prices,
and adjustments present on this version of the plan.

Args:
Expand Down Expand Up @@ -376,11 +366,7 @@ async def set_default_plan_version(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> Plan:
"""This API endpoint is in beta and its interface may change.

It is recommended for
use only in test mode.

"""
This endpoint allows setting the default version of a plan.

Args:
Expand Down
26 changes: 6 additions & 20 deletions src/orb/resources/beta/external_plan_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,9 @@ def fetch_plan_version(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PlanVersion:
"""This API endpoint is in beta and its interface may change.
"""This endpoint is used to fetch a plan version.

It is recommended for
use only in test mode.

This endpoint is used to fetch a plan version. It returns the phases, prices,
It returns the phases, prices,
and adjustments present on this version of the plan.

Args:
Expand Down Expand Up @@ -173,11 +170,7 @@ def set_default_plan_version(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> Plan:
"""This API endpoint is in beta and its interface may change.

It is recommended for
use only in test mode.

"""
This endpoint allows setting the default version of a plan.

Args:
Expand Down Expand Up @@ -323,12 +316,9 @@ async def fetch_plan_version(
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = not_given,
) -> PlanVersion:
"""This API endpoint is in beta and its interface may change.
"""This endpoint is used to fetch a plan version.

It is recommended for
use only in test mode.

This endpoint is used to fetch a plan version. It returns the phases, prices,
It returns the phases, prices,
and adjustments present on this version of the plan.

Args:
Expand Down Expand Up @@ -365,11 +355,7 @@ async def set_default_plan_version(
timeout: float | httpx.Timeout | None | NotGiven = not_given,
idempotency_key: str | None = None,
) -> Plan:
"""This API endpoint is in beta and its interface may change.

It is recommended for
use only in test mode.

"""
This endpoint allows setting the default version of a plan.

Args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,6 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
saved payment method.
"""

net_terms: Required[Optional[int]]
"""The net terms determines the due date of the invoice.

Due date is calculated based on the invoice or issuance date, depending on the
account's configured due date calculation method. A value of '0' here represents
that the invoice is due on issue, whereas a value of '30' represents that the
customer has 30 days to pay the invoice. Do not set this field if you want to
set a custom due date.
"""

custom_due_date: Annotated[Union[Union[str, date], Union[str, datetime], None], PropertyInfo(format="iso8601")]
"""An optional custom due date for the invoice.

Expand All @@ -132,6 +122,16 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
memo: Optional[str]
"""An optional memo to display on the invoice."""

net_terms: Optional[int]
"""The net terms determines the due date of the invoice.

Due date is calculated based on the invoice or issuance date, depending on the
account's configured due date calculation method. A value of '0' here represents
that the invoice is due on issue, whereas a value of '30' represents that the
customer has 30 days to pay the invoice. Do not set this field if you want to
set a custom due date.
"""

require_successful_payment: bool
"""
If true, the new credit block will require that the corresponding invoice is
Expand Down
20 changes: 10 additions & 10 deletions src/orb/types/customers/credits/ledger_create_entry_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,6 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
saved payment method.
"""

net_terms: Required[Optional[int]]
"""The net terms determines the due date of the invoice.

Due date is calculated based on the invoice or issuance date, depending on the
account's configured due date calculation method. A value of '0' here represents
that the invoice is due on issue, whereas a value of '30' represents that the
customer has 30 days to pay the invoice. Do not set this field if you want to
set a custom due date.
"""

custom_due_date: Annotated[Union[Union[str, date], Union[str, datetime], None], PropertyInfo(format="iso8601")]
"""An optional custom due date for the invoice.

Expand All @@ -132,6 +122,16 @@ class AddIncrementCreditLedgerEntryRequestParamsInvoiceSettings(TypedDict, total
memo: Optional[str]
"""An optional memo to display on the invoice."""

net_terms: Optional[int]
"""The net terms determines the due date of the invoice.

Due date is calculated based on the invoice or issuance date, depending on the
account's configured due date calculation method. A value of '0' here represents
that the invoice is due on issue, whereas a value of '30' represents that the
customer has 30 days to pay the invoice. Do not set this field if you want to
set a custom due date.
"""

require_successful_payment: bool
"""
If true, the new credit block will require that the corresponding invoice is
Expand Down
8 changes: 4 additions & 4 deletions tests/api_resources/customers/credits/test_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ def test_method_create_entry_with_all_params_overload_1(self, client: Orb) -> No
],
invoice_settings={
"auto_collection": True,
"net_terms": 0,
"custom_due_date": parse_date("2019-12-27"),
"invoice_date": parse_date("2019-12-27"),
"item_id": "item_id",
"memo": "memo",
"net_terms": 0,
"require_successful_payment": True,
},
metadata={"foo": "string"},
Expand Down Expand Up @@ -430,11 +430,11 @@ def test_method_create_entry_by_external_id_with_all_params_overload_1(self, cli
],
invoice_settings={
"auto_collection": True,
"net_terms": 0,
"custom_due_date": parse_date("2019-12-27"),
"invoice_date": parse_date("2019-12-27"),
"item_id": "item_id",
"memo": "memo",
"net_terms": 0,
"require_successful_payment": True,
},
metadata={"foo": "string"},
Expand Down Expand Up @@ -869,11 +869,11 @@ async def test_method_create_entry_with_all_params_overload_1(self, async_client
],
invoice_settings={
"auto_collection": True,
"net_terms": 0,
"custom_due_date": parse_date("2019-12-27"),
"invoice_date": parse_date("2019-12-27"),
"item_id": "item_id",
"memo": "memo",
"net_terms": 0,
"require_successful_payment": True,
},
metadata={"foo": "string"},
Expand Down Expand Up @@ -1192,11 +1192,11 @@ async def test_method_create_entry_by_external_id_with_all_params_overload_1(sel
],
invoice_settings={
"auto_collection": True,
"net_terms": 0,
"custom_due_date": parse_date("2019-12-27"),
"invoice_date": parse_date("2019-12-27"),
"item_id": "item_id",
"memo": "memo",
"net_terms": 0,
"require_successful_payment": True,
},
metadata={"foo": "string"},
Expand Down