@@ -1121,6 +1121,97 @@ def create(
1121
1121
"""
1122
1122
...
1123
1123
1124
+ @overload
1125
+ def create (
1126
+ self ,
1127
+ * ,
1128
+ cadence : Literal ["annual" , "semi_annual" , "monthly" , "quarterly" , "one_time" , "custom" ],
1129
+ currency : str ,
1130
+ item_id : str ,
1131
+ max_group_tiered_config : Dict [str , object ],
1132
+ model_type : Literal ["max_group_tiered" ],
1133
+ name : str ,
1134
+ billable_metric_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1135
+ billed_in_advance : Optional [bool ] | NotGiven = NOT_GIVEN ,
1136
+ billing_cycle_configuration : Optional [
1137
+ price_create_params .NewFloatingMaxGroupTieredPriceBillingCycleConfiguration
1138
+ ]
1139
+ | NotGiven = NOT_GIVEN ,
1140
+ conversion_rate : Optional [float ] | NotGiven = NOT_GIVEN ,
1141
+ external_price_id : Optional [str ] | NotGiven = NOT_GIVEN ,
1142
+ fixed_price_quantity : Optional [float ] | NotGiven = NOT_GIVEN ,
1143
+ invoice_grouping_key : Optional [str ] | NotGiven = NOT_GIVEN ,
1144
+ invoicing_cycle_configuration : Optional [
1145
+ price_create_params .NewFloatingMaxGroupTieredPriceInvoicingCycleConfiguration
1146
+ ]
1147
+ | NotGiven = NOT_GIVEN ,
1148
+ metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
1149
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1150
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1151
+ extra_headers : Headers | None = None ,
1152
+ extra_query : Query | None = None ,
1153
+ extra_body : Body | None = None ,
1154
+ timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
1155
+ idempotency_key : str | None = None ,
1156
+ ) -> Price :
1157
+ """
1158
+ This endpoint is used to create a [price](/product-catalog/price-configuration).
1159
+ A price created using this endpoint is always an add-on, meaning that it’s not
1160
+ associated with a specific plan and can instead be individually added to
1161
+ subscriptions, including subscriptions on different plans.
1162
+
1163
+ An `external_price_id` can be optionally specified as an alias to allow
1164
+ ergonomic interaction with prices in the Orb API.
1165
+
1166
+ See the [Price resource](/product-catalog/price-configuration) for the
1167
+ specification of different price model configurations possible in this endpoint.
1168
+
1169
+ Args:
1170
+ cadence: The cadence to bill for this price on.
1171
+
1172
+ currency: An ISO 4217 currency string for which this price is billed in.
1173
+
1174
+ item_id: The id of the item the plan will be associated with.
1175
+
1176
+ name: The name of the price.
1177
+
1178
+ billable_metric_id: The id of the billable metric for the price. Only needed if the price is
1179
+ usage-based.
1180
+
1181
+ billed_in_advance: If the Price represents a fixed cost, the price will be billed in-advance if
1182
+ this is true, and in-arrears if this is false.
1183
+
1184
+ billing_cycle_configuration: For custom cadence: specifies the duration of the billing period in days or
1185
+ months.
1186
+
1187
+ conversion_rate: The per unit conversion rate of the price currency to the invoicing currency.
1188
+
1189
+ external_price_id: An alias for the price.
1190
+
1191
+ fixed_price_quantity: If the Price represents a fixed cost, this represents the quantity of units
1192
+ applied.
1193
+
1194
+ invoice_grouping_key: The property used to group this price on an invoice
1195
+
1196
+ invoicing_cycle_configuration: Within each billing cycle, specifies the cadence at which invoices are produced.
1197
+ If unspecified, a single invoice is produced per billing cycle.
1198
+
1199
+ metadata: User-specified key/value pairs for the resource. Individual keys can be removed
1200
+ by setting the value to `null`, and the entire metadata mapping can be cleared
1201
+ by setting `metadata` to `null`.
1202
+
1203
+ extra_headers: Send extra headers
1204
+
1205
+ extra_query: Add additional query parameters to the request
1206
+
1207
+ extra_body: Add additional JSON properties to the request
1208
+
1209
+ timeout: Override the client-level default timeout for this request, in seconds
1210
+
1211
+ idempotency_key: Specify a custom idempotency key for this request
1212
+ """
1213
+ ...
1214
+
1124
1215
@overload
1125
1216
def create (
1126
1217
self ,
@@ -2226,6 +2317,7 @@ def create(
2226
2317
["cadence" , "currency" , "item_id" , "model_type" , "name" , "threshold_total_amount_config" ],
2227
2318
["cadence" , "currency" , "item_id" , "model_type" , "name" , "tiered_package_config" ],
2228
2319
["cadence" , "currency" , "grouped_tiered_config" , "item_id" , "model_type" , "name" ],
2320
+ ["cadence" , "currency" , "item_id" , "max_group_tiered_config" , "model_type" , "name" ],
2229
2321
["cadence" , "currency" , "item_id" , "model_type" , "name" , "tiered_with_minimum_config" ],
2230
2322
["cadence" , "currency" , "item_id" , "model_type" , "name" , "package_with_allocation_config" ],
2231
2323
["cadence" , "currency" , "item_id" , "model_type" , "name" , "tiered_package_with_minimum_config" ],
@@ -2257,6 +2349,7 @@ def create(
2257
2349
| Literal ["threshold_total_amount" ]
2258
2350
| Literal ["tiered_package" ]
2259
2351
| Literal ["grouped_tiered" ]
2352
+ | Literal ["max_group_tiered" ]
2260
2353
| Literal ["tiered_with_minimum" ]
2261
2354
| Literal ["package_with_allocation" ]
2262
2355
| Literal ["tiered_package_with_minimum" ]
@@ -2294,6 +2387,7 @@ def create(
2294
2387
threshold_total_amount_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
2295
2388
tiered_package_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
2296
2389
grouped_tiered_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
2390
+ max_group_tiered_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
2297
2391
tiered_with_minimum_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
2298
2392
package_with_allocation_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
2299
2393
tiered_package_with_minimum_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
@@ -2346,6 +2440,7 @@ def create(
2346
2440
"threshold_total_amount_config" : threshold_total_amount_config ,
2347
2441
"tiered_package_config" : tiered_package_config ,
2348
2442
"grouped_tiered_config" : grouped_tiered_config ,
2443
+ "max_group_tiered_config" : max_group_tiered_config ,
2349
2444
"tiered_with_minimum_config" : tiered_with_minimum_config ,
2350
2445
"package_with_allocation_config" : package_with_allocation_config ,
2351
2446
"tiered_package_with_minimum_config" : tiered_package_with_minimum_config ,
@@ -3689,6 +3784,97 @@ async def create(
3689
3784
"""
3690
3785
...
3691
3786
3787
+ @overload
3788
+ async def create (
3789
+ self ,
3790
+ * ,
3791
+ cadence : Literal ["annual" , "semi_annual" , "monthly" , "quarterly" , "one_time" , "custom" ],
3792
+ currency : str ,
3793
+ item_id : str ,
3794
+ max_group_tiered_config : Dict [str , object ],
3795
+ model_type : Literal ["max_group_tiered" ],
3796
+ name : str ,
3797
+ billable_metric_id : Optional [str ] | NotGiven = NOT_GIVEN ,
3798
+ billed_in_advance : Optional [bool ] | NotGiven = NOT_GIVEN ,
3799
+ billing_cycle_configuration : Optional [
3800
+ price_create_params .NewFloatingMaxGroupTieredPriceBillingCycleConfiguration
3801
+ ]
3802
+ | NotGiven = NOT_GIVEN ,
3803
+ conversion_rate : Optional [float ] | NotGiven = NOT_GIVEN ,
3804
+ external_price_id : Optional [str ] | NotGiven = NOT_GIVEN ,
3805
+ fixed_price_quantity : Optional [float ] | NotGiven = NOT_GIVEN ,
3806
+ invoice_grouping_key : Optional [str ] | NotGiven = NOT_GIVEN ,
3807
+ invoicing_cycle_configuration : Optional [
3808
+ price_create_params .NewFloatingMaxGroupTieredPriceInvoicingCycleConfiguration
3809
+ ]
3810
+ | NotGiven = NOT_GIVEN ,
3811
+ metadata : Optional [Dict [str , Optional [str ]]] | NotGiven = NOT_GIVEN ,
3812
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
3813
+ # The extra values given here take precedence over values defined on the client or passed to this method.
3814
+ extra_headers : Headers | None = None ,
3815
+ extra_query : Query | None = None ,
3816
+ extra_body : Body | None = None ,
3817
+ timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
3818
+ idempotency_key : str | None = None ,
3819
+ ) -> Price :
3820
+ """
3821
+ This endpoint is used to create a [price](/product-catalog/price-configuration).
3822
+ A price created using this endpoint is always an add-on, meaning that it’s not
3823
+ associated with a specific plan and can instead be individually added to
3824
+ subscriptions, including subscriptions on different plans.
3825
+
3826
+ An `external_price_id` can be optionally specified as an alias to allow
3827
+ ergonomic interaction with prices in the Orb API.
3828
+
3829
+ See the [Price resource](/product-catalog/price-configuration) for the
3830
+ specification of different price model configurations possible in this endpoint.
3831
+
3832
+ Args:
3833
+ cadence: The cadence to bill for this price on.
3834
+
3835
+ currency: An ISO 4217 currency string for which this price is billed in.
3836
+
3837
+ item_id: The id of the item the plan will be associated with.
3838
+
3839
+ name: The name of the price.
3840
+
3841
+ billable_metric_id: The id of the billable metric for the price. Only needed if the price is
3842
+ usage-based.
3843
+
3844
+ billed_in_advance: If the Price represents a fixed cost, the price will be billed in-advance if
3845
+ this is true, and in-arrears if this is false.
3846
+
3847
+ billing_cycle_configuration: For custom cadence: specifies the duration of the billing period in days or
3848
+ months.
3849
+
3850
+ conversion_rate: The per unit conversion rate of the price currency to the invoicing currency.
3851
+
3852
+ external_price_id: An alias for the price.
3853
+
3854
+ fixed_price_quantity: If the Price represents a fixed cost, this represents the quantity of units
3855
+ applied.
3856
+
3857
+ invoice_grouping_key: The property used to group this price on an invoice
3858
+
3859
+ invoicing_cycle_configuration: Within each billing cycle, specifies the cadence at which invoices are produced.
3860
+ If unspecified, a single invoice is produced per billing cycle.
3861
+
3862
+ metadata: User-specified key/value pairs for the resource. Individual keys can be removed
3863
+ by setting the value to `null`, and the entire metadata mapping can be cleared
3864
+ by setting `metadata` to `null`.
3865
+
3866
+ extra_headers: Send extra headers
3867
+
3868
+ extra_query: Add additional query parameters to the request
3869
+
3870
+ extra_body: Add additional JSON properties to the request
3871
+
3872
+ timeout: Override the client-level default timeout for this request, in seconds
3873
+
3874
+ idempotency_key: Specify a custom idempotency key for this request
3875
+ """
3876
+ ...
3877
+
3692
3878
@overload
3693
3879
async def create (
3694
3880
self ,
@@ -4794,6 +4980,7 @@ async def create(
4794
4980
["cadence" , "currency" , "item_id" , "model_type" , "name" , "threshold_total_amount_config" ],
4795
4981
["cadence" , "currency" , "item_id" , "model_type" , "name" , "tiered_package_config" ],
4796
4982
["cadence" , "currency" , "grouped_tiered_config" , "item_id" , "model_type" , "name" ],
4983
+ ["cadence" , "currency" , "item_id" , "max_group_tiered_config" , "model_type" , "name" ],
4797
4984
["cadence" , "currency" , "item_id" , "model_type" , "name" , "tiered_with_minimum_config" ],
4798
4985
["cadence" , "currency" , "item_id" , "model_type" , "name" , "package_with_allocation_config" ],
4799
4986
["cadence" , "currency" , "item_id" , "model_type" , "name" , "tiered_package_with_minimum_config" ],
@@ -4825,6 +5012,7 @@ async def create(
4825
5012
| Literal ["threshold_total_amount" ]
4826
5013
| Literal ["tiered_package" ]
4827
5014
| Literal ["grouped_tiered" ]
5015
+ | Literal ["max_group_tiered" ]
4828
5016
| Literal ["tiered_with_minimum" ]
4829
5017
| Literal ["package_with_allocation" ]
4830
5018
| Literal ["tiered_package_with_minimum" ]
@@ -4862,6 +5050,7 @@ async def create(
4862
5050
threshold_total_amount_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
4863
5051
tiered_package_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
4864
5052
grouped_tiered_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
5053
+ max_group_tiered_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
4865
5054
tiered_with_minimum_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
4866
5055
package_with_allocation_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
4867
5056
tiered_package_with_minimum_config : Dict [str , object ] | NotGiven = NOT_GIVEN ,
@@ -4914,6 +5103,7 @@ async def create(
4914
5103
"threshold_total_amount_config" : threshold_total_amount_config ,
4915
5104
"tiered_package_config" : tiered_package_config ,
4916
5105
"grouped_tiered_config" : grouped_tiered_config ,
5106
+ "max_group_tiered_config" : max_group_tiered_config ,
4917
5107
"tiered_with_minimum_config" : tiered_with_minimum_config ,
4918
5108
"package_with_allocation_config" : package_with_allocation_config ,
4919
5109
"tiered_package_with_minimum_config" : tiered_package_with_minimum_config ,
0 commit comments