@@ -2666,6 +2666,14 @@ class Add(TypedDict, total=False):
2666
2666
external_price_id : Optional [str ]
2667
2667
"""The external price id of the price to add to the subscription."""
2668
2668
2669
+ filter : Optional [str ]
2670
+ """An additional filter to apply to usage queries.
2671
+
2672
+ This filter must be expressed as a boolean
2673
+ [computed property](/extensibility/advanced-metrics#computed-properties). If
2674
+ null, usage queries will not include any additional filter.
2675
+ """
2676
+
2669
2677
fixed_fee_quantity_transitions : Optional [Iterable [AddFixedFeeQuantityTransition ]]
2670
2678
"""A list of fixed fee quantity transitions to initialize on the price interval."""
2671
2679
@@ -2687,6 +2695,16 @@ class Add(TypedDict, total=False):
2687
2695
price_id : Optional [str ]
2688
2696
"""The id of the price to add to the subscription."""
2689
2697
2698
+ usage_customer_ids : Optional [List [str ]]
2699
+ """
2700
+ A list of customer IDs whose usage events will be aggregated and billed under
2701
+ this subscription. By default, a subscription only considers usage events
2702
+ associated with its attached customer's customer_id. When usage_customer_ids is
2703
+ provided, the subscription includes usage events from the specified customers
2704
+ only. Provided usage_customer_ids must be either the customer for this
2705
+ subscription itself, or any of that customer's children.
2706
+ """
2707
+
2690
2708
2691
2709
class AddAdjustmentAdjustmentNewPercentageDiscount (TypedDict , total = False ):
2692
2710
adjustment_type : Required [Literal ["percentage_discount" ]]
@@ -2821,6 +2839,14 @@ class Edit(TypedDict, total=False):
2821
2839
If not specified, the start date will not be updated.
2822
2840
"""
2823
2841
2842
+ filter : Optional [str ]
2843
+ """An additional filter to apply to usage queries.
2844
+
2845
+ This filter must be expressed as a boolean
2846
+ [computed property](/extensibility/advanced-metrics#computed-properties). If
2847
+ null, usage queries will not include any additional filter.
2848
+ """
2849
+
2824
2850
fixed_fee_quantity_transitions : Optional [Iterable [EditFixedFeeQuantityTransition ]]
2825
2851
"""A list of fixed fee quantity transitions to use for this price interval.
2826
2852
@@ -2834,6 +2860,16 @@ class Edit(TypedDict, total=False):
2834
2860
If not specified, the start date will not be updated.
2835
2861
"""
2836
2862
2863
+ usage_customer_ids : Optional [List [str ]]
2864
+ """
2865
+ A list of customer IDs whose usage events will be aggregated and billed under
2866
+ this subscription. By default, a subscription only considers usage events
2867
+ associated with its attached customer's customer_id. When usage_customer_ids is
2868
+ provided, the subscription includes usage events from the specified customers
2869
+ only. Provided usage_customer_ids must be either the customer for this
2870
+ subscription itself, or any of that customer's children.
2871
+ """
2872
+
2837
2873
2838
2874
class EditAdjustment (TypedDict , total = False ):
2839
2875
adjustment_interval_id : Required [str ]
0 commit comments