Skip to content

Commit 3a7182d

Browse files
committed
feat(api): remove unsupported field (#95)
1 parent 1fc44ce commit 3a7182d

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

src/orb/types/invoice.py

-20
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"LineItemTaxAmount",
3434
"Maximum",
3535
"Minimum",
36-
"Plan",
3736
"ShippingAddress",
3837
"Subscription",
3938
]
@@ -696,19 +695,6 @@ class Minimum(BaseModel):
696695
"""Minimum amount applied"""
697696

698697

699-
class Plan(BaseModel):
700-
id: Optional[str]
701-
702-
external_plan_id: Optional[str]
703-
"""
704-
An optional user-defined ID for this plan resource, used throughout the system
705-
as an alias for this Plan. Use this field to identify a plan by an existing
706-
identifier in your system.
707-
"""
708-
709-
name: Optional[str]
710-
711-
712698
class ShippingAddress(BaseModel):
713699
city: Optional[str]
714700

@@ -926,12 +912,6 @@ class Invoice(BaseModel):
926912
payment mechanisms (like bank transfers), where payment can take 3 days or more.
927913
"""
928914

929-
plan: Optional[Plan]
930-
"""The active plan for this invoice's subscription on its invoice date.
931-
932-
This field is only populated for invoices generated by subscriptions.
933-
"""
934-
935915
scheduled_issue_at: Optional[datetime]
936916
"""
937917
If the invoice is in draft, this timestamp will reflect when the invoice is

src/orb/types/invoice_fetch_upcoming_response.py

-20
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"LineItemTaxAmount",
3434
"Maximum",
3535
"Minimum",
36-
"Plan",
3736
"ShippingAddress",
3837
"Subscription",
3938
]
@@ -696,19 +695,6 @@ class Minimum(BaseModel):
696695
"""Minimum amount applied"""
697696

698697

699-
class Plan(BaseModel):
700-
id: Optional[str]
701-
702-
external_plan_id: Optional[str]
703-
"""
704-
An optional user-defined ID for this plan resource, used throughout the system
705-
as an alias for this Plan. Use this field to identify a plan by an existing
706-
identifier in your system.
707-
"""
708-
709-
name: Optional[str]
710-
711-
712698
class ShippingAddress(BaseModel):
713699
city: Optional[str]
714700

@@ -923,12 +909,6 @@ class InvoiceFetchUpcomingResponse(BaseModel):
923909
payment mechanisms (like bank transfers), where payment can take 3 days or more.
924910
"""
925911

926-
plan: Optional[Plan]
927-
"""The active plan for this invoice's subscription on its invoice date.
928-
929-
This field is only populated for invoices generated by subscriptions.
930-
"""
931-
932912
scheduled_issue_at: Optional[datetime]
933913
"""
934914
If the invoice is in draft, this timestamp will reflect when the invoice is

0 commit comments

Comments
 (0)