Skip to content

Commit f09762a

Browse files
author
Stainless Bot
committed
feat(api): OpenAPI spec update via Stainless API (#369)
1 parent 4fdb12c commit f09762a

File tree

3 files changed

+1
-121
lines changed

3 files changed

+1
-121
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 93
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-43ca3ef2601cc2b4dc4c5cfe217ed0b3e9a8fda04c3cd777ce8431427c5eb45a.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-15ce5857138c8d5d61dfcfca1b028427d9501531fa5fc8ac36a84b6fdb648783.yml

src/orb/types/subscription_create_params.py

-60
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
"PriceOverrideOverrideUnitWithPercentPriceDiscount",
5454
"PriceOverrideOverrideGroupedAllocationPrice",
5555
"PriceOverrideOverrideGroupedAllocationPriceDiscount",
56-
"PriceOverrideOverrideGroupedWithProratedMinimumPrice",
57-
"PriceOverrideOverrideGroupedWithProratedMinimumPriceDiscount",
5856
"PriceOverrideOverrideBulkWithProrationPrice",
5957
"PriceOverrideOverrideBulkWithProrationPriceDiscount",
6058
]
@@ -1084,63 +1082,6 @@ class PriceOverrideOverrideGroupedAllocationPrice(TypedDict, total=False):
10841082
"""The subscription's override minimum amount for the plan."""
10851083

10861084

1087-
class PriceOverrideOverrideGroupedWithProratedMinimumPriceDiscount(TypedDict, total=False):
1088-
discount_type: Required[Literal["percentage", "trial", "usage", "amount"]]
1089-
1090-
amount_discount: Optional[str]
1091-
"""Only available if discount_type is `amount`."""
1092-
1093-
applies_to_price_ids: Optional[List[str]]
1094-
"""List of price_ids that this discount applies to.
1095-
1096-
For plan/plan phase discounts, this can be a subset of prices.
1097-
"""
1098-
1099-
percentage_discount: Optional[float]
1100-
"""Only available if discount_type is `percentage`.
1101-
1102-
This is a number between 0 and 1.
1103-
"""
1104-
1105-
trial_amount_discount: Optional[str]
1106-
"""Only available if discount_type is `trial`"""
1107-
1108-
usage_discount: Optional[float]
1109-
"""Only available if discount_type is `usage`.
1110-
1111-
Number of usage units that this discount is for
1112-
"""
1113-
1114-
1115-
class PriceOverrideOverrideGroupedWithProratedMinimumPrice(TypedDict, total=False):
1116-
id: Required[str]
1117-
1118-
grouped_with_prorated_minimum_config: Required[Dict[str, object]]
1119-
1120-
model_type: Required[Literal["grouped_with_prorated_minimum"]]
1121-
1122-
conversion_rate: Optional[float]
1123-
"""The per unit conversion rate of the price currency to the invoicing currency."""
1124-
1125-
currency: Optional[str]
1126-
"""The currency of the price.
1127-
1128-
If not provided, the currency of the plan will be used.
1129-
"""
1130-
1131-
discount: Optional[PriceOverrideOverrideGroupedWithProratedMinimumPriceDiscount]
1132-
"""The subscription's override discount for the plan."""
1133-
1134-
fixed_price_quantity: Optional[float]
1135-
"""The starting quantity of the price, if the price is a fixed price."""
1136-
1137-
maximum_amount: Optional[str]
1138-
"""The subscription's override maximum amount for the plan."""
1139-
1140-
minimum_amount: Optional[str]
1141-
"""The subscription's override minimum amount for the plan."""
1142-
1143-
11441085
class PriceOverrideOverrideBulkWithProrationPriceDiscount(TypedDict, total=False):
11451086
discount_type: Required[Literal["percentage", "trial", "usage", "amount"]]
11461087

@@ -1213,6 +1154,5 @@ class PriceOverrideOverrideBulkWithProrationPrice(TypedDict, total=False):
12131154
PriceOverrideOverridePackageWithAllocationPrice,
12141155
PriceOverrideOverrideUnitWithPercentPrice,
12151156
PriceOverrideOverrideGroupedAllocationPrice,
1216-
PriceOverrideOverrideGroupedWithProratedMinimumPrice,
12171157
PriceOverrideOverrideBulkWithProrationPrice,
12181158
]

