Skip to content

Commit e589fd7

Browse files
feat(api): api update (#561)
1 parent dedb122 commit e589fd7

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d4f03b16daf0bae33be634c959dafb0e21b0bcb156beb162f8235394dca88e7c.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c8fc7d0bf70bf7ed91a141f346a02929e4d25a6fac7b59f58b68136ed6ff024f.yml

src/orb/types/invoice.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,9 @@ class LineItem(BaseModel):
621621
end_date: datetime
622622
"""The end date of the range of time applied for this line item's price."""
623623

624+
filter: Optional[str] = None
625+
"""An additional filter that was used to calculate the usage for this line item."""
626+
624627
grouping: Optional[str] = None
625628
"""
626629
[DEPRECATED] For configured prices that are split by a grouping key, this will
@@ -681,6 +684,11 @@ class LineItem(BaseModel):
681684
Empty if no tax integration is configured.
682685
"""
683686

687+
usage_customer_ids: Optional[List[str]] = None
688+
"""
689+
A list of customer ids that were used to calculate the usage for this line item.
690+
"""
691+
684692

685693
class Maximum(BaseModel):
686694
applies_to_price_ids: List[str]

src/orb/types/invoice_fetch_upcoming_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,9 @@ class LineItem(BaseModel):
621621
end_date: datetime
622622
"""The end date of the range of time applied for this line item's price."""
623623

624+
filter: Optional[str] = None
625+
"""An additional filter that was used to calculate the usage for this line item."""
626+
624627
grouping: Optional[str] = None
625628
"""
626629
[DEPRECATED] For configured prices that are split by a grouping key, this will
@@ -681,6 +684,11 @@ class LineItem(BaseModel):
681684
Empty if no tax integration is configured.
682685
"""
683686

687+
usage_customer_ids: Optional[List[str]] = None
688+
"""
689+
A list of customer ids that were used to calculate the usage for this line item.
690+
"""
691+
684692

685693
class Maximum(BaseModel):
686694
applies_to_price_ids: List[str]

src/orb/types/invoice_line_item_create_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ class InvoiceLineItemCreateResponse(BaseModel):
325325
end_date: datetime
326326
"""The end date of the range of time applied for this line item's price."""
327327

328+
filter: Optional[str] = None
329+
"""An additional filter that was used to calculate the usage for this line item."""
330+
328331
grouping: Optional[str] = None
329332
"""
330333
[DEPRECATED] For configured prices that are split by a grouping key, this will
@@ -384,3 +387,8 @@ class InvoiceLineItemCreateResponse(BaseModel):
384387
385388
Empty if no tax integration is configured.
386389
"""
390+
391+
usage_customer_ids: Optional[List[str]] = None
392+
"""
393+
A list of customer ids that were used to calculate the usage for this line item.
394+
"""

0 commit comments

Comments
 (0)