Skip to content

Commit 1703727

Browse files
feat(api): api update
1 parent 166cfb3 commit 1703727

File tree

160 files changed

+3335
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+3335
-508
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-fee4c7438579fd72ae7c08ad11cc502da279ad3cccfe2235b18afcacc91ad0d9.yml
3-
openapi_spec_hash: dc9d553a388715ba22d873aee54a3ed1
4-
config_hash: 391be06f59c5754193a4880894cb7878
1+
configured_endpoints: 116
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c2a4808c828c8288c5c8dfe2fdfa51d4d7c1bcc33cacc6b859d0cf4b35ce95cc.yml
3+
openapi_spec_hash: a2b5a1bfabbd03dd1b411791576eb502
4+
config_hash: 3c3524be9607afb24d2139ce26ce5389

api.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,12 @@ Methods:
474474
Types:
475475

476476
```python
477-
from orb.types import EvaluatePriceGroup, PriceEvaluateResponse, PriceEvaluateMultipleResponse
477+
from orb.types import (
478+
EvaluatePriceGroup,
479+
PriceEvaluateResponse,
480+
PriceEvaluateMultipleResponse,
481+
PriceEvaluatePreviewEventsResponse,
482+
)
478483
```
479484

480485
Methods:
@@ -484,6 +489,7 @@ Methods:
484489
- <code title="get /prices">client.prices.<a href="./src/orb/resources/prices/prices.py">list</a>(\*\*<a href="src/orb/types/price_list_params.py">params</a>) -> <a href="./src/orb/types/shared/price.py">SyncPage[Price]</a></code>
485490
- <code title="post /prices/{price_id}/evaluate">client.prices.<a href="./src/orb/resources/prices/prices.py">evaluate</a>(price_id, \*\*<a href="src/orb/types/price_evaluate_params.py">params</a>) -> <a href="./src/orb/types/price_evaluate_response.py">PriceEvaluateResponse</a></code>
486491
- <code title="post /prices/evaluate">client.prices.<a href="./src/orb/resources/prices/prices.py">evaluate_multiple</a>(\*\*<a href="src/orb/types/price_evaluate_multiple_params.py">params</a>) -> <a href="./src/orb/types/price_evaluate_multiple_response.py">PriceEvaluateMultipleResponse</a></code>
492+
- <code title="post /prices/evaluate_preview_events">client.prices.<a href="./src/orb/resources/prices/prices.py">evaluate_preview_events</a>(\*\*<a href="src/orb/types/price_evaluate_preview_events_params.py">params</a>) -> <a href="./src/orb/types/price_evaluate_preview_events_response.py">PriceEvaluatePreviewEventsResponse</a></code>
487493
- <code title="get /prices/{price_id}">client.prices.<a href="./src/orb/resources/prices/prices.py">fetch</a>(price_id) -> <a href="./src/orb/types/shared/price.py">Price</a></code>
488494

489495
## ExternalPriceID

src/orb/resources/prices/prices.py

Lines changed: 456 additions & 36 deletions
Large diffs are not rendered by default.

