File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,9 @@ def fetch(
228228 This endpoint is used to fetch an [`Invoice`](../guides/concepts#invoice) given
229229 an identifier.
230230
231+ This endpoint supports returning ApiCachedUsageData (see
232+ api/cache_control_utils.py)
233+
231234 Args:
232235 extra_headers: Send extra headers
233236
@@ -263,6 +266,9 @@ def fetch_upcoming(
263266 [invoice](../guides/concepts#invoice) for the current billing period given a
264267 subscription.
265268
269+ This endpoint supports returning ApiCachedUsageData (see
270+ api/cache_control_utils.py)
271+
266272 Args:
267273 extra_headers: Send extra headers
268274
@@ -633,6 +639,9 @@ async def fetch(
633639 This endpoint is used to fetch an [`Invoice`](../guides/concepts#invoice) given
634640 an identifier.
635641
642+ This endpoint supports returning ApiCachedUsageData (see
643+ api/cache_control_utils.py)
644+
636645 Args:
637646 extra_headers: Send extra headers
638647
@@ -668,6 +677,9 @@ async def fetch_upcoming(
668677 [invoice](../guides/concepts#invoice) for the current billing period given a
669678 subscription.
670679
680+ This endpoint supports returning ApiCachedUsageData (see
681+ api/cache_control_utils.py)
682+
671683 Args:
672684 extra_headers: Send extra headers
673685
Original file line number Diff line number Diff line change 1313 "DiscountAppliesToPrice" ,
1414 "LineItem" ,
1515 "LineItemDiscount" ,
16- "LineItemSubLineItem" ,
1716 "LineItemTaxAmount" ,
1817 "MaximumAmountAdjustment" ,
1918 "MaximumAmountAdjustmentAppliesToPrice" ,
@@ -60,14 +59,6 @@ class LineItemDiscount(BaseModel):
6059 reason : Optional [str ] = None
6160
6261
63- class LineItemSubLineItem (BaseModel ):
64- amount : str
65-
66- name : str
67-
68- quantity : Optional [float ] = None
69-
70-
7162class LineItemTaxAmount (BaseModel ):
7263 amount : str
7364 """The amount of additional tax incurred by this tax rate."""
@@ -95,9 +86,6 @@ class LineItem(BaseModel):
9586 quantity : Optional [float ] = None
9687 """An optional quantity credited."""
9788
98- sub_line_items : List [LineItemSubLineItem ]
99- """Any sub line items that may be credited."""
100-
10189 subtotal : str
10290 """The amount of the line item, excluding any line item minimums and discounts."""
10391
You can’t perform that action at this time.
0 commit comments