Skip to content

Commit 8f49201

Browse files
feat(api): api update (#477)
1 parent f701c47 commit 8f49201

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
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: 101
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-52bd3046e73f201c4d08edfa92756791c015be907691a7893f8e7782cc2aea6f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b6d60f8edbdc94e65f06b0b002cc8e1f27aceccc67917bea849425701ba82fb8.yml

src/orb/types/invoice.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,8 +927,11 @@ class Invoice(BaseModel):
927927

928928
discounts: List[InvoiceLevelDiscount]
929929

930-
due_date: datetime
931-
"""When the invoice payment is due."""
930+
due_date: Optional[datetime] = None
931+
"""When the invoice payment is due.
932+
933+
The due date is null if the invoice is not yet finalized.
934+
"""
932935

933936
eligible_to_issue_at: Optional[datetime] = None
934937
"""

src/orb/types/invoice_fetch_upcoming_response.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,8 +927,11 @@ class InvoiceFetchUpcomingResponse(BaseModel):
927927

928928
discounts: List[InvoiceLevelDiscount]
929929

930-
due_date: datetime
931-
"""When the invoice payment is due."""
930+
due_date: Optional[datetime] = None
931+
"""When the invoice payment is due.
932+
933+
The due date is null if the invoice is not yet finalized.
934+
"""
932935

933936
eligible_to_issue_at: Optional[datetime] = None
934937
"""

0 commit comments

Comments
 (0)