src/orb/types/subscription_schedule_plan_change_params.py

-60
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
"PriceOverrideOverrideUnitWithPercentPriceDiscount",
5353
"PriceOverrideOverrideGroupedAllocationPrice",
5454
"PriceOverrideOverrideGroupedAllocationPriceDiscount",
55-
"PriceOverrideOverrideGroupedWithProratedMinimumPrice",
56-
"PriceOverrideOverrideGroupedWithProratedMinimumPriceDiscount",
5755
"PriceOverrideOverrideBulkWithProrationPrice",
5856
"PriceOverrideOverrideBulkWithProrationPriceDiscount",
5957
]
@@ -1055,63 +1053,6 @@ class PriceOverrideOverrideGroupedAllocationPrice(TypedDict, total=False):
10551053
"""The subscription's override minimum amount for the plan."""
10561054

10571055

1058-
class PriceOverrideOverrideGroupedWithProratedMinimumPriceDiscount(TypedDict, total=False):
1059-
discount_type: Required[Literal["percentage", "trial", "usage", "amount"]]
1060-
1061-
amount_discount: Optional[str]
1062-
"""Only available if discount_type is `amount`."""
1063-
1064-
applies_to_price_ids: Optional[List[str]]
1065-
"""List of price_ids that this discount applies to.
1066-
1067-
For plan/plan phase discounts, this can be a subset of prices.
1068-
"""
1069-
1070-
percentage_discount: Optional[float]
1071-
"""Only available if discount_type is `percentage`.
1072-
1073-
This is a number between 0 and 1.
1074-
"""
1075-
1076-
trial_amount_discount: Optional[str]
1077-
"""Only available if discount_type is `trial`"""
1078-
1079-
usage_discount: Optional[float]
1080-
"""Only available if discount_type is `usage`.
1081-
1082-
Number of usage units that this discount is for
1083-
"""
1084-
1085-
1086-
class PriceOverrideOverrideGroupedWithProratedMinimumPrice(TypedDict, total=False):
1087-
id: Required[str]
1088-
1089-
grouped_with_prorated_minimum_config: Required[Dict[str, object]]
1090-
1091-
model_type: Required[Literal["grouped_with_prorated_minimum"]]
1092-
1093-
conversion_rate: Optional[float]
1094-
"""The per unit conversion rate of the price currency to the invoicing currency."""
1095-
1096-
currency: Optional[str]
1097-
"""The currency of the price.
1098-
1099-
If not provided, the currency of the plan will be used.
1100-
"""
1101-
1102-
discount: Optional[PriceOverrideOverrideGroupedWithProratedMinimumPriceDiscount]
1103-
"""The subscription's override discount for the plan."""
1104-
1105-
fixed_price_quantity: Optional[float]
1106-
"""The starting quantity of the price, if the price is a fixed price."""
1107-
1108-
maximum_amount: Optional[str]
1109-
"""The subscription's override maximum amount for the plan."""
1110-
1111-
minimum_amount: Optional[str]
1112-
"""The subscription's override minimum amount for the plan."""
1113-
1114-
11151056
class PriceOverrideOverrideBulkWithProrationPriceDiscount(TypedDict, total=False):
11161057
discount_type: Required[Literal["percentage", "trial", "usage", "amount"]]
11171058

@@ -1184,6 +1125,5 @@ class PriceOverrideOverrideBulkWithProrationPrice(TypedDict, total=False):
11841125
PriceOverrideOverridePackageWithAllocationPrice,
11851126
PriceOverrideOverrideUnitWithPercentPrice,
11861127
PriceOverrideOverrideGroupedAllocationPrice,
1187-
PriceOverrideOverrideGroupedWithProratedMinimumPrice,
11881128
PriceOverrideOverrideBulkWithProrationPrice,
11891129
]

0 commit comments

Comments
 (0)