Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): updates #73

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/orb/types/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"LineItemTaxAmount",
"Maximum",
"Minimum",
"Plan",
"ShippingAddress",
"Subscription",
]
Expand Down Expand Up @@ -695,6 +696,19 @@ class Minimum(BaseModel):
"""Minimum amount applied"""


class Plan(BaseModel):
id: Optional[str]

external_plan_id: Optional[str]
"""
An optional user-defined ID for this plan resource, used throughout the system
as an alias for this Plan. Use this field to identify a plan by an existing
identifier in your system.
"""

name: Optional[str]


class ShippingAddress(BaseModel):
city: Optional[str]

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

plan: Optional[Plan]
"""The active plan for this invoice's subscription on its invoice date.

This field is only populated for invoices generated by subscriptions.
"""

scheduled_issue_at: Optional[datetime]
"""
If the invoice is in draft, this timestamp will reflect when the invoice is
Expand Down
20 changes: 20 additions & 0 deletions src/orb/types/invoice_fetch_upcoming_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"LineItemTaxAmount",
"Maximum",
"Minimum",
"Plan",
"ShippingAddress",
"Subscription",
]
Expand Down Expand Up @@ -695,6 +696,19 @@ class Minimum(BaseModel):
"""Minimum amount applied"""


class Plan(BaseModel):
id: Optional[str]

external_plan_id: Optional[str]
"""
An optional user-defined ID for this plan resource, used throughout the system
as an alias for this Plan. Use this field to identify a plan by an existing
identifier in your system.
"""

name: Optional[str]


class ShippingAddress(BaseModel):
city: Optional[str]

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

plan: Optional[Plan]
"""The active plan for this invoice's subscription on its invoice date.

This field is only populated for invoices generated by subscriptions.
"""

scheduled_issue_at: Optional[datetime]
"""
If the invoice is in draft, this timestamp will reflect when the invoice is
Expand Down