src/orb/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
from .alert_create_for_subscription_params import AlertCreateForSubscriptionParams as AlertCreateForSubscriptionParams
242242
from .beta_set_default_plan_version_params import BetaSetDefaultPlanVersionParams as BetaSetDefaultPlanVersionParams
243243
from .new_subscription_package_price_param import NewSubscriptionPackagePriceParam as NewSubscriptionPackagePriceParam
244+
from .price_evaluate_preview_events_params import PriceEvaluatePreviewEventsParams as PriceEvaluatePreviewEventsParams
244245
from .subscription_fetch_schedule_response import SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse
245246
from .customer_update_by_external_id_params import CustomerUpdateByExternalIDParams as CustomerUpdateByExternalIDParams
246247
from .dimensional_price_group_create_params import (
@@ -250,6 +251,9 @@
250251
from .subscription_change_retrieve_response import (
251252
SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse,
252253
)
254+
from .price_evaluate_preview_events_response import (
255+
PriceEvaluatePreviewEventsResponse as PriceEvaluatePreviewEventsResponse,
256+
)
253257
from .new_accounting_sync_configuration_param import (
254258
NewAccountingSyncConfigurationParam as NewAccountingSyncConfigurationParam,
255259
)

src/orb/types/new_subscription_bps_price_param.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Optional
6-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Dict, Union, Optional
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

88
from .shared_params.bps_config import BPSConfig
9+
from .shared_params.unit_conversion_rate_config import UnitConversionRateConfig
10+
from .shared_params.tiered_conversion_rate_config import TieredConversionRateConfig
911
from .shared_params.new_billing_cycle_configuration import NewBillingCycleConfiguration
1012
from .shared_params.new_dimensional_price_configuration import NewDimensionalPriceConfiguration
1113

12-
__all__ = ["NewSubscriptionBPSPriceParam"]
14+
__all__ = ["NewSubscriptionBPSPriceParam", "ConversionRateConfig"]
15+
16+
ConversionRateConfig: TypeAlias = Union[UnitConversionRateConfig, TieredConversionRateConfig]
1317

1418

1519
class NewSubscriptionBPSPriceParam(TypedDict, total=False):
@@ -47,6 +51,9 @@ class NewSubscriptionBPSPriceParam(TypedDict, total=False):
4751
conversion_rate: Optional[float]
4852
"""The per unit conversion rate of the price currency to the invoicing currency."""
4953

54+
conversion_rate_config: Optional[ConversionRateConfig]
55+
"""The configuration for the rate of the price currency to the invoicing currency."""
56+
5057
currency: Optional[str]
5158
"""
5259
An ISO 4217 currency string, or custom pricing unit identifier, in which this

src/orb/types/new_subscription_bulk_bps_price_param.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Optional
6-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Dict, Union, Optional
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

88
from .shared_params.bulk_bps_config import BulkBPSConfig
9+
from .shared_params.unit_conversion_rate_config import UnitConversionRateConfig
10+
from .shared_params.tiered_conversion_rate_config import TieredConversionRateConfig
911
from .shared_params.new_billing_cycle_configuration import NewBillingCycleConfiguration
1012
from .shared_params.new_dimensional_price_configuration import NewDimensionalPriceConfiguration
1113

12-
__all__ = ["NewSubscriptionBulkBPSPriceParam"]
14+
__all__ = ["NewSubscriptionBulkBPSPriceParam", "ConversionRateConfig"]
15+
16+
ConversionRateConfig: TypeAlias = Union[UnitConversionRateConfig, TieredConversionRateConfig]
1317

1418

1519
class NewSubscriptionBulkBPSPriceParam(TypedDict, total=False):
@@ -47,6 +51,9 @@ class NewSubscriptionBulkBPSPriceParam(TypedDict, total=False):
4751
conversion_rate: Optional[float]
4852
"""The per unit conversion rate of the price currency to the invoicing currency."""
4953

54+
conversion_rate_config: Optional[ConversionRateConfig]
55+
"""The configuration for the rate of the price currency to the invoicing currency."""
56+
5057
currency: Optional[str]
5158
"""
5259
An ISO 4217 currency string, or custom pricing unit identifier, in which this

src/orb/types/new_subscription_bulk_price_param.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Optional
6-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Dict, Union, Optional
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

88
from .shared_params.bulk_config import BulkConfig
9+
from .shared_params.unit_conversion_rate_config import UnitConversionRateConfig
10+
from .shared_params.tiered_conversion_rate_config import TieredConversionRateConfig
911
from .shared_params.new_billing_cycle_configuration import NewBillingCycleConfiguration
1012
from .shared_params.new_dimensional_price_configuration import NewDimensionalPriceConfiguration
1113

12-
__all__ = ["NewSubscriptionBulkPriceParam"]
14+
__all__ = ["NewSubscriptionBulkPriceParam", "ConversionRateConfig"]
15+
16+
ConversionRateConfig: TypeAlias = Union[UnitConversionRateConfig, TieredConversionRateConfig]
1317

1418

1519
class NewSubscriptionBulkPriceParam(TypedDict, total=False):
@@ -47,6 +51,9 @@ class NewSubscriptionBulkPriceParam(TypedDict, total=False):
4751
conversion_rate: Optional[float]
4852
"""The per unit conversion rate of the price currency to the invoicing currency."""
4953

54+
conversion_rate_config: Optional[ConversionRateConfig]
55+
"""The configuration for the rate of the price currency to the invoicing currency."""
56+
5057
currency: Optional[str]
5158
"""
5259
An ISO 4217 currency string, or custom pricing unit identifier, in which this

src/orb/types/new_subscription_bulk_with_proration_price_param.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Optional
6-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Dict, Union, Optional
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8+
from .shared_params.unit_conversion_rate_config import UnitConversionRateConfig
9+
from .shared_params.tiered_conversion_rate_config import TieredConversionRateConfig
810
from .shared_params.new_billing_cycle_configuration import NewBillingCycleConfiguration
911
from .shared_params.new_dimensional_price_configuration import NewDimensionalPriceConfiguration
1012

11-
__all__ = ["NewSubscriptionBulkWithProrationPriceParam"]
13+
__all__ = ["NewSubscriptionBulkWithProrationPriceParam", "ConversionRateConfig"]
14+
15+
ConversionRateConfig: TypeAlias = Union[UnitConversionRateConfig, TieredConversionRateConfig]
1216

1317

1418
class NewSubscriptionBulkWithProrationPriceParam(TypedDict, total=False):
@@ -46,6 +50,9 @@ class NewSubscriptionBulkWithProrationPriceParam(TypedDict, total=False):
4650
conversion_rate: Optional[float]
4751
"""The per unit conversion rate of the price currency to the invoicing currency."""
4852

53+
conversion_rate_config: Optional[ConversionRateConfig]
54+
"""The configuration for the rate of the price currency to the invoicing currency."""
55+
4956
currency: Optional[str]
5057
"""
5158
An ISO 4217 currency string, or custom pricing unit identifier, in which this

src/orb/types/new_subscription_cumulative_grouped_bulk_price_param.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Optional
6-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Dict, Union, Optional
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8+
from .shared_params.unit_conversion_rate_config import UnitConversionRateConfig
9+
from .shared_params.tiered_conversion_rate_config import TieredConversionRateConfig
810
from .shared_params.new_billing_cycle_configuration import NewBillingCycleConfiguration
911
from .shared_params.new_dimensional_price_configuration import NewDimensionalPriceConfiguration
1012

11-
__all__ = ["NewSubscriptionCumulativeGroupedBulkPriceParam"]
13+
__all__ = ["NewSubscriptionCumulativeGroupedBulkPriceParam", "ConversionRateConfig"]
14+
15+
ConversionRateConfig: TypeAlias = Union[UnitConversionRateConfig, TieredConversionRateConfig]
1216

1317

1418
class NewSubscriptionCumulativeGroupedBulkPriceParam(TypedDict, total=False):
@@ -46,6 +50,9 @@ class NewSubscriptionCumulativeGroupedBulkPriceParam(TypedDict, total=False):
4650
conversion_rate: Optional[float]
4751
"""The per unit conversion rate of the price currency to the invoicing currency."""
4852

53+
conversion_rate_config: Optional[ConversionRateConfig]
54+
"""The configuration for the rate of the price currency to the invoicing currency."""
55+
4956
currency: Optional[str]
5057
"""
5158
An ISO 4217 currency string, or custom pricing unit identifier, in which this

src/orb/types/new_subscription_grouped_allocation_price_param.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Optional
6-
from typing_extensions import Literal, Required, TypedDict
5+
from typing import Dict, Union, Optional
6+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8+
from .shared_params.unit_conversion_rate_config import UnitConversionRateConfig
9+
from .shared_params.tiered_conversion_rate_config import TieredConversionRateConfig
810
from .shared_params.new_billing_cycle_configuration import NewBillingCycleConfiguration
911
from .shared_params.new_dimensional_price_configuration import NewDimensionalPriceConfiguration
1012

11-
__all__ = ["NewSubscriptionGroupedAllocationPriceParam"]
13+
__all__ = ["NewSubscriptionGroupedAllocationPriceParam", "ConversionRateConfig"]
14+
15+
ConversionRateConfig: TypeAlias = Union[UnitConversionRateConfig, TieredConversionRateConfig]
1216

1317

1418
class NewSubscriptionGroupedAllocationPriceParam(TypedDict, total=False):
@@ -46,6 +50,9 @@ class NewSubscriptionGroupedAllocationPriceParam(TypedDict, total=False):
4650
conversion_rate: Optional[float]
4751
"""The per unit conversion rate of the price currency to the invoicing currency."""
4852

53+
conversion_rate_config: Optional[ConversionRateConfig]
54+
"""The configuration for the rate of the price currency to the invoicing currency."""
55+
4956
currency: Optional[str]
5057
"""
5158
An ISO 4217 currency string, or custom pricing unit identifier, in which this

0 commit comments

Comments
 (